NebulaLogger
NebulaLogger copied to clipboard
Add a retry mechanism for failed platform events
Summer '22 adds a pilot feature that provides the ability to create callbacks for platform events, both for on success and on error. It'd be useful to leverage this to handle platform events that fail to publish (possibly due to exceeding the org's daily limit for platform events, etc)
https://help.salesforce.com/s/articleView?id=release-notes.rn_platform_events_apex_callbacks_pilot.htm&type=5&release=238
The Summer '23 release (API v58.) includes some new generally available functionality that will make it easier to track failed platform events, using Apex publish callbacks - https://help.salesforce.com/s/articleView?language=en_US&id=release-notes.rn_platform_events_publish_callbacks.htm&release=244&type=5