Redis is (effectief) single-threaded voor commandouitvoering, dus elk commando wordt atoom uitgevoerd — volledig, zonder interleaving van andere clients. Deze atomariteit, gecombineerd met atomaire samengestelde commando's, is fundamenteel voor het correct gebruiken van Redis voor tellers, locks en concurrency-gevoelige operaties.
Waarom het belangrijk is
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.
