SpinTheMic
Pro

Interview practice question

One million API calls per day

Data Engineering · Python · Experienced

You need to make about one million API calls per day to enrich records, with a rate limit of 200 requests per second. How do you design it?

What a strong answer covers

Your AI report card counts how many of these ideas you cover.

  • Use asyncio with an async HTTP client.
  • Implement a token bucket rate limiter at 200 per second with some headroom.
  • Queue work items and process in batches.
  • Retry with backoff and track failed items for replay.
  • Checkpoint progress so restarts don't redo work.
Practise this topic

Start without signing up. Sign in free to get an AI report card on your answer.

See all topics