Notification Service: Breaking-News Push
Hard · system design problem
A breaking story multiplies notifications by eight for the rest of the hour, then the SMS vendor browns out. Alerts must still land within a minute.
Publishers send 6,000 notifications/s to notify-api, which appends them to Kafka (8 partitions). push-workers deliver each one through the push gateway (APNs/FCM) and, for the 10% of users who opted in, by SMS, then mark it delivered in the inbox store. Users read their inbox in the app. At T+20s a major story breaks: notifications ×8 for the rest of the hour. You hold accounts with two SMS vendors; only vendor A is wired in. Alerts are only useful if they arrive within 60 seconds.
Topics
More
Codelays runs in your browser: turn on JavaScript to use it.