HomeInterview QuestionsYou must call a rate‑limited partner API to enrich…

You must call a rate‑limited partner API to enrich records before writing to Silver. The goal is high throughput with bounded concurrency and retries. What Python pattern fits best?

🟡 Medium Conceptual Senior level
1Times asked
May 2026Last seen
May 2026First seen

💡 Model Answer

Use asyncio with aiohttp and a bounded semaphore to limit concurrent requests. Wrap each call in an async retry loop (e.g., tenacity or custom logic) that respects the partner’s back‑off policy. The semaphore ensures you never exceed the allowed concurrency, while retries handle transient failures. This pattern scales to thousands of requests per second, keeps memory usage low, and integrates cleanly with the rest of the ETL pipeline.

This answer was generated by AI for study purposes. Use it as a starting point — personalize it with your own experience.

🎤 Get questions like this answered in real-time

Assisting AI listens to your interview, captures questions live, and gives you instant AI-powered answers — invisible to screen sharing.

Get Assisting AI — Starts at ₹500