Design a service that other teams call to notify users by push, email or SMS. Notifications must not be lost, users can opt out per channel, and third-party providers sometimes slow down or fail.
Functional requirements
Accept notification requests from internal services
Deliver by push, email or SMS
Respect user channel preferences
Retry failed deliveries
Non-functional requirements
No accepted notification is lost
Duplicate sends are minimised
A slow provider must not block other channels
Constraints and scale
10 million notifications per day, bursts of 5 000 per second