Synchronous Communication 00:00:01 Hold the phone line open A buyer calls a box office and needs an answer before choosing a seat. That dependency makes the interaction synchronous from the buyer's perspective, regardless of whether the server uses a waiting thread or an asynchronous runtime. The client is ready to make a request. The client sends its request and cannot make the business decision until it receives an answer. The server sends the answer back. The client has the response and continues. A successful reply can carry the seat reservation the buyer needs. A timeout leaves uncertainty about whether the remote action occurred. Name the result the caller needs before connecting two services this way. 00:00:45 A call placed during another call The box office waits for pricing, which waits for a separate service. Each dependent hop consumes part of one customer's time budget. Trace where work is running and where an earlier caller is simply waiting. A does 50 ms of its own work, then calls B. In this blocking implementation, pricing occupies a worker and the calling service keeps a connection and waiting capacity. C answers B, B answers A, A answers the user. Next time C is down. B and A fail too, unless one of them has a fallback. With sequential dependencies the end-to-end latency accumulates across the path. A deep dependency can make several otherwise healthy services look slow to their callers. 00:01:37 Three independent questions leave together The order summary needs customer, purchase and product details. If none depends on another, an aggregator can issue its reads concurrently. The last required response still determines when the complete page can finish. Users, orders and products do not depend on each other. Users answers first. Orders answers. Products answers. The parts are joined and returned. Parallelism spends connections and downstream capacity to shorten the critical path. Decide which fields are required and whether a partial page remains an honest response if an optional source misses its deadline. 00:02:19 The waiting room fills before the processor does At one hundred requests a second and half a second of service time, about fifty requests are in flight on average. Slow the dependency and the same arrival rate occupies more of the finite worker pool. 100 a second x 0.5 s equals 50 busy threads. 200 a second x 0.5 s equals 100 busy threads. A small bump already queues. Back to 100 a second, but the dependency now takes 2 s. 100 times 2 equals 200 threads are needed. With a stable hundred arrivals per second and a wait capped at eight tenths, the wait contributes roughly eighty occupied workers under these assumptions. Bound concurrency and queue length as well as wait time. A timeout bounds the caller's wait, but the dependency still needs cancellation or its own deadline to reclaim work. 00:03:18 Seeing a free seat does not reserve it Two callers synchronously ask whether the final seat is available. The answer can be true for both. The property the box office needs is an authoritative reservation, not just a fast status check. Two shoppers check the stock at the same time. Both see 1. Both buy. The check was true when it was made, and it did not hold the item. Reserve lowers the stock only if it is above zero, in one step. One shopper gets the item, the other a clear no. Put the conditional reservation at the inventory owner. Then return its result within the caller's budget and provide a stable request identity so an uncertain reply can be looked up.