Redis / Cache
32 notes
Some notes are currently available only in Chinese. English translations are shown when available.
- 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.
- 4.1 Redis Clusterhistorical
Redis Cluster sharding with 16,384 hash slots, client redirection, hash tags, resharding, replica failover, and its consistency and multi-key constraints.
- 4.2 Redis Sentinelhistorical
Redis Sentinel monitoring and failover for primary-replica deployments, including subjective/objective down states, quorum, failover authorization, promotion, and remaining consistency limits.
- 4.3 Redis Replicationhistorical
Redis primary-replica replication, full and partial synchronization, replication backlog, stale replica reads, and asynchronous failure semantics.
- 5.1 Redis Key Expirationhistorical
TTL semantics and Redis's combined passive and active expiration strategy, without depending on historical sampling constants.
- 5.2 Redis Memory Managementhistorical
How Redis memory is consumed, why RSS differs from logical dataset memory, fragmentation and allocator effects, maxmemory, expiry, eviction, and practical observability.