marcosbarbero / spring-cloud-zuul-ratelimit

Rate limit auto-configure for Spring Cloud Netflix Zuul

Home Page:https://blog.marcosbarbero.com/spring-cloud-netflix-zuul-rate-limit/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

RedisRateLimter increment and expire is not atomic operation

VHTK opened this issue · comments

RedisRateLimter increment and expire is not atomic operation
In the middle of two steps,if Redis is down,The RedisRateLimter will create forever key
when request exceed the limit number,zuul filter will return 429 response
I think the increment and expire operation should use Lua script

Hello @VHTK ,thank you for submitting an issue!

Read the new Code, master has been solved the problem