Story #16 Rate Limiting · Multi-Tenant Isolation

The Rate Limit That Turned One Tenant's Sync Into Everyone's Outage

"One customer hit its API limit. Why did everyone else's dashboards slow down?"

A partner's new sync client ignored HTTP 429 Retry-After headers and retried immediately with hundreds of parallel workers. Rejected requests consumed shared gateway resources, degrading unrelated tenants even though they were within their own quotas.

What happened

Northstar Metrics offered a multi-tenant analytics API with a documented limit of 600 requests per minute per tenant. When exceeded, the gateway returned HTTP 429 with a Retry-After header. The design was sound: clients would pause, then resume. Other tenants would continue normally.

A major partner released a new sync client that launched hundreds of parallel workers at the top of every hour, exhausting its quota in seconds. The first wave returned HTTP 429. But the partner SDK treated every non-2xx response as a transient error and retried immediately—no respect for Retry-After, no coordination between workers.

The burst of rejected-but-retried requests consumed gateway and authentication capacity. Within minutes, unrelated tenants experienced elevated latency and missed report delivery windows. Operations suspected an infrastructure problem because CPU and request counts had spiked—even though the initiating partner was receiving mostly 429 responses.

Root cause

The rate-limit contract was never tested end to end. Server-side tests checked that request 601 returned 429, but never verified client behavior under sustained throttling, or whether enforcement truly isolated tenants. The SDK ignored Retry-After and had no concurrency budget. Shared gateway resources had no tenant-level fairness.

The fix

The partner SDK was updated to honor Retry-After, apply bounded exponential backoff with jitter, and coordinate concurrency across workers. The platform moved throttling earlier in the request path, introduced tenant-aware queuing, and added per-tenant rate-limit and saturation metrics.

Lesson learned

Returning HTTP 429 is not enough to make an API rate-limit-safe. The contract includes how clients respond, how quotas behave under concurrency, and whether one tenant’s excess traffic can affect everyone else.

The Rate Limit That Turned One Tenant's Sync Into Everyone's Outage