A third-party API you depend on has rate limits, and you're hitting them during peaks.
BeginnerScenarioReleases & Reliability Patterns
Answer
Situation read → Hitting a dependency's rate limits causes 429s and failures.
What I'd do →
- Implement client-side rate limiting to stay under the limit.
- Cache responses where possible.
- Queue non-urgent requests and process them at a controlled rate.
- Handle 429 with backoff and respect
Retry-After. - Negotiate higher limits if needed.
Why → Respecting limits avoids cascading failures and keeps you in good standing with the provider.
Interview tip → Mention honoring Retry-After.
More on Releases & Reliability Patterns
A canary at 10% shows a 0.3% higher error rate than stable. Promote or roll back?IntermediateA downstream service is slow, and your service's retries are making it worse.IntermediateYou need to roll out a risky database schema change with zero downtime.AdvancedA feature flag was turned on for 100% of users and caused errors. How do you handle it and prevent recurrence?BeginnerYour service calls five dependencies sequentially, and total latency is too high.IntermediateA canary deploy passed analysis, but the full rollout caused errors at 100%.Advanced