Interview practice question
Calling a rate-limited partner API
Data Engineering · AWS Lambda · Experienced
Your Lambdas must call a partner API that allows only 50 requests per second, but your event volume spikes far above that. How do you design it?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Buffer events in SQS.
- Limit concurrency with SQS maximum concurrency or reserved concurrency.
- Implement token bucket rate limiting if needed, with shared state.
- Retry 429s with backoff, using DLQ for persistent failures.
- Batch requests if the API supports it.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.