Intro & Principles
monolith เทียบ microservices, ข้อดีข้อเสีย, เมื่อไรควรใช้ และ pattern language เริ่ม →
Intro & Principles
monolith เทียบ microservices, ข้อดีข้อเสีย, เมื่อไรควรใช้ และ pattern language เริ่ม →
Decomposition
decompose ตาม business capability และตาม subdomain (DDD), self-contained service, service per team แยก →
Data Management
Database per Service, Saga, API Composition, CQRS, Event Sourcing จัดการข้อมูล →
Transactional Messaging
ปัญหา dual-write — Transactional Outbox, log tailing, polling publisher, idempotent consumer ส่งอย่างน่าเชื่อถือ →
Communication
RPI (REST/gRPC), messaging, API Gateway, Backends for Frontends, service discovery เชื่อมต่อ →
Reliability
Circuit Breaker, retry + timeout, bulkhead, rate limiting — อยู่รอดจาก partial failure ทำให้แกร่ง →
Observability
Health Check API, log aggregation, distributed tracing, metrics, audit logging สังเกตการณ์ →
Deployment & Cross-cutting
Service per Container, serverless, service mesh, microservice chassis, externalized config ส่งขึ้นจริง →
Context → Problem → Solution
ทุก pattern นำเสนอด้วยรูปแบบเดียวกัน คือสถานการณ์ แรงที่ต้องคลี่คลาย ทางออก และข้อดีข้อเสียที่ตามมา
ไดอะแกรมที่อธิบายชัด
ไดอะแกรมสถาปัตยกรรม, sequence และ state เป็น Mermaid ที่รองรับธีม — saga, สถานะของ circuit breaker, service mesh, การส่งต่อ trace
ตัวอย่างในสี่ภาษา
pattern เชิงตรรกะ (Saga, Circuit Breaker, Idempotent Consumer) มาพร้อม TypeScript, Python, Go และ Rust ในแท็บที่ sync กัน; pattern เชิง infra แสดง config จริง
สองภาษา + read mode
ภาษาอังกฤษและไทย, แบบทดสอบที่บันทึกความคืบหน้า และโหมดอ่านแบบไร้สิ่งรบกวน