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

  1. Redis mất hoàn toàn thì correctness nào còn, capacity nào thiếu?
  2. Cache data nào không thể dựng lại và vì sao?
  3. DB commit rồi invalidation mất thì phát hiện/sửa thế nào?
  4. Reader cũ populate muộn được chặn bằng gì?
  5. Stampede, avalanche, penetration khác nhau thế nào?
  6. Một hot key có được giải quyết bằng thêm shard không?
  7. Dataset estimate đã gồm overhead và headroom chưa?
  8. Eviction policy có thể xóa session/lock không?
  9. RDB/AOF đáp ứng RPO/RTO nào và restore đã thử chưa?
  10. Failover có thể mất acknowledged write không?
  11. Client làm gì với MOVED/ASK, reconnect và unknown outcome?
  12. Lua/transaction/pipeline khác nhau ở atomicity và latency nào?
  13. Lease hết khi worker còn chạy thì fencing ở đâu?
  14. Stream pending/poison/reclaim được vận hành thế nào?
  15. 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.

Về lộ trình Redis