การทดสอบ microservices และระบบกระจาย ซับซ้อนกว่าการทดสอบ monolith — service โต้ตอบกันผ่านเครือข่าย พร้อมการ deploy อิสระและรูปแบบความล้มเหลวแบบกระจาย มันต้องการกลยุทธ์อย่าง contract testing การทดสอบระดับ service และแนวทาง integration/E2E ที่ระมัดระวัง
ความท้าทาย
Distributed systems are harder to test than monoliths:
→ many SERVICES interacting over the NETWORK (latency, failures, partial outages)
→ services deployed INDEPENDENTLY → integration/compatibility concerns
→ E2E testing across many services is SLOW, BRITTLE, and complex to set up
→ distributed failure modes (a service down, slow, returning errors)
