Chuỗi nhớ nhanh
Vai trò → source of truth → workload/key distribution → consistency/TTL → memory/eviction → HA/durability → client/failover → degraded mode → observability/recovery.
15 câu tự kiểm tra
- Redis mất hoàn toàn thì correctness nào còn, capacity nào thiếu?
- Cache data nào không thể dựng lại và vì sao?
- DB commit rồi invalidation mất thì phát hiện/sửa thế nào?
- Reader cũ populate muộn được chặn bằng gì?
- Stampede, avalanche, penetration khác nhau thế nào?
- Một hot key có được giải quyết bằng thêm shard không?
- Dataset estimate đã gồm overhead và headroom chưa?
- Eviction policy có thể xóa session/lock không?
- RDB/AOF đáp ứng RPO/RTO nào và restore đã thử chưa?
- Failover có thể mất acknowledged write không?
- Client làm gì với MOVED/ASK, reconnect và unknown outcome?
- Lua/transaction/pipeline khác nhau ở atomicity và latency nào?
- Lease hết khi worker còn chạy thì fencing ở đâu?
- Stream pending/poison/reclaim được vận hành thế nào?
- Dashboard nào cho biết Redis đang làm DB chết theo?
Bài thiết kế 45 phút
Thiết kế Redis cho commerce: catalog 20k RPS, price stale tối đa 30 giây, inventory không được bán vượt, session 2 triệu người dùng, flash-sale hot product và rate limit API. Trình bày key/data structure, cache pattern, invalidation, memory/eviction, Cluster/HA, lock hoặc atomic primitive, failover/degraded mode, SLO và năm failure test.
Tự chấm
Mỗi nhóm 0–2: correctness; performance/capacity; HA/durability; overload/recovery; observability/security. Dưới 7/10, chọn failure boundary yếu nhất và làm một lab.