Skip to content
StackDecode
System Design
11. Microservices ArchitectureAnimated

Inter-Service Communication

How services talk to each other.

The idea

Use synchronous calls (REST, gRPC) or asynchronous messages.

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. 1Pick sync or async per interaction
  2. 2Define contracts
  3. 3Add timeouts and retries
  4. 4Monitor

Where it is used

Every microservice system.

Watch out for

Chains of sync calls multiply latency and failure risk.

Related