Ksnz commented on PR #24300:
URL: https://github.com/apache/pulsar/pull/24300#issuecomment-3607550360

   It seems that the best way to store ReplicatedSubscriptionsSnapshots is in 
something like an increasing backoff queue:
   the last one — the most recent,
   the next — plus `snapshotFrequencyMillis`,
   then `snapshotFrequencyMillis`^2,
   then `snapshotFrequencyMillis`^3, and so on.
   The oldest one (the head) should remain untouched until it is consumed.
   
   It also seems that the solution could be simplified around 
`ReplicatedSubscriptionSnapshotCache`, and delayed messages would be handled 
much better.
   If the PR is stale, I may reopen a new one :)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to