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