1. Single-Instance Redis Lock (SETNX with TTL)
Acquiring an exclusive resource lock using atomic SET key val NX PX milliseconds with unique random token identifiers.
"Taking the only single physical bathroom key on a lanyard at a coffee shop counter."
Extremely fast and simple, but vulnerable if the single Redis master node crashes before replication.
The go-to lightweight locking mechanism for 90% of web backend workloads.