Skip to content
StackDecode
System Design
11. Microservices ArchitectureAnimated

Synchronous Service Communication

Request and response between services.

The idea

The caller waits for the answer, which is simple but couples availability.

Watch it work

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

Client stubgRPC serverHTTP/2 + protobuf: GetUser(id=7)
  • current message
  • earlier
  • failure or attack

A generated stub serialises the call to compact binary.

step:
1/4
from:
Client stub
to:
gRPC server
1/4

Time runs downward. Solid arrows are requests, dashed arrows are replies.

Step by step

  1. 1Service A calls B
  2. 2Waits
  3. 3B responds
  4. 4A continues

Where it is used

Queries needing an immediate answer.

Watch out for

If B is down, A is affected.

Related