Preparing your design workspace

Loading the problem and your latest saved attempt…

Design Go-Live Notifications for Followers

Design the phone notices a live video app sends to every follower when a creator starts a show: fast even for a creator with a million followers, nobody skipped, and sending stops soon after the show ends.

Problem statement

Design the notices a live video app sends when a creator starts a live show. Every follower of that creator should get a phone notice saying the show has started, quickly, and nobody who should get one may be skipped. A popular creator can have about one million followers.

Be ready to say which messaging tool you would put between the parts of the system, and what you give up with each option.

For this exercise, assume:

Shows and follows. Creators host live video shows, and users follow creators. When a creator starts a show, the app records the start once; a retried start request must not start a second round of notices. Following, unfollowing and turning go-live notices on or off for one creator take effect for shows that start about a minute or more after the change.

Notices. Each follower who has go-live notices on for that creator gets one notice on each signed-in phone. Tapping it opens the show. Notices go out through the outside phone push services, which accept a limited number of requests per second, can slow down or fail for minutes at a time, and report tokens that are no longer valid. Each notice carries the show ID, and the app on the phone replaces an earlier notice that has the same show ID, so a rare repeat send shows up once.

Followers. Most creators have fewer than 1,000 followers. The largest have about 1 million, and up to 5 of them can start shows within the same few minutes.

Late notices are useless. If the show has already ended, the remaining notices for it are not sent.

Out of scope: email, text messages, an in-app notice list, choosing which followers to notify by ranking, reminders for scheduled shows, the video streaming itself, and running in more than one region.

What to build

  1. When a creator starts a live show, the start is recorded once and triggers exactly one round of notices, even if the start request is retried.
  2. Every follower who has go-live notices on for that creator gets one notice on each of their signed-in phones, and tapping it opens the show.
  3. Notices reach the outside push services within the time targets, even for a creator with about 1 million followers, and sending stops soon after the show ends.
  4. A user can follow or unfollow a creator, turn go-live notices for that creator on or off, and register or remove a phone.

At scale

  • For this exercise, assume about 200 million follow links in total, about 50,000 shows a day, and up to 100 shows starting per second at the busiest evening hour.
  • For this exercise, assume that for a creator with about 1 million followers, 90% of the notices reach the push services within 1 minute of the start and all of them within 3 minutes; for a creator with fewer than 10,000 followers, all within 10 seconds.
  • For this exercise, assume up to 5 such large creators can start within the same few minutes, so plan for about 100,000 notices per second at peak, and a notice that is due must never be dropped because a server or the push service failed.