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

Supporting timed buffering #2

Open
reborg opened this issue Aug 18, 2016 · 0 comments
Open

Supporting timed buffering #2

reborg opened this issue Aug 18, 2016 · 0 comments

Comments

@reborg
Copy link
Contributor

reborg commented Aug 18, 2016

Interesting problem raised by @clumsyjedi. How to support a scheduled buffer like this:

max=10 reqs
0------------15'-------------30'-----------45'
||||          ||||||||||||    |||||||
  1. Divide time into windows, like 15' each
  2. Collect requests without firing
  3. If max=10 reqs reached before 15', fire them (using normal throttling)
  4. if max=10 reqs not reached, fire them at the end of the window of 15'
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