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.
- 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
- 1Service A calls B
- 2Waits
- 3B responds
- 4A continues
Where it is used
Queries needing an immediate answer.
Watch out for
If B is down, A is affected.