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