generated from TBD54566975/tbd-project-template
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
closes #1596 closes #1642 How it works: - pubsub managers poll for subscriptions that are behind the topic's head - locks these subscriptions for the tx - skips subscriptions that are already locked - Then finds the next event for each subscription - If the event is newer than our artificial delay, we skip this subscription on this attempt Pubsub also speeds things up by: - Polling once a second - When it schedules an async call, notifies controller so we can attempt to pick it up straight away - this is wrapped in a mutex so that we don't accidentally get more and more async calls running at once on a single controller - When the async call is completed, pubsub is notified so that it can immediately try progressing subscriptions again
- Loading branch information
Showing
11 changed files
with
281 additions
and
246 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.