You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Problem
We had to combine historical and incoming message retrieval temporarily in v0.5.4. These flows should be split again so that their implementations can vary. Specifically the historical flow we want to throttle and poll while the incoming flow we want to use the shared poller to scale up.
Solution
Wrap the historical flow in a new class so its implementation can vary in the future:
Problem
We had to combine historical and incoming message retrieval temporarily in v0.5.4. These flows should be split again so that their implementations can vary. Specifically the historical flow we want to throttle and poll while the incoming flow we want to use the shared poller to scale up.
Solution
PollingTopicListener
toPollingTopicMessageRetriever
and make it implementTopicMessageRetriever
insteadPollingTopicMessageRetriever
to complete when next poll returns zero rows (or optionally < maxPageSize)RetrieverProperties
with optionsenabled
andpollingFrequency
Flux.interval()
likeFlux.repeatWhen()
TopicMessageRepository.findByConsensusTimestampGreaterThan()
to:SharedPollingTopicListener
to keep track of subscribed topic ids in a concurrent set and pass toTopicMessageRepository.findLatest(...)
SharedPollingTopicListener
to defaultAlternatives
Additional Context
The text was updated successfully, but these errors were encountered: