You need to sign in to do that
Don't have an account?
Georges Auberger 7
PushTopic replayId outside of retention window
It looks like if you pass a replayId for an event that is outside of the retention window, you don't get anyhting replayed, nor do you get any event for newly created events. Is that expected behavior?
We cant get replay for events that happens outside the retention window.
A subscriber can choose which events to receive, such as all events within the retention window or starting after a particular event. The default is to receive only the new events sent after subscribing. Events outside the 24-hour retention period are discarded.
Hope its helpful to you
Regards
Roshni.
Best way to get Reply for all the topic a subscriber has, is to subcribe to all the pushtopics that you created before without recreating them, together with the subscription of your new pushtopics.
Since your subscriber does not know the last good known ReplayID is in or out of the retention window, you have to store all the created Pushtopic data so that you can subscribe to them in for all the active retention windows.
If you have any further queries, feel free to ask.
Regards,
Roshni
As is, ReplayID is effectively useless.
Ideally, if the replay id falls outside of retention window, it shold be treated as -2 or -1.
I would say this is a borken behaviour at best but there is workaround you can apply.
Your application can handle this.
On recovering a crash subscribe via a -2 first. Look at all the messages and see if your last known replay id is there.
If yes, unsubscribe, set replay id and subscribe again.
If no, means your application took more than 24 hours to recover. start processing the queue you got from -2.