← Path
Microservices Architecture · Microservices Communication: REST, Events and the API Gateway
0 XP- 1 current stop: learning
- 2 upcoming
- 3 upcoming
- 4 upcoming
- 5 upcoming
Finish after stop 5
Stop 1 of 5 · Pharmacy counter, 30 seconds of silence
Trick to keep in mind+3 XP
Every outbound call needs a deadline: waiting is what a thread does worst.
Without a timeout, a request waits on a stuck dependency indefinitely, and the thread or connection it occupies is unavailable to anyone else. A handful of these empties the pool, callers further up queue behind them, and a healthy service looks dead. Cap each wait below what your own caller will tolerate.
Read it once, then a question tests whether the trick stuck.