Sync vs async
On This Lesson 4 topics
This lesson is planned. The outline below lists the topics it will cover. The full lesson has not been published yet.
In this lesson
compare the two styles by coupling, latency, and failure.
Planned topics
- Synchronous: the caller waits for the answer (HTTP, gRPC). Simple, immediate result.
- Asynchronous: the caller sends a message and continues (broker). Decoupled in time, harder to reason about.
- Sync couples availability: if
inventoryis down,ordersfails too. - Async absorbs spikes and outages, but the result arrives later and must be tracked.
- Use sync for queries needing an answer now; async for work that can finish later.
Draft outline details
Demonstration
two sequence sketches for "place order": a sync chain versus OrderPlaced published to a broker.
Check your understanding
Which style needs both services up at the same moment?
Show answer
Synchronous.
Practice
Apply this lesson with the module's lab, exercises and quiz.
Marking a lesson complete is optional and you can undo it any time. Your progress stays in this browser.