Interview practice question
Timeouts in a call chain don't line up
Backend Engineering · Microservices · Intermediate
Your gateway times out after 5 seconds, but services behind it have 10-second timeouts, so they keep working on requests the user has already abandoned. How do you fix this?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Downstream timeouts must be shorter than upstream.
- Propagate deadline/remaining budget.
- gRPC deadlines, context cancellation.
- Stop work when caller gives up.
- Avoid wasted load.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.