-
Notifications
You must be signed in to change notification settings - Fork 3
feat: implement event delivery #29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
This pull request has been linked to Shortcut Story #194283: Implement Event processor. |
c99b674 to
72b613c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As long as the only bottleneck is IO, this looks good. That is certainly the case for the client.
In the case where there was a CPU bottleneck, then I think we would want the workers to have the ability to be threaded. For instance in a server where serialization in creating the batch could be the bottleneck for single threaded event dispatch
Implements a state machine based approach for delivering events.
There's a worker pool, and 5 workers (configurable). They are meant to be long-lived and at any given moment are:
I've update
Clientto construct anAsioEventProcessorif events are enabled, otherwise aNullEventProcessor.