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

Buffer events between publisher and subscriber #19

Closed
slashdotdash opened this issue Oct 17, 2016 · 0 comments
Closed

Buffer events between publisher and subscriber #19

slashdotdash opened this issue Oct 17, 2016 · 0 comments

Comments

@slashdotdash
Copy link
Member

slashdotdash commented Oct 17, 2016

Prevent a subscriber to a single or all streams from being overloaded with published events. A limited size buffer should be used by the subscription.

Each subscriber will ack received events (#18), so the subscription knows how far behind it is. This can be used as a form of back pressure.

A subscription can catch up by going to storage after a spike in published events that it cannot keep up with.

The subscription will buffer events until the subscriber is ready to receive, or an overflow occurs. At which point it will move into a catch-up mode and query events and replay them from storage until caught up.

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

No branches or pull requests

1 participant