Back to problems

Design Scalable Notification Rate Limiter

System Design · Cursor · Medium

Design a rate-limiting service for outbound notification delivery. A single public method, should_send_notification(user_id, timestamp) -> bool, decides whether one notification send is admitted. It returns true only when the send can be accepted without breaking any quota. Every user belongs to exactly one team, and every team belongs to exactly one company. The service can resolve the mapping user -> team -> company. Admission is controlled by three simultaneous caps over…

Checking your access…