Interview practice question
Propagating deadlines across services
System Design · Distributed Systems · Intermediate
A user request passes through four services, each with a 2-second timeout. The user gives up after 3 seconds, but backend work continues. How do you fix this?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Propagate deadline with the request.
- Each service uses remaining time.
- Cancel downstream work when deadline passes.
- gRPC deadlines, context cancellation.
- Avoid wasted work.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.