function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Baljeet LalotraBaljeet 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
SwethaSwetha (Salesforce Developers) 
HI Baljeet ,
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