Act as an API infrastructure engineer. Build The API Rate Limit Behavior Observatory, an interactive simulator that demonstrates how different client strategies behave when an API imposes request limits.
Let users configure request rates, quota windows, burst limits, concurrent clients, rate-limit responses, and retry policies.
The application must:
Simulate fixed-window, sliding-window, and token-bucket limiters.
Visualize requests, accepted calls, rejected calls, and remaining quota.
Demonstrate synchronized retry storms and exponential backoff with jitter.
Compare client-side throttling with reactive retries.
Model concurrent clients sharing a quota.
Track success rate, latency, request volume, and simulated retry cost.
Let users replay scenarios using identical parameters.
Generate configuration recommendations based on user-defined objectives.
Export event traces and comparison reports.
Include scenarios for a public API, a shared SaaS API key, and a bursty background worker. Keep all traffic simulated and never send load to a real service. Explain the assumptions behind each limiter and distinguish simulated performance from actual provider behavior.
0 Comments