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

Latency benchmarks #73

Open
abinavv20 opened this issue Mar 29, 2022 · 0 comments
Open

Latency benchmarks #73

abinavv20 opened this issue Mar 29, 2022 · 0 comments

Comments

@abinavv20
Copy link

abinavv20 commented Mar 29, 2022

I was wondering if there is any data on latency benchmarks on the redis_rate client that is publicly available

From the code, any Allow() call in rate limiter runs evalsha, where Redis pushes arguments to a Lua stack, run the Lua script, and then pop the value off which has significant latency implications on redis. Also, running the script blocks other clients as well.

I have verified this by running the SLOWLOG command where the evalsha cmd in Allow() takes up to 15ms.

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