System Design for Solution Architects: from Whiteboard to Production

เตรียม engineers และ SAs สู่ role Solution Architect / Principal Engineer: แปลง business goals และ NFRs เป็น design ที่ scale ได้ ครบทั้ง capacity estimation, load balancing, CAP, data stores, caching, messaging, API design, security, observability, safe delivery และ ML systems พร้อม capstone ระบบ QR payment และ proposal

ผู้ทำงาน (Senior Engineer / SA ขึ้นไป) 12 บทเรียน ประมาณ 7 ชม. 15 นาที
เริ่มเรียนบทแรก →

สิ่งที่จะได้เรียนรู้

  • Run design session แบบมีโครงสร้าง ตั้งแต่ clarify requirements และ NFRs จนถึง deep dive และ trade-offs
  • ทำ back-of-the-envelope estimation ของ QPS, storage, bandwidth และจำนวน servers
  • Scale stateless services ด้วย load balancers, CDN, consistent hashing และ rate limiting
  • อธิบาย CAP, PACELC, consistency models และ replication แล้วเลือกใช้ได้เหมาะกับ use case
  • เลือก SQL หรือ NoSQL และ design indexing, sharding, transactions และ isolation levels
  • ใช้ caching strategies และ eviction policies โดยหลีกเลี่ยง stampede และ stale data
  • Design event-driven systems ด้วย delivery semantics, idempotent consumers, outbox และ sagas
  • Design APIs ทั้ง REST, GraphQL, gRPC, WebSocket และ webhooks พร้อม pagination, idempotency และ versioning
  • Build security เข้าไปใน design ด้วย OAuth 2.0/OIDC, JWT, SSO, encryption และ secrets management
  • Design observability, SLOs และ resilience และ deliver อย่างปลอดภัยด้วย Kubernetes, IaC, CI/CD, blue-green และ canary
  • Outline ML systems สำหรับ recommendation, search และ ranking
  • Design ระบบ QR payment ครบทุก layer พร้อม estimates, ADRs และ proposal section

เนื้อหาในคอร์ส

  1. 1 Role & Estimation 2 บท
    1. 1 The Solution Architect Role & a Design Method Role ของ Solution Architect / Principal Engineer ตั้งแต่ pre-sales จนถึง delivery, discovery workshop, การแปลง NFRs เป็นตัวเลข และ design method 4 steps ที่ใช้ได้ทั้งกับลูกค้าจริงและ system design interview 25 นาที
    2. 2 Capacity Estimation Back-of-the-envelope estimation สำหรับ architects ทั้ง powers of 10, latency numbers, การคำนวณ QPS, peak, storage, bandwidth และจำนวน servers พร้อม worked example ระบบ flash sale ของ e-commerce ไทย 35 นาที
  2. 2 Scalability Building Blocks 2 บท
    1. 3 Scalability Building Blocks Vertical vs horizontal scaling, stateless services, L4/L7 load balancers และ algorithms, CDN, consistent hashing พร้อม virtual nodes และ rate limiting ด้วย token bucket 35 นาที
    2. 4 Consistency, CAP & Replication CAP theorem ที่อธิบายถูกต้อง, PACELC, consistency models ตั้งแต่ strong ถึง eventual, leader-follower, multi-leader และ leaderless replication พร้อม quorum และ consensus แบบ Raft 35 นาที
  3. 3 Data & Caching 2 บท
    1. 5 Data Stores, Indexing & Transactions เลือก SQL หรือ NoSQL อย่างมีเหตุผล, B-tree vs LSM index, composite index, sharding strategies, transactions และ isolation anomalies, object storage และ change data capture (CDC) 40 นาที
    2. 6 Caching Strategies Caching ทุก layer ตั้งแต่ CDN ถึง Redis, cache-aside, read-through, write-through และ write-behind, eviction policies, invalidation, การคำนวณ hit ratio และปัญหา stampede, hot keys และ cache penetration 30 นาที
  4. 4 Integration 2 บท
    1. 7 Messaging & Event-driven Design ใช้ message queues และ event streaming อย่างถูกที่, RabbitMQ vs Kafka, delivery semantics, idempotent consumers, retries กับ DLQ, ordering, transactional outbox, distributed locks และ sagas 40 นาที
    2. 8 API Design เลือก API style ระหว่าง REST, GraphQL, gRPC, WebSocket และ webhooks, REST conventions, offset vs cursor pagination, idempotency keys, versioning, API gateway และ webhook security 35 นาที
  5. 5 Production-ready 3 บท
    1. 9 Security by Design Authentication และ authorization, OAuth 2.0 และ OpenID Connect flows ที่ควรใช้, JWT pitfalls, SSO, RBAC/ABAC, encryption in transit และ at rest ด้วย KMS, secrets management และ OWASP API Security Top 10 35 นาที
    2. 10 Observability, Resilience & Safe Delivery Logs, metrics และ traces ด้วย OpenTelemetry, SLI/SLO และ error budget, alerting, resilience patterns (timeouts, retries, circuit breaker, bulkhead), Kubernetes, infrastructure as code, CI/CD, blue-green และ canary พร้อมตาราง map services บน AWS, Azure และ GCP 40 นาที
    3. 11 ML Systems Design Design ML systems สำหรับ recommendation, search และ ranking แบบ two-stage, offline และ online metrics, feature store และ training-serving skew, hybrid search, latency budget, cold start, feedback loops และจุดที่ LLM features เข้ามาเสริม 35 นาที
  6. 6 Capstone Project 1 บท
    1. 12 Capstone: a QR Payment Service Design case แบบ end-to-end ของระบบจ่ายเงินด้วย QR สำหรับ e-wallet ในไทย ตั้งแต่ requirements, estimation, architecture, idempotency, ledger, reconciliation, security, observability และ rollout จนถึง ADRs และ proposal section ภาษาไทยและอังกฤษ พร้อม rubric 50 นาที