Technical Architecture & AI Engineering · 6 min read
In-Memory Rate Limiter With Per-Tenant Tier Overrides
Design a testable TypeScript rate limiter with an injected clock, O(1) token bucket state, per-tier overrides, and bounded memory cleanup for multi-tenant services.
Question 1 of 3
During a peak traffic surge, your implementation of Code Design 1: In-Memory Rate Limiter with Overrides experiences elevated P99 latency and upstream timeouts. What is the immediate engineering leadership action?
Question 2 of 3
When designing Code Design 1: In-Memory Rate Limiter with Overrides, how should an engineering lead ensure zero data loss during network partitions?
Question 3 of 3
What is the most critical metric to monitor continuously in Code Design 1: In-Memory Rate Limiter with Overrides to detect degradation before customers report outages?