3.Thread Model
Redis / Cache · 6 notes
- 3.1 Redis Execution and Threading Modelhistorical
Redis event-driven command execution, I/O multiplexing, threaded network I/O, background work, and why the phrase 'Redis is single-threaded' needs qualification.
- 3.2 Redis Concurrency Raceshistorical
Why individually atomic Redis commands do not make multi-command application workflows atomic, and how INCR, WATCH, Lua/Functions, locks, and database constraints solve different races.
- 3.3 Redis Slow Loghistorical
What Redis Slow Log measures, what it omits, how to configure and inspect it, and how to correlate slow commands with end-to-end latency.
- 3.4 Redis Latency and Blockinghistorical
A production-oriented guide to Redis stalls caused by slow commands, big keys, CPU saturation, persistence/fork, memory pressure, swap, networking, and client backpressure.
- 3.5 Redis Big Keyshistorical
Why oversized Redis values or collections cause latency, bandwidth, memory, replication, deletion, and cluster-balance problems, plus safe detection and mitigation.
- 3.6 Redis Hot Keyshistorical
How one disproportionately popular key overloads a Redis shard, how to detect it, and strategies such as local caches, replica reads, key replication, request coalescing, and data-model changes.