-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make consensus state machine asynchronous (#56)
### Goals * `leader` being unable to block colocated `replica` (and vise versa). * Having an inbound message queue with the capability to invalidate/remove messages from the same validator. ### Main changes * `sync::prunable_mpsc` module has been added to provide a channel-like FIFO queue with additional functionality for removal of specific pending values. * Introduced one background task for each state machine (`replica`/`leader`), which consumes corresponding messages from the inbound queue. Top-level processing includes only `send()` operation, without waiting for the processing response. ### Follow-up: * Consider additional asynchronous pipelines within each role * Re-evaluate caching and transitioning within the state machines
- Loading branch information
Showing
13 changed files
with
381 additions
and
142 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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.