Engineering

The morning a viral post met our send cap

Your comment-to-DM automation slows down at the worst possible moment: when a post takes off. Ours did, on Sunday, November 22, 2026, and nothing was down. Meta never throttled us. The cause was a design decision we made ourselves, about who waits when an account's sends run out. This post is that decision, the architecture it lived in, and the design that replaced it the same afternoon.

BravoDM Team · November 22, 2026

Cover for the BravoDM engineering post: the morning a viral post met our send cap, a comment-to-DM latency trace.

Every comment-to-DM system has a send budget, whether it admits it or not. Comments arrive in bursts; messages leave through an API that expects restraint. Sooner or later the burst wins, the budget runs dry, and somebody's DM waits. The only real design question is who: the stranger who just commented, or the person already mid-conversation, tapping a button and expecting the link they were promised?

On the morning of November 22, 2026, a creator on BravoDM had a post take off. In about ninety minutes her audience left 200 to 250 visible comments, and her comment-to-DM automations, the ones that answer a keyword comment with a link by DM, slowed to a crawl. Our founder, testing her automation from his own account, tapped “Get my link” and waited more than twenty minutes for a link that usually arrives in under one.

We traced it the same day, and the short version is simple: our per-account send cap, 200 sends per rolling hour, was rationing her audience's messages, and nobody could see it happening until we reconstructed the morning from production logs. The longer version is more useful, because the interesting part is not the incident. It is the architecture that made something like it a matter of time, and the one decision inside that architecture we have since reversed.

How a comment becomes a DM

Start with the machine, because the incident makes no sense without it. A comment-to-DM automation here is a pipeline with a queue in the middle and a ledger at the end, and the diagram below is the whole of it.

A commenter writes the rule's keyword under a post. Instagram delivers a webhook; the route verifies the signature, writes one event row, and answers at once, and a unique event key absorbs Meta's redeliveries, so a duplicate costs nothing and sends nothing twice. The event joins a queue, oldest first. A worker claims events in passes, a batch at a time, and works them one at a time; passes run on a frequent timer and after every webhook arrival, so nothing waits on a schedule.

Before anything sends, the worker stops at the send ledger: how many sends has this account made in the last rolling hour? If the count is at the cap, there is no room: the event waits and tries again a short while later. The ledger is a rate limiter, not a record; it keeps only what the current hour needs. Only after that check does the sending happen, two Meta calls in sequence: the private reply, which is the DM carrying the link, and the public reply under the comment.

1Keyword comment

A commenter writes the rule's keyword under a creator's post on Instagram.

2Webhook intake

Instagram delivers a webhook. The route verifies the signature, records one event per delivery, and answers at once. A unique event key absorbs Meta's redeliveries, so a duplicate costs nothing and sends nothing twice.

3The event queue

The event waits its turn, oldest first.

4The worker pass

A pass claims a batch of events and works them one at a time. Passes run on a frequent timer and after every webhook arrival, so nothing waits on a schedule.

5The send budget check

Before any send, the worker checks this account's sends over the last rolling hour against its budget. At the limit there is no room: the event waits and tries again a short while later.

6Meta's API

Two calls in sequence: the private reply, which is the DM carrying the link, and then the public reply under the comment.

7DM delivered

The link is in the commenter's inbox.

Follow gate release path

When a rule carries the follow gate, the first DM is an invitation with a button. The follow check runs live at the moment the person taps, and the release send that follows a confirmed follow draws on the same shared pool as everything else.

How a comment became a DM on the morning of November 22, 2026: one shared pool, and every send kind drawing on it.

One wrinkle in that diagram matters more than the rest. When a rule carries the follow gate, the first DM is not the link. It is an invitation with a button. The follow check runs live at the moment the person taps, and the release send that follows a confirmed follow draws on the same pool as everything else. That detail matters for everything that follows.

Two properties complete the picture. The cap is per account, so one creator's burst cannot slow another creator's automations; a burst is contained to the account that earned it. And the cap is a budget, not a pacer. The system sends as fast as it can until the hour's budget is spent, then drains as the oldest sends age out of the rolling hour.

The decision: one pool for every send

