AlgoViz

Design a notification service

medium 45 min

One service that every team calls to reach a user by push, email, SMS or inside the app.

Where it shows up

The same pattern appears across everyday software.

  • One-time codes

    A person is waiting at a sign-in screen. The message is worthless after a few minutes, so it carries a deadline and a reserved lane.

  • Order and delivery updates

    Packed, shipped, arriving. A collapse key lets a newer update replace an older one on the lock screen.

  • Social activity

    A popular post produces thousands of likes. Grouping them into one message a minute protects the user and the quota.

  • Marketing campaigns

    Ten million users, sent over hours, at a controlled pace, with a pause button.

  • Operational alerts

    Monitoring tools page an engineer by push, then SMS, then a call. Escalation is a retry on a different channel.

  • Bulk email rules

    Gmail asks senders of more than 5,000 messages a day to support one-click unsubscribe for marketing mail and to keep reported spam below 0.3%.

  • Stale devices

    FCM treats an Android registration as expired after 270 days without activity and then rejects sends to it. Registries must be cleaned.