线程模型
Redis / Cache · 6 notes
- 3.1 Redis Thread Modelhistorical
Redis's Reactor model, its single-threaded command execution, why it is fast, and Redis 6.x multi-threaded I/O.
- 3.2 Redis Concurrency Competitionhistorical
The Redis concurrency-competition problem and solutions using atomic commands, mutexes, optimistic locking, and Lua scripts.
- 3.3 Redis Slow Querieshistorical
Redis command execution flow, slow-query configuration and commands, and the in-memory FIFO implementation.
- 3.4 Redis Blockinghistorical
What Redis blocking is, how to discover it, and internal and external causes including complex commands, CPU saturation, persistence, swap, and network problems.
- 3.5 Redis bigkeyhistorical
What a Redis big key is, its risks, how to find and delete it, and the basic mitigation of splitting it into smaller keys.
- 3.6 Redis hotkeyhistorical
What a Redis hot key is, how to discover it, and how to mitigate it through key replication or local caching.