Skip to content
StackDecode
System Design
11. Microservices ArchitectureAnimated

Asynchronous Service Communication

Services communicate through messages.

The idea

The sender publishes and moves on, so services stay decoupled in time.

Watch it work

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

ProducerEvent brokerBillingEmailAnalytics
  • client
  • gateway / proxy
  • service
  • cache
  • data store
  • queue / stream

A service publishes an event: "OrderPlaced".

step:
1/4
at:
Producer
1/8

The green dot is a request moving through the system.

Step by step

  1. 1Service A publishes an event
  2. 2The broker holds it
  3. 3B consumes when ready
  4. 4B may publish a result

Where it is used

Workflows and notifications.

Watch out for

Eventual consistency and harder debugging.

Related