Interview practice question
Fire-and-forget tasks get lost
Backend Engineering · Concurrency · Beginner
Your API starts background tasks in threads after responding, but some tasks never finish when the server restarts. How do you fix it?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- In-process tasks die with the process.
- Use durable job queue.
- Graceful shutdown waits for tasks.
- Idempotent, retryable jobs.
- Don't rely on in-memory for important work.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.