线程模型
Redis / Cache · 6 notes
- 3.1 Redis Thread Modelhistorical
Redis organizes requests through sockets, I/O multiplexing, an event dispatcher, and handlers. These notes examine its threading model through those components.
- 3.2 Redis Concurrency Competitionhistorical
Two clients reading and updating the same value can race. These notes use concurrent price increments to examine unexpected update results.
- 3.3 Redis Slow Querieshistorical
Redis requests pass through sending, queuing, execution, and response stages. These notes distinguish their costs and the execution time tracked by slow queries.
- 3.4 Redis Blockinghistorical
Redis is blocked when it cannot respond to clients for an extended period. These notes examine blocking operations and troubleshooting through its command-execution thread.
- 3.5 Redis bigkeyhistorical
Big keys concern Redis values that occupy substantial space. These notes record identification methods and thresholds by data type.
- 3.6 Redis hotkeyhistorical
A single key can create a hotspot when its requests concentrate on one Redis instance. These notes examine hot-key detection and handling through QPS.