01Chapter 1: Clarifying requirements and scopeA notification system looks simple until you try to size it. Before you draw any boxes, you need to agree on what the system must do and how well it must do it. This chapter covers that first step.2 min read
02Chapter 2: Choosing channels: push, SMS, email and in-appThis chapter assumes you know how HTTP APIs and queues work and can read short Python snippets. It compares the four channels a notification system usually supports. The comparison drives routing, cost and failure handling in later chapters.2 min read
03Chapter 3: A high-level architectureThis chapter assumes you know how HTTP APIs work, what a message queue is, and the difference between a database and a key-value store. Here you will see how the pieces of a notification system fit together. Later chapters cover each piece in detail.2 min read
04Chapter 4: Accepting notification eventsThis chapter assumes you know HTTP APIs, basic message queues, and short Python snippets. It covers the entry point of the system: the API that producers call to request a notification.2 min read
05Chapter 5: Respecting user preferences and quiet hoursThis chapter assumes you know how an event enters the system (see the ingestion chapter), can read short Python snippets, and have used a key-value store or a database table. The goal is to decide which channels a notification may use for a given user at a given moment.2 min read
06Chapter 6: Templates and localizationThis chapter assumes you know how events reach a channel worker, as covered in the ingestion and queue chapters. It also assumes you can read short Python snippets. Here you will see how a worker turns an event into the text a user reads.2 min read
07Chapter 7: Decoupling with queues and channel workersThis chapter assumes you know what a message queue is, can read short Python snippets, and have seen the high-level architecture from the earlier chapter. It covers how queues separate accepting an event from delivering it, and how per-channel workers do the delivery.2 min read
08Chapter 8: Integrating with delivery providersThis chapter assumes you know the pipeline from the architecture chapter: events enter a queue, and channel workers take them off it. You should also be comfortable with HTTP status codes and short Python snippets.2 min read
09Chapter 9: Managing device tokensThis chapter assumes you have read the chapters on provider integration and retries. It also assumes you can read short Python snippets.2 min read
10Chapter 10: Handling failures with retries and backoffThis chapter assumes you know how queues and workers decouple producers from delivery, and that you can read short Python snippets. Providers such as push gateways, SMS carriers and email APIs fail often enough that every channel worker needs a retry policy.2 min read
11Chapter 11: Avoiding duplicate notificationsThis chapter assumes you know how message queues work, can read short Python snippets, and have seen retries with backoff. Queues and retries make delivery reliable, but they also create duplicates.2 min read
12Chapter 12: Rate limiting and throttlingThis chapter assumes you know the pipeline from earlier chapters: events enter through an API, preferences filter them, and queues feed channel workers that call providers. It also assumes you can read short Python snippets.2 min read
13Chapter 13: Prioritizing urgent notificationsThis chapter assumes you know how message queues and channel workers fit together, and that you can read short Python snippets. Here we cover how to make sure a password reset code is not stuck behind a million promotional messages.2 min read
14Chapter 14: Scheduling and batchingThis chapter assumes you know the pipeline from earlier chapters: events enter through an ingestion API, go onto queues, and channel workers send them through providers. It also assumes you can read short Python snippets. Here we add two controls that change when and how many messages go out.2 min read
15Chapter 15: Tracking delivery status and feedbackThis chapter assumes you know how queues and workers hand events to providers, and that you have seen retries with backoff. Here we cover what happens after a worker calls a provider: how you learn whether the message arrived, and what you do with that information.2 min read
16Chapter 16: Scaling and reliabilityThis chapter assumes you know how the queues and channel workers from earlier chapters fit together. It also assumes you know why retries and idempotency keys exist. Here you will use them to keep the system running as load grows and parts of it fail.2 min read
17Chapter 17: Monitoring and observabilityThis chapter assumes you know the pipeline from earlier chapters: producers, queues, channel workers, providers and delivery receipts. It covers how to tell whether that pipeline is healthy and where to look when it isn't.2 min read
18Chapter 18: Privacy, consent and complianceThis chapter assumes you know the routing and preference checks from the earlier chapters and can read short Python snippets. It covers how the system proves a user agreed to a message and how it handles personal data. It is engineering guidance, not legal advice. Confirm the rules for your markets 2 min read