Interview practice question
Processing a large list with limited concurrency
Backend Engineering · Concurrency · Intermediate
You need to process 1 million records, calling a service for each, with at most 50 concurrent calls. How would you implement it?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Worker pool of 50.
- Feed records through queue/channel.
- Or semaphore around each call.
- Handle errors and retries per item.
- Track progress, support resume.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.