-
Notifications
You must be signed in to change notification settings - Fork 12
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
feat: Implement aggregator #6
Conversation
This is a generalization of order-preserving batching routines. It flushes on a given period.
…s once restart is called.
gen: int | ||
items: List[WorkItem[Request]] | ||
|
||
def __init__(self, gen: int): |
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.
Perhaps a more descriptive name than "gen"?
raise NotImplementedError() | ||
|
||
|
||
class Aggregator(Generic[Request, Response]): |
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.
Class comment + general explanation of how it works.
Closing this. Turns out the fact that it calls through to the underlying class makes it very hard to maintain order on restarts. |
This is an abstraction over order-preserving batching routines used for publishing, subscribe flow control, and commits.
Diffbased on #5