You need to sign in to do that
Don't have an account?
Baljeet Lalotra
Maximum number of Platform Events which can be published in batch
AS per the documentation of the Batch Apex Governing Limit at location
"https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_gov_limits.htm" , the Per-Transaction Apex Limits for the Total number of DML statements issued is 150.
Does this also means that in one go the maximum number of high volume platform events messages which can be published in a batch in "publish after commit" mode is 150?
Thanks
"https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_gov_limits.htm" , the Per-Transaction Apex Limits for the Total number of DML statements issued is 150.
Does this also means that in one go the maximum number of high volume platform events messages which can be published in a batch in "publish after commit" mode is 150?
Thanks
Recommend reviewing similar question from past
https://salesforce.stackexchange.com/questions/227253/clear-platform-event-limits
According to this, You can call EventBus.publish up to 150 times per transaction, but those are shared with all other DML operations, like inserts, updates, deletes, converts, etc. There's a list version of this method that can theoretically publish up to 10,000 events per call (the maximum DML rows limit).
Related: https://developer.salesforce.com/docs/atlas.en-us.platform_events.meta/platform_events/platform_events_trigger_config.htm
If this information helps, please mark the answer as best. Thank you