notexOPENOverview
Notex/Systems/Design a notification system

Design a notification system

Always free to read

A notification system has already become a very popular feature for many applications in recent years. A notification alerts a user with important information like breaking…

10

DESIGN CASE STUDIES

Design a notification system

11 LESSONS · 15 MIN
  1. 10.01Design a notification systemA notification system has already become a very popular feature for many applications in recent years. A notification alerts a user with important information like breaking…READING1 MIN
  2. 10.02Step 1 - Understand the problem and establish design scopeBuilding a scalable system that sends out millions of notifications a day is not an easy task. It requires a deep understanding of the notification ecosystem. The interview…READING1 MIN
  3. 10.03Step 2 - Propose high-level design and get buy-inThis section shows the high-level design that supports various notification types: iOS push notification, Android push notification, SMS message, and Email. It is structured as…READING1 MIN
  4. 10.04Different types of notificationsWe start by looking at how each notification type works at a high level. iOS push notification We primary need three components to send an iOS push notification: Provider. A…READING2 MIN
  5. 10.05Contact info gathering flowTo send notifications, we need to gather mobile device tokens, phone numbers, or email addresses. As shown in Figure 10-7, when a user installs our app or signs up for the…READING1 MIN
  6. 10.06Notification sending/receiving flowWe will first present the initial design; then, propose some optimizations. High-level design Figure 10-9 shows the design, and each system component is explained below.…READING3 MIN
  7. 10.07Step 3 - Design deep diveIn the high-level design, we discussed different types of notifications, contact info gathering flow, and notification sending/receiving flow. We will explore the following in…READING1 MIN
  8. 10.08ReliabilityWe must answer a few important reliability questions when designing a notification system in distributed environments. How to prevent data loss? One of the most important…READING1 MIN
  9. 10.09Additional components and considerationsWe have discussed how to collect user contact info, send, and receive a notification. A notification system is a lot more than that. Here we discuss additional components…READING2 MIN
  10. 10.10Updated designPutting everything together, Figure 10-14 shows the updated notification system design. In this design, many new components are added in comparison with the previous design.…READING1 MIN
  11. 10.11Step 4 - Wrap upNotifications are indispensable because they keep us posted with important information. It could be a push notification about your favorite movie on Netflix, an email about…READING1 MIN

References

Step 4 - Wrap up
  1. Twilio SMS: https://www.twilio.com/sms
  2. Nexmo SMS: https://www.nexmo.com/products/sms
  3. Sendgrid: https://sendgrid.com/
  4. Mailchimp: https://mailchimp.com/
  5. You Cannot Have Exactly-Once Delivery: https://bravenewgeek.com/you-cannot-haveexactly-once-delivery/
  6. Security in Push Notifications: https://cloud.ibm.com/docs/services/mobilepush? topic=mobile-pushnotification-security-in-push-notifications
  7. RadditMQ: https://bit.ly/2sotIa6
KEEP EXPLORING

One note leads to another.

Back to the library →
⌕
Search across the entire library ⌘ K