Tier này dạy gì?
Tier 6 đi vào hệ phân tán: nền tảng lý thuyết (CAP, consistency),
service discovery & load balancing, message queue (Kafka/NATS), kiến trúc event-driven,
saga cho distributed transaction, CQRS & event sourcing, consensus (Raft), microservice
patterns, service mesh. Kết thúc với mini-project 3 microservice giao tiếp qua gRPC + queue + saga.
Tiền đề: đã xong Tier 5 (DB, transaction, cache).
Lesson 62
CAP theorem, FLP, consistency model, eventual consistency, vector clock, idempotency.
Lesson 63
DNS, Consul, etcd, client-side vs server-side LB, health check, load balancing algorithms.
Lesson 64
Pub/sub, queue group, partition/ordering, at-least-once vs exactly-once, consumer group.
Lesson 65
Event vs command, outbox pattern, choreography vs orchestration, idempotent consumer.
Lesson 66
Distributed transaction, compensating action, choreography vs orchestration saga.
Lesson 67
Command vs query model, event store, replay, snapshot, projection, eventual consistency.
Lesson 68
Raft cơ bản, leader election, log replication, quorum, split-brain.
Lesson 69
Sidecar, ambassador, BFF, anti-corruption layer, strangler fig, API gateway.
Lesson 70
Istio/Linkerd, sidecar proxy, mTLS, traffic shaping, observability, khi nào cần mesh.
Lesson 71
3 service (order/payment/inventory) giao tiếp qua gRPC + message queue, có saga + idempotency.