Does Platform event subscription applies to PE Triggers too

apexgovernorlimitsplatform-event

Consider this scenario. I have a trigger on Platform event named as SOject_Upsert_Data__e

trigger SObjectUpsertData on SOject_Upsert_Data__e (after insert) {
    // Some Logic
}

And I am raising Platform events from flows wherever I need to update any record in salesforce.
The reason is because to better capture Lock row exceptions and retry them. And also we have many flows, like (1000) and have made it very complex unnecessary. So a cleanup is very hard and very time consuming and many issues occurs because of lock row.

Question: There might be more than 50K requests coming to the triggers in 24 hour period. So my doubt is does 50K limit applies here too? And whats the difference between Event Delivery and Event Publishing, and under which event does triggers fall?

enter image description here

Best Answer

You should really link to the docs you reference. Here's what I believe to be the relevant passage:

Non-CometD clients, including Apex triggers, processes, and flows, don’t count against the event delivery limit. The number of event messages that an Apex trigger, process, or flow can process depends on how long the processing takes for each subscriber. The longer the processing time, the longer it takes for the subscriber to reach the tip of the event stream.

Note that most discussion of limitations within that link discusses CometD subscribers, which are not what you are using.

Related Topic