System Design
11. Microservices ArchitectureAnimated
Service Decomposition
Deciding how to split a system into services.
The idea
Split along business capabilities and bounded contexts, not technical layers.
Watch it work
Press play, pause, or step through. Some animations have settings you can change.
- client
- gateway / proxy
- service
- cache
- data store
- queue / stream
Put a facade in front of the legacy system.
- step:
- 1/4
- at:
- Client
1/8
The green dot is a request moving through the system.
Step by step
- 1Map business capabilities
- 2Find natural boundaries
- 3Check data ownership
- 4Start with fewer, larger services
Where it is used
Migrating from a monolith.
Watch out for
Too many tiny services create a distributed monolith.