Skip to content

feat: Implement aggregator#6

Closed
dpcollins-google wants to merge 6 commits into
masterfrom
aggregator_impl
Closed

feat: Implement aggregator#6
dpcollins-google wants to merge 6 commits into
masterfrom
aggregator_impl

Conversation

@dpcollins-google
Copy link
Copy Markdown
Contributor

@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

@dpcollins-google dpcollins-google requested a review from pradn August 5, 2020 23:48
gen: int
items: List[WorkItem[Request]]

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

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
Copy Markdown

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
Copy Markdown
Contributor 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.

2 participants