Redis ist (faktisch) single-threaded für die Befehlsausführung, sodass jeder Befehl atomar ausgeführt wird — vollständig, ohne Verschachtelung durch andere Clients. Diese Atomarität ist zusammen mit atomaren Verbundbefehlen fundamental für die korrekte Verwendung von Redis für Zähler, Locks und Concurrency-sensitive Operationen.
Warum es wichtig ist
Redis executes commands ONE AT A TIME (single-threaded command processing):
→ each command runs to completion before the next starts
→ NO two commands interleave → every command is inherently ATOMIC
→ no race conditions WITHIN a single command
→ This simplicity is a feature: predictable, atomic operations without locks.
