-
Notifications
You must be signed in to change notification settings - Fork 25
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
RedisTokenBucketRateLimiter on AWS Serverless Redis Cache #154
Comments
Could also be the However, it remains the question which standard we should support and prioritize? The official Redis implementation, AWS and/or more? |
|
Alright, then maybe we should look into replication. In the changelog of 6.x they mention that the If |
Amazon ElastiCache Serverless uses Redis 7.1 and there is no way to downgrade it as far as I know. I have a test environment I can access with redis-cli. I can test things for you, but you'll have to guide me - I am fairly new to Redis. |
I don't really have much time to look into this right now, but there are parameter groups on AWS that can be used and changed to use an older Redis version. This may not work for serverless deployments, but it should for the custom deployments. If this issue is in fact related to the
As I've said I don't have much time to test this right now, but I would probably try to implement a condition for if not redis.REDIS_VERSION_NUM then
redis.replicate_commands()
end to potentially fix the issue. I would leave testing this to someone with more time and better access to ElastiCache though. |
Thanks @Namoshek. I will test it and get back to you tomorrow. |
@Namoshek I cloned the repo, updated the lua script in I was able to make it not to crash with an error by removing call to
I tested further using
I could not find any AWS documentation on that, but this answer (https://stackoverflow.com/a/51081809/94803):
I can submit a PR with a fix if you are ok with passing time as a parameter. Let me know. |
RedisTokenBucketRateLimiter
throws an error on Amazon ElastiCache Serverless for Redis. Every other limiter type works just fine.The text was updated successfully, but these errors were encountered: