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

Asynchronous increment for memcached #24

Open
ElvinEfendi opened this issue Dec 23, 2020 · 0 comments
Open

Asynchronous increment for memcached #24

ElvinEfendi opened this issue Dec 23, 2020 · 0 comments

Comments

@ElvinEfendi
Copy link
Owner

Currently when a request is not throttled this middleware adds an extra latency to request processing by the time it takes to increment a counter in memcached (assuming memcached is used as a store).

We can make memcached increments async by batching them locally per worker and then flushing them into memcached in a timer every second or so. This should be properly evaluated though to see how much it would impact the precision of the algorithm if at all.

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