Menguji microservices dan sistem teragih adalah lebih kompleks daripada menguji monolit — perkhidmatan berinteraksi melalui rangkaian, dengan deployment bebas dan mod kegagalan teragih. Ia memerlukan strategi seperti contract testing, pengujian peringkat perkhidmatan, dan pendekatan integrasi/E2E yang berhati-hati.
Cabarannya
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)
