Problem Statement
Which trade-off best describes synchronous HTTP calls versus asynchronous messaging between services?
Explanation
A sync chain fails if any hop fails, which raises tail latency and blast radius. Async queues buffer work and isolate producers, but you must design for out-of-order delivery and duplicates.
Choose per use case. Keep the critical user path short and consider async for side effects.
Code Solution
SolutionRead Only
orders → (event) orders.created → inventory,email
