Skip to content
StackDecode
System Design
11. Microservices ArchitectureAnimated

Ambassador Pattern

A helper proxy that talks to outside services for you.

The idea

The ambassador handles retries, monitoring and routing for calls to remote services.

Watch it work

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

ClientSidecar AService ASidecar BService BControl plane
  • client
  • gateway / proxy
  • service
  • cache
  • data store
  • queue / stream

A helper container runs beside each service.

step:
1/4
at:
Client
1/10

The green dot is a request moving through the system.

Step by step

  1. 1App calls localhost
  2. 2The ambassador forwards it
  3. 3It adds retries and logging
  4. 4It reaches the remote service

Where it is used

Legacy apps needing resilience.

Watch out for

Adds a hop of latency.

Related