We set the cap at 200 sends per account per rolling hour, and we set it as one pool for every kind of send. The reasoning was tidy: there is one Instagram account, so there is one budget, and every send draws on it, the public reply, the first DM, a get-link release, a follow-up nudge, all competing in one first-come-first-served queue. The cap itself we would build again. It keeps an account's messaging inside the restraint Meta expects, and the count behind it is exact, not an estimate. The diagram below is that design on the left, and the design that replaced it on the right. The right-hand side gets its turn further down; the left is what ran that morning.

Before: one shared pool

200

sends per account per rolling hour, for everything

  • Public replies draw on it
  • First DMs draw on it
  • Get-link releases draw on it
  • Follow-up sends draw on it

When the pool empties, everything waits, including a person already mid-conversation.

After: first touch capped, conversations exempt

400

sends per account per rolling hour, for first-touch sends only

  • The public reply counts toward it
  • The first DM counts toward it

Exempt: never paced

  • Get-link releases
  • In-conversation replies
  • Follow-up sends

A person already in conversation no longer waits behind a burst of fresh comments.

The design before the incident morning, and the design shipped the same afternoon.

The flaw sits in the left column, and it is obvious once someone points at it. First-come-first-served sounds fair, and for first touches it is. But a get-link release is not a first touch. It is the second half of a conversation a person is standing inside, phone in hand, waiting for what they were promised. Under one pool, that person competes with every fresh comment the burst brings in, and in a burst they lose, not because anything failed, but because the queue cannot tell the difference. We had built a system where the most committed person in the audience waited the longest. That is backwards, and it took a viral post to make us see it.

Worse, the rationing was invisible. When the pool empties, an event simply waits and retries a short while later, and a waiting event writes no log line. The creator's dashboard showed her automation as running, because it was. Nothing anywhere said: your audience is waiting because you have sent 200 messages this hour. She experienced a silent queue; we experienced a system working as designed. Both were true. The creator's experience was not acceptable.

What happened that morning

The burst, in numbers, all times Eastern, from production logs of the live deployment. Intake never blinked: 1,063 webhook deliveries arrived for her account between 10:10 and 11:46 AM with zero intake failures, and from 8:30 to 11:00 AM the system finished exactly as many events as it took in, in every ten minute bucket. Of the 630 events in the core window, 482 comments and 148 messages, 561 finished inside it, and 284 of those needed a send: 170 invitation DMs, 89 get-link releases, and 25 re-prompts. The rest closed without sending: 210 were the creator's own comments and replies, which the engine correctly ignores, 38 landed on posts with no automation, 21 did not match a keyword, and 1 hit the per-person delivery limit.

The baseline deserves its sentence too, because the first half of the morning felt slow before any cap bound. A healthy round trip here is seconds to about a minute, not a blink: an event waits for a pass to claim it, waits behind the events ahead of it in that pass, and spends its send time in a few sequential Meta API calls. Pass-based claiming and a serial loop buy simplicity and exact accounting; neither makes a send instant. That explains “not quick” before 11:08 AM. The cap explains everything after it.

Completed sends in the trailing hour climbed from about 47 at 10:20 AM to 163 at 11:00 AM and reached 200 at 11:08:41 AM, about 53 minutes into the burst, as invitations, releases, re-prompts, and follow-up nudges all drew on the one pool. From that minute the count plateaued at 197 to 199, which is the fingerprint of a ceiling, not a slowdown, and every further send waited for room to open as the oldest sends aged out of the hour. The drain ran at about 3.3 sends per minute while new comments arrived at 5 to 9 per minute, so the backlog did the arithmetic: zero unfinished events at 11:00 AM, then 22, 44, 60, and 73 at 11:40 AM, still growing at the last log line we pulled. An event that became ready to send at 11:45 AM faced an estimated 10 to 25 minutes of send wait alone.

Our founder's live test sat inside that window. He commented, received the invitation DM, tapped “Get my link”, and waited over twenty minutes. In that half hour, 11:15 to 11:45 AM, 58 messaging events arrived on her account and 33 finished, 21 of them link deliveries. His tap had not failed, and the follow check was never the bottleneck: his release most likely spent its wait in the queue, behind the burst, like every other send that morning.

The logs ruled out the standard causes quickly. Meta throttling: none, because zero send failures carried a rate-limit signal from Meta, and the morning's only send failure, at 11:21:36 AM, was a permanent per-person error, a commenter whose account cannot be found because it was deleted or deactivated; that is one fan, not a platform limit. Intake failure: zero enqueue failures, zero queue pass failures, exactly one error line in the entire morning's DM logs, and receipt tracked the burst smoothly, with no gaps that would suggest Meta delivering late in clumps. A dead connection: sends kept succeeding to the end of the pull, which a dead token would have stopped cold, and no reconnect-required signal appears. A recent code change: production had run the same commit since November 19, and none of the changes that touched the DM pipeline since November 14 altered the worker, the cap, or the retry behavior. Those settings predate the week. This was the standing design meeting its first real burst, not a regression.

One admission about the evidence itself. We do not store the comment's creation time on Instagram, so Meta's delivery time and our queue time cannot be separated after the fact. Steps inside one event carry no timestamps, only the finish does. The one record that held each send's moment lives only as long as the current hour needs it, and was already gone. The tail wait above is an estimate built from measured rates, because the rows that would prove it were never designed to. A system that cannot reconstruct its own worst morning has an observability bug, whatever its uptime says.

What we changed the same afternoon

Shipped the same day, November 22, 2026, and it is the right-hand column of the diagram above. Two halves, stated precisely, because this is where engineering blogs go to overpromise.

  • The first-touch cap went from 200 to 400 sends per account per rolling hour. The cap now covers exactly two send kinds: the public reply under the comment and the first DM. The public reply did not count toward the cap before this change; it counts now, alongside the first DM. The 200 figure was our own safety pace, not a number Meta publishes, which is why raising it was a judgment call about our own restraint rather than a step outside a published limit.
  • In-conversation sends are exempt from the cap entirely. Get-link releases, replies inside a conversation, and follow-up sends are not paced at all. A person already talking to the automation no longer waits behind a burst of new comments. The brakes that remain on that path are the per-person repeat limit, the follow gate's one release per tap, and Meta's own send-time enforcement.
  • What the change did, measured. The backlog stood at about 99 unfinished events just before the deploy and about 27 five minutes after, draining at 5.8 sends per minute, the fastest of the day. The risk watch after the deploy was clean: zero Meta rate-limit errors anywhere, and 28 in-conversation sends on the new uncapped path with zero failures. Then the queue became inflow-shaped again, about 66 at 1:43 PM, because new comments kept arriving at roughly the rate the serial worker finishes them. The cap was no longer the constraint; the worker was. One measurement is still missing: no get-link tap landed during the watch window, so the link-tap delay after the change is an expectation, under a minute, not a measured number yet.

What we have not built yet

  • Pacing inside the cap. Spread an hour's budget across the hour, with randomized gaps, instead of spending it in the first burst and rationing the tail. Add a failure breaker that pauses an automation whose sends keep failing, and optionally a daily cap a creator can set.
  • Making the cap visible. When an account is pacing, the creator should see it, in the same plain language this post uses: how many sends are left this hour, how deep the queue is, and roughly how long the tail will wait. The exact surface is undecided. The principle is not: a protective limit the user cannot see reads as a broken product.
  • Keeping the timeline, not just the outcome. Per-step timestamps for an event's life, so the next trace reads its numbers off rows instead of estimating them from rates.

What the raise does not do: it does not fix the serial worker, which is now the binding constraint during a flood. A burst of comments will still queue behind one-at-a-time processing, and that is the next lever to decide on, separately. The fix is to spend the budget evenly and visibly, and to exempt the conversations already in progress, not to spend without limit.

The automation this post is about lives on the Instagram DM automation page, in the creator's own words and on Meta's official API.

Where these numbers come from

This post rests on two sources: the November 22, 2026 latency trace of this incident, assembled the same day from production logs of the live deployment and the production code, including the founder's live test that morning; and the record of the change shipped that afternoon, with the post-deploy backlog and drain figures from the log watch. Figures the trace could not verify (per-event latency in seconds, database-level counts) are not stated here. The one estimate in the post, the tail send wait, is labeled as an estimate where it appears. Post-deploy backlog figures are log-derived estimates.

A note on how BravoDM runs

BravoDM is an agent-native company. A team of AI agents does the day-to-day work of building, operating, and writing about the product, with very little human involvement in the daily operations. The decisions are made by humans: what gets built, what ships, and judgment calls like the ones in this post are a person's, not an agent's. This article was drafted by the agent team from the records cited above, and it publishes with the founder's approval, like everything else we ship.