Skip to content
StackDecode
System Design
9. Message Queues and Event-Driven SystemsAnimated

Synchronous Communication

The caller waits for the answer.

The idea

Request and response in one flow, such as an HTTP call.

Watch it work

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

ClientServerGET /index.html
  • current message
  • earlier
  • failure or attack

A request names a method, a path and headers.

step:
1/4
from:
Client
to:
Server
1/4

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

Step by step

  1. 1Caller sends a request
  2. 2Waits
  3. 3Receiver responds
  4. 4Caller continues

Where it is used

Simple interactions.

Watch out for

Latency adds up and failures cascade.

Related