Rate Limiter Function and Distributed Design

Asked at Atlassian · Coding Questions · Difficulty: Medium · Last asked Jan 31, 2026

Start with a small `shouldPass` rate-limiter function, then discuss how the same limiter works across API gateways or services. Follow-ups focus on rejected requests, per-customer or per-IP limits, memory growth, Redis/cache choices, consistency, and scaling.

Loading the problem…