Trụ cột tổng hợp cuối — vận dụng Networking + Database + OOP để thiết kế hệ thống quy mô lớn. Từ scalability cơ bản đến case study Twitter / Uber / Netflix. Đây là phần phỏng vấn senior tốn nhiều thời gian nhất — và cũng là nơi tư duy kỹ sư được test thực sự.
Học theo thứ tự để xây dần từ nguyên lý → component lẻ → tổng hợp case study. Mỗi chương ~600–900 dòng với architecture diagram, trade-off analysis, ví dụ thật, và quiz.
Vertical vs horizontal scaling, latency vs throughput, capacity planning, back-of-envelope math, bottleneck analysis, các metric cốt lõi (P50/P95/P99).
L4 vs L7, các thuật toán (round-robin, least connections, IP hash, weighted), health check, sticky session. nginx, HAProxy, AWS ALB/NLB, Envoy.
Multi-tier caching (browser → CDN → reverse proxy → app → DB), patterns (cache-aside, write-through, write-behind), eviction (LRU/LFU/ARC), TTL, invalidation, stampede protection.
Read replica routing, sharding strategies (range/hash/directory), hot partition, denormalization for scale, polyglot persistence, CDC, CQRS, Event Sourcing.
Kafka, RabbitMQ, SQS/SNS. Pub-sub vs queue, event-driven, eventual consistency, sagas, idempotency, exactly-once vs at-least-once delivery, dead letter queue.
Khi nào split, decomposition strategy (BC), service mesh (Istio/Linkerd), distributed tracing, sync vs async, circuit breaker, bulkhead, retry/backoff/timeout.
CDN edge, rate limiting algorithms (token bucket, leaky bucket, sliding window), API Gateway (Kong, AWS API GW), DDoS protection, edge auth, observability.
5 case study kinh điển: URL shortener (Bit.ly), Twitter timeline (fan-out), Uber (geospatial), Netflix (CDN + microservice), Notification service. Khung tư duy interview.
"System design không có câu trả lời đúng — chỉ có trade-off có ý thức. Senior phỏng vấn đo bạn ở khả năng nhận ra trade-off và giải thích lựa chọn, không ở việc nhớ tên công nghệ."