6 min read
Atomic budget reservation in Redis Lua: pattern and failure modes
A read-then-write budget check has a race window, and 20 concurrent calls all fit under the cap. Why check-and-increment belongs in one Lua script.
- Redis
- Architecture
1 article tagged Redis.
A read-then-write budget check has a race window, and 20 concurrent calls all fit under the cap. Why check-and-increment belongs in one Lua script.