Skip to content
StackDecode
System Design
11. Microservices ArchitectureAnimated

Microservices Fundamentals

Small services that own a capability and its data.

The idea

Each service is independently deployable and owned by one team, communicating over the network.

Watch it work

Press play, pause, or step through. Some animations have settings you can change.

ClientAPI gatewayUsersOrdersPaymentsDBs
  • client
  • gateway / proxy
  • service
  • cache
  • data store
  • queue / stream

Clients call one entry point.

step:
1/4
at:
Client
1/8

The green dot is a request moving through the system.

Step by step

  1. 1Identify capabilities
  2. 2Build one service per capability
  3. 3Give each its own data
  4. 4Connect with APIs and events

Where it is used

Large systems and teams.

Watch out for

You pay in complexity: networks fail and data is distributed.

Related