Interview practice question
Memory grows with unbounded executor queue
Backend Engineering · Concurrency · Experienced
Your service submits tasks to an executor with an unbounded queue. Under load, memory grows until the service crashes. How do you fix it?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Unbounded queue hides overload.
- Use bounded queue.
- Rejection policy (caller runs, reject, 503).
- Admission control upstream.
- Monitor queue length.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.