You need to sign in to do that
Don't have an account?
Kritika Raj
Platform Events - The Replay Id of child event is less than the parent event
I am publishing the events in such a way that first the controller executes the publish method for Parent and then the child . In System.debug , the statements are printed accordingly such as
- Successfully Published Parent Event
- Successfully Published Child Event
But the Child replayId is less and Parent is greater indicating that child event was published first . Please , can someone explain the reason why this might happen?
- Successfully Published Parent Event
- Successfully Published Child Event
But the Child replayId is less and Parent is greater indicating that child event was published first . Please , can someone explain the reason why this might happen?
Replay ID values are not guaranteed to be contiguous for consecutive events. For example, the event following the event with ID 999 can have an ID of 1,025.
Get more details about replay ID and platform event.
https://trailhead.salesforce.com/en/content/learn/modules/platform_events_basics/platform_events_define_publish
Coming to order of events. Events are added in chronological order with replay IDs
2020-08-06 06:17:20 but Replay Id is - 4909
Support can review server logs and provide the cause of this behavior or confirm whether or not this is working as designed. Thanks