Tagged articles

Expire

1 articles · Page 1 of 1
ITPUB
ITPUB
Jan 7, 2024 · Backend Development

Why Redis Distributed Locks Fail and How to Fix Leak and Mis‑release Issues

A Redis lock timeout caused users to be blocked for two hours, revealing problems with lock leakage and mis‑release; the article explains the root causes, proper use of SETNX with EXPIRE, and Lua scripts for atomic operations and safe lock deletion.

Distributed LockExpireLua
0 likes · 7 min read
Why Redis Distributed Locks Fail and How to Fix Leak and Mis‑release Issues