Testing Service-Based Systems
Design a test portfolio for a system of services that catches each risk at the cheapest reliable level, tests asynchronous flows deterministically and adds production checks where pre-release tests cannot reach.
4 objectives 6 steps about 140 min
Check what you know
The lessons are coming later. The knowledge check is ready now.
This skill page is a public outline. Its lessons and knowledge check appear here as subject-matter experts approve them.
Learning objectives
- Design a test portfolio for a service-based system that assigns each named risk to the cheapest level able to catch it (unit, component, contract, integration, end-to-end or production check) and justifies the size of each layer.
- Isolate one service for component testing by replacing the services it calls with stubs generated from or verified against their contracts, while keeping its own database and broker real.
- Test asynchronous, event-driven flows deterministically by asserting on published events and eventual state with bounded polling instead of fixed sleeps, including duplicate and out-of-order deliveries.
- Decide which risks only production checks can catch and verify them with synthetic transactions, canary comparison or shadow traffic that causes no side effects.
Lesson plan
6 steps, about 140 min · 0 of 5 lessons available so far
- Where risks hide in a system of services, and which tests find them Concept · 20 min · coming later
- A test portfolio for checkout and its neighbours Worked example · 25 min · coming later
- Component tests with real infrastructure and contract-based stubs Lab · 30 min · coming later
- Deterministic tests for an event-driven flow Lab · 30 min · coming later
- Checks only production can run: synthetics, canaries and shadow traffic Concept · 20 min · coming later
- Test strategy check Knowledge check · 8 questions
Practise it
For a three-service sample system, write a one-page test portfolio that maps ten named risks to test levels, implement one component test per service with its own infrastructure in containers and contract-based stubs for its neighbours, one event-flow test that survives a duplicate delivery without sleeps, and one synthetic transaction; report suite runtime and the number of flaky failures over twenty runs.
References
Hard prerequisites
None.
Unlocks
Nothing depends on this skill yet.
On these roadmaps
Progress and evidence for this skill are shared across all of them.