Engineering at Patreon, published 2026-07-14 (The page shows July 14 with no year; 2026 is inferred from the post's account of finishing in Q1 2026 and the page's 2026 copyright line)
Architecture
Product code calls one API with a notification payload, a recipient list and a timestamp. The platform looks up the notification's factory, picks a batch size and priority, and fans out separately per channel. In the first stage the recipient list is split into batches, each handled by a task that filters recipients and generates channel-specific payloads; in the second, generated notifications are fanned out again into delivery tasks for the existing in-app feed, push and email systems.
Section: A single API for fanout | Section: How the fanout architecture works
Components
Component
Role
Where
send_fanout_notifications
The single entry point that replaced separate per-channel APIs; it finds the factory, determines batch size and priority and fans out work independently for each channel.
Section: A single API for fanout
Notification factory
The blueprint for one notification type: its priority, which user setting applies, how recipients are filtered and how each channel's payload is generated. A registry maps each notification model to its factory class.
Section: The Notification Factory abstraction
FanoutNotifications task
Handles one batch of recipients: filters them, runs eligibility logic and generates payloads through the factory. It sits between the API and the existing delivery systems.
Near: each batch is handled by a FanoutNotifications
Distributed task engine
Patreon's home-grown engine for asynchronous tasks, on which the factory pattern and the fanout tasks are built.
Near: built on top of our home-grown distributed
Channel delivery systems
The existing systems for in-app feed, push and email, which were not rewritten and receive work from dedicated delivery tasks.
Near: without rewriting the delivery systems that already | Near: dedicated delivery tasks for in-app feed, push
Timing and logging models
Data carried through the platform that records a timestamp at each stage and emits metrics and events for aggregate and per-recipient outcomes.
Near: we introduced timing and logging data models
Figures, as the source states them
Figure
As stated
Note
Where
Speed-up of push and in-app feed notifications for large creators
80 percent faster
Large creators; compared with the legacy platform
Near: push and in-app feed notifications are now
Speed-up of email notifications for large creators
55 percent faster
Large creators; compared with the legacy platform
Near: and email notifications are 55% faster
Latency growth on the legacy platform when an audience grows 4x
186 percent increase in end-to-end latency
Near: compared with a 186% increase on the
Latency growth for push and in-app feed when an audience grows 4x
33 percent increase in end-to-end latency
New platform; 60% for email
Near: end-to-end latency now increases by 33% for
Notification types migrated
200 notifications
More than
Near: we migrated more than 200 notifications and
Engineers involved in the migration
30 engineers
More than; across 10 teams; migration participants, not the platform team
Near: the migration involved 10 teams and more
Time two notification systems ran in parallel
9 months
Near: For nine months, we maintained two notification
Split notification generation into batches of recipients processed as many small tasks, ahead of the existing delivery systems
patreon-2026-notification-fanout#d1at corpus version 26a1b3a7e3dd
Chosen
A fanout layer was added in front of the existing delivery systems. It splits a large recipient list into smaller batches, generates recipient-specific notifications per batch in separate asynchronous tasks, then fans out again into delivery tasks per channel. Time-sensitive notifications were to run apart from standard ones on dedicated queues and worker pools.
Section: How the fanout architecture works | Near: Priority-based
What forced it
A single asynchronous task per post fetched all recipients, filtered them, generated every payload and handed off to delivery. For the largest creators one task could be generating millions of notifications, and by the beginning of 2025 it consistently timed out, so notifications for large audiences could not be delivered reliably.
Near: a single asynchronous task fetched all recipients | Near: By the beginning of 2025, this task
Reasoning
The team wanted to solve generation without rewriting the delivery systems. Product teams had started solving the scaling problem with bespoke patterns of their own, which worked short term but made notifications harder to build, operate and debug.
Near: without rewriting the delivery systems that already | Near: they began solving these problems with bespoke
What worked before
The single-task flow did its job well enough for a long time, as Patreon grew with a relatively small engineering team; the authors say dedicated fanout infrastructure was easy to defer while it kept working. The launch and growth of free memberships then sharply raised the number of fans per creator.
Near: For a long time, our notification system | Near: the launch and growth of free memberships
Outcome
The authors report that millions of notifications per creator are now generated reliably without timing out. For large creators push and in-app feed notifications are 80% faster and email 55% faster; when an audience grows 4x, end-to-end latency rises 33% for push and in-app feed and 60% for email, against 186% on the legacy platform.
Near: we can now reliably generate millions of | Near: push and in-app feed notifications are now | Near: compared with a 186% increase on the
Fan out each channel separately behind one API so a failing channel cannot block the others
patreon-2026-notification-fanout#d2at corpus version 26a1b3a7e3dd
Chosen
The separate per-channel sending APIs were replaced with one call, and the platform processes in-app feed, push and email independently of one another.
Section: A single API for fanout
Reasoning
The authors name as a limitation of the legacy flow that the three channels were tightly coupled, so a failure in one could block the others. With separate APIs per channel, notification flows could also diverge between channels and product teams had to think about channel-specific behaviour earlier than necessary.
Near: It did not isolate channels | Near: Previously, we had separate APIs for sending
Carry timing and per-recipient outcome records through the notification platform
patreon-2026-notification-fanout#d3at corpus version 26a1b3a7e3dd
Chosen
Timing and logging data models are propagated through the platform: it records a timestamp at each stage of the flow and emits metrics and events for aggregate and per-recipient outcomes, and developers can attach properties so relevant entities appear in traces and events.
Near: we introduced timing and logging data models
What forced it
On the legacy platform, finding out what happened to a particular notification often meant stitching together logs and data from several systems, and without per-recipient traces an investigation could take engineers several hours.
Near: investigations could take engineers several hours
Outcome
Timing metrics show where time is spent. The authors credit the improved observability, alerting, dashboards and debugging tools together with letting product engineers and support teams investigate more notification issues on their own, reducing the on-call burden on platform engineers.
Near: we enabled product engineers and support teams | Near: Timing metrics also give us a clearer
Finish a cross-team migration of 200-plus notification types with a leadership deadline and AI-generated first drafts
patreon-2026-notification-fanout#d4at corpus version 26a1b3a7e3dd
Chosen
The migration was finished under an engineering-leadership commitment to complete it in Q1 2026. The platform team did about half of the migrations itself and handed them to owners for rollout, and built AI skills, grounded in migration documentation and hand-written example pull requests, that generate a first-pass migration for a named notification.
Near: The turning point was getting engineering leadership | Near: Our team took on about half of | Near: we built AI skills to help engineers
Reasoning
A codemod could not do the work because each notification had its own business logic, data dependencies and eligibility rules. The longer two systems ran side by side, the more operational risk the team carried.
Near: could not be handled with a simple | Near: the more operational risk we carried
What worked before
At first product teams prioritized their own migrations, bottom-up. That got about 20% of the way over 6 months, slowing as migrations competed with product roadmaps.
Near: That got us about 20% of the
Cost
For nine months two notification systems ran in parallel and every platform change had to work with both, which widened the surface for bugs; the team saw a couple of minor incidents caused by compatibility issues.
Near: For nine months, we maintained two notification
Outcome
More than 200 notifications were migrated by 10 teams and more than 30 engineers, with 80% of the work done in six weeks. Handoffs were finished two weeks before the deadline, and a final sweep of the codebase in that buffer found 4 migrations not previously known and several incomplete ones.
Near: we migrated more than 200 notifications and | Section: What made the migration hard