Skip to content
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

Closed
wants to merge 6 commits into from
Closed

Conversation

dpcollins-google
Copy link
Collaborator

@dpcollins-google dpcollins-google commented Aug 5, 2020

This is an abstraction over order-preserving batching routines used for publishing, subscribe flow control, and commits.

Diffbased on #5

gen: int
items: List[WorkItem[Request]]

def __init__(self, gen: int):
Copy link

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]):
Copy link

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.

@dpcollins-google
Copy link
Collaborator Author

Closing this. Turns out the fact that it calls through to the underlying class makes it very hard to maintain order on restarts.

@anguillanneuf anguillanneuf deleted the aggregator_impl branch March 25, 2022 22:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants