The service that finally broke me was called PaymentOrchestrator. It made eleven synchronous HTTP calls to complete a single settlement, and on a bad afternoon in the third quarter of 2023, one of those eleven downstream services started responding in 1,200 milliseconds instead of its usual 40. The whole chain backed up. Threads piled onto threads waiting for a response, connection pools drained, and within about ninety seconds we were returning 503s on a payments API that is supposed to be the calm, boring center of the business. Nothing was actually down. One service was just slow, and we had wired ourselves so tightly that slow was indistinguishable from dead.
That incident is why we spent the next eleven months moving a good chunk of our platform from request-response REST to an event-driven model. I want to be honest about what that migration actually bought us, what it cost, and the parts I would do differently. This is not a conversion story. Events are not a religion, and plenty of our system is still happily synchronous.
Where REST actually hurt us
The problem was never REST itself. REST is a fine way to ask a question and wait for an answer, and for reads that is exactly what you want. Our pain came from using synchronous calls to model things that were not questions at all. Settling a payment is not a question. It is a sequence of consequences: ledger entries get written, a fraud score gets recorded, a webhook fires to the merchant, a reconciliation record gets queued, an email eventually goes out. We had modeled every one of those consequences as a blocking call inside the request, and so the slowest, least important step in the chain got to decide whether the whole thing succeeded.
The other thing that wore us down was coupling at deploy time. Because PaymentOrchestrator knew the URL, the request shape, and the retry policy of every downstream service, you could not touch any of those services without a coordinated release. We once delayed a fraud-model upgrade by three weeks because the team could not find a safe window to change a response field that four callers depended on. That is not a technology problem, it is an organizational tax, and we were paying it every sprint.
What actually changed with events
The core shift was small to describe and large to live with. Instead of PaymentOrchestrator calling the fraud service and the notification service and the reconciliation service, it now writes one fact to a log: PaymentSettled, with the relevant IDs and amounts. It does not know or care who is listening. The fraud service, the notification service, and reconciliation each subscribe and react on their own schedule. If notifications are slow, settlement does not care. If reconciliation is down for an hour, the events wait in the log and get processed when it comes back.
The word I keep coming back to is decoupling, but the concrete version of that is more useful. Before, a slow consumer degraded the producer. After, a slow consumer only degraded itself, and the backlog was visible as consumer lag instead of hidden inside a thread pool. That single property is worth more than any throughput number I could quote you.
The best measure of the migration was not latency. It was that we stopped having incidents where one team's deploy took down another team's endpoint. Those went to roughly zero, and they used to be the bulk of our Sev-2 pages.
Choosing what an event is
The hardest design decision was what an event should say. Early on we made the classic mistake of emitting thin events: PaymentSettled with just an ID, forcing every consumer to call back into the payments service to fetch the details. Congratulations, we had reinvented the synchronous coupling we were trying to escape, just with an extra hop. Within a month the payments read API was under more load than before.
So we moved to fatter events that carry the state a consumer plausibly needs: amount, currency, merchant ID, the settlement timestamp, the payment method. Not everything, but enough that most consumers never have to call back. The rule we settled on was that an event should describe a fact that already happened, in the past tense, with enough context that a reasonable consumer can act without a round trip. Here is roughly what one looks like in our world.
public record PaymentSettled(
Guid PaymentId,
Guid MerchantId,
long AmountMinorUnits, // always store money as integers
string Currency, // ISO 4217, e.g. "EUR"
string PaymentMethod,
DateTimeOffset SettledAt,
int SchemaVersion = 2);
// Producer side: write the fact, then publish. Order matters.
await _ledger.RecordSettlementAsync(payment);
await _bus.PublishAsync(new PaymentSettled(
payment.Id, payment.MerchantId,
payment.AmountMinorUnits, payment.Currency,
payment.Method, DateTimeOffset.UtcNow));
Note the SchemaVersion. We added it in week two, before we needed it, and I have never once regretted a version field on an event. Removing one, though, is a nightmare, because you cannot know who is still reading the old shape.
The genuinely hard part: exactly-once is a lie
Here is the thing nobody tells you clearly enough. Once you go asynchronous, you are living in an at-least-once world, and every consumer has to be idempotent or you will double-charge someone. We learned this the expensive way when a broker redelivery during a deploy caused a notification service to send the same "your payment settled" email twice to a few hundred merchants. Embarrassing, not dangerous, but it was a preview of what the same bug would have done in the ledger.
The discipline that saved us was boring and non-negotiable: every consumer records the event IDs it has already processed and drops duplicates before doing any work. We keep a small dedup table with the event ID as the primary key and a short retention window.
INSERT INTO processed_events (event_id, consumer, processed_at)
VALUES (@eventId, @consumer, now())
ON CONFLICT (event_id, consumer) DO NOTHING;
-- If zero rows affected, we've seen it. Skip the side effect.
It is not glamorous, and it adds a write to every consumer, but it turns "at least once" into "effectively once" for the parts that matter. If a team told me they were building event consumers without idempotency, I would stop the review right there. It is the single most common way these systems quietly corrupt data.
Ordering is a promise you should barely make
We spent an embarrassing amount of energy early on trying to guarantee global ordering, as if events had to arrive in the exact sequence they were produced. They do not, mostly. What you usually need is ordering per entity: all events for a given payment, in order, relative to each other. Global ordering across every payment is a constraint that costs you throughput and buys you almost nothing.
We partition by merchant ID, which keeps a merchant's events in sequence while letting different merchants process in parallel. The trade-off is real: a single enormous merchant can create a hot partition, and we have one who reliably does around every payday. We deal with it by giving that handful of whales their own dedicated partitions, which is ugly and manual and works fine. Purists dislike it. I have made peace with a little ugliness that ships.
You are blind until you can see the lag
The scariest week of the migration was the one where a consumer was silently falling behind and we did not notice for six hours. In the REST world, a broken dependency screamed at you with 500s. In the event world, a broken consumer just gets quietly further behind while everything upstream looks perfectly healthy. Green dashboards, angry merchants. That asymmetry is the thing teams underestimate most.
So before we moved anything critical, we made a rule that a consumer was not allowed into production without three things wired up first:
- Consumer lag as a first-class metric, alerting when processing falls more than a defined threshold behind the tail of the log.
- A dead-letter queue for messages that fail repeatedly, plus an actual human-owned runbook for draining it, not just a queue nobody reads.
- Correlation IDs stamped on the originating request and carried through every event, so we can reconstruct one payment's journey across five services from the logs.
The correlation ID work felt like overhead at the time. It is now the first thing I reach for during any incident, and I would put it in on day one of any event system I build from scratch.
What we deliberately did not migrate
Plenty of our system is still plain REST, on purpose. "What is this merchant's current balance" is a question with a right-now answer, and pretending it is an event stream would be architecture for its own sake. The same goes for our admin tooling and most internal reads. Events are the wrong tool when the caller genuinely needs an answer before it can continue.
My rough dividing line is this: if the caller needs the result to proceed, use a synchronous call. If the caller is announcing that something happened and other parts of the system should react, use an event. Login checks, balance lookups, quote requests stayed synchronous. Settlements, status changes, and anything that fans out to multiple reactions became events. Getting that line right mattered more than any broker tuning we did.
The bill, honestly
None of this was free, and I get irritated when people sell event-driven architecture as pure upside. Debugging got harder. A stack trace used to tell you the whole story, and now the story is spread across a log, three consumers, and a dead-letter queue, and you reassemble it from correlation IDs like a detective. We added real infrastructure to run and pay for. Onboarding a new engineer takes longer because "where does this actually happen" no longer has a single answer.
We also went through a genuinely awkward middle period, maybe four months, where half the flow was events and half was still REST, and reasoning about the hybrid was harder than either pure version. If I ran the migration again, I would migrate one complete vertical slice end to end before starting the next, rather than converting layer by layer across the whole platform at once. Doing it breadth-first stretched that confusing middle state across the entire system for far too long.

Events didn't make it simpler
If there is one thing I would leave you with, it is that events did not make our system simpler. They made it more honest. The old synchronous chain was pretending that eleven independent things happened as one atomic step, and that pretense held right up until the afternoon it did not, at which point it failed all at once and took the whole payments API with it. The event model forces you to admit that these are separate things that fail separately, and once you have admitted that, you build for it. The complexity was always there. We just used to hide it inside a thread pool and call it simple.