Redis Lua Scripting for Distributed Systems: How Atomicity Prevents Race Conditions.
There is a failure mode that is almost impossible to reproduce in tests but completely reproducible in production under load. Two workers. One Redis key. Both check whether a task has already been cla
koladefaj.hashnode.dev11 min read