Sliding Window Rate Limiting: Fixing the Redis Race Condition with Lua

A common approach to rate limiting in Spring Boot is checking a Redis counter and then incrementing it. However, under high concurrency…