Skip to content
StackDecode
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.

ClientFacade/proxyLegacy appNew serviceData
  • 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

  1. 1Map business capabilities
  2. 2Find natural boundaries
  3. 3Check data ownership
  4. 4Start with fewer, larger services

Where it is used

Migrating from a monolith.

Watch out for

Too many tiny services create a distributed monolith.

Related