---
title: 'Webhook Fanout Is a Scheduling Problem'
authors: ['abhi']
date: 2026-11-24T12:00:00
tags: ['technical', 'webhooks']
summary: 'Copying one event to every subscribed endpoint is a loop. Keeping one slow endpoint from delaying everyone else is the actual work. We go over where webhook fanout breaks and what to do about it.'
---

Webhook fanout is delivering one event to every endpoint subscribed to it. The copying is the easy part, since it's a loop. The hard part is that every copy succeeds, fails, and retries on its own schedule while competing for the same workers, which makes fanout mostly a scheduling problem.

If you want the definition and a step-by-step build, our resources page on [webhook fan-out](https://www.svix.com/resources/glossary/webhook-fanout/) has both. This post is about the part that doesn't show up until there are real customers on the other end.

## Count the multipliers

One API call rarely produces one webhook. A single payment can emit a charge event, an invoice event, and a subscription event. Each of those goes to every endpoint subscribed to it, and customers tend to register more than one. Then any of those deliveries can fail and come back as a retry.

We ran the numbers in [The Product Manager's Guide to Sending Webhooks](/the-product-managers-guide-to-sending-webhooks/): 100 API requests per second at four events each is 400 webhooks per second before a single retry, and one large customer having a bad day can push that into five figures.

So the first thing fanout does is make your outbound traffic much larger than your inbound traffic, and a lot spikier.

## Give each delivery its own state

The first version everyone writes is a loop over endpoints with a status column on the event. It breaks the first time one endpoint out of three fails. Is the event delivered? If you retry the event, the two endpoints that already got it get it twice.

The unit of work is the pair of event and endpoint, not the event. Each pair needs its own attempt count, its own next retry time, and its own final status. Once you model it that way, fanning out is a write: persist the event, then create one queued delivery per subscribed endpoint. Do it in that order, so a crash halfway through the expansion can resume instead of leaving half your customers without the event.

## Keep slow endpoints from blocking

This is where it turns into scheduling. Customer endpoints are not uniformly healthy. Some answer in 50 milliseconds, some take 20 seconds, and some hang until you give up on them. Svix waits up to [30 seconds](https://docs.svix.com/retries) for a response, for example.

Your worker pool is finite. If deliveries come off one shared queue in order, a burst of events for a customer whose endpoint is hanging can occupy every worker at once, and everything behind it waits out the timeout. This is the noisy neighbors problem, and the unfair part is who pays for it. The customer with the broken endpoint doesn't notice a delay. The customer with a healthy endpoint gets their payment webhook late because of somebody else's outage.

The fix is to stop treating the queue as first in, first out across endpoints. Cap how many deliveries a single endpoint can have in flight, schedule so that every endpoint gets a turn, and pause endpoints that keep failing so they stop taking attempts at all. None of these are exotic. They're just a lot more machinery than a loop.

Independent scheduling has a cost, which is ordering. Two events for the same object can arrive in either order once each delivery retries on its own. We wrote about [why you can't guarantee webhook ordering](/guaranteeing-webhook-ordering/) in general, and about [FIFO endpoints](/fifo-ordered-webhooks-delivery/) for the cases where a customer needs it anyway.

## Expect retries to stampede

Retries are the second multiplier, and they arrive all at once. An endpoint that was down for six hours has six hours of events waiting for it. When it comes back, the backlog and the live traffic show up together, and sending all of it as fast as you can is a good way to take the endpoint down again.

The rate you can send at is not the rate your customer can receive at. The sender has to be the patient one. At Svix that means a [throttling rate](https://docs.svix.com/throttling) per endpoint, a [retry schedule](https://docs.svix.com/retries) that spreads eight attempts over a bit more than a day, and disabling an endpoint once every attempt to it has failed for five days.

## Filter before you fan out

The cheapest delivery is the one you never make. Letting each endpoint subscribe to specific [event types](https://docs.svix.com/event-types) means it only receives what it handles, and [channels](https://docs.svix.com/channels) narrow that further by who the message is for. Without filtering, customers receive everything and drop most of it, and you've paid for the request, the retries, and the log entry for each one.

## Decide who owns the scheduler

You can get a fanout v1 out pretty fast: a table of endpoints, a queue, and a loop. It's cheap to fan out to the 99% of endpoints that answer quickly, and nontrivial to keep the other 1% from deciding when everyone else's webhooks arrive.

If you build it, model deliveries per endpoint from day one, because retrofitting that onto an event-level status column is a migration nobody enjoys. If you'd rather not build a scheduler, that part is what [Svix](https://www.svix.com/) does. You make one API call per event, and the expansion, isolation, retries, and delivery logs are ours to run.
