One Saturday at noon in early February, a sudden storm in Izmir meant no couriers could be found for a few hundred orders, which were canceled one after another — and a category I had never seen before exploded on the customer support board: "I canceled, but my money wasn't refunded, and on top of that the food showed up at my door." Three separate systems contradicting each other in a single sentence: the order service had accepted the cancellation, the payment service had failed to issue the refund, and the restaurant integration had never received the cancellation message. That day, in 214 orders, at least two of these three contradicted each other. In the monolith days, this was a single database transaction: you write ROLLBACK and you're done. In the microservices world, a cancellation is a distributed drama — and on our stage that day, there was no prompter.
A Cancellation Isn't One Job, It's a Negotiation Between Five
For us, canceling a food order involves five services: the core service that updates the order status, the payment service that refunds the payment, the integration service that tells the restaurant "stop preparing," the logistics service that releases the courier assignment, and the campaign service that refunds the coupon/points. These five don't share a transaction and can't; the payment provider is an external institution, and the restaurant integration is a third-party POS system. Distributed locking solutions like two-phase commit are a fantasy amid this heterogeneity. That leaves only one realistic pattern: the saga — split the work into local steps, define a compensation for each step, and if a step fails permanently, roll back the earlier ones with compensating actions.

A confession: our system "had" a saga. That is, someone had set up choreography over Kafka years ago — the order service publishes OrderCancelled, and everyone listening does their own part. Elegant on paper, ownerless in practice. Here's what happened that Saturday: the payment provider's refund API started returning errors 40 percent of the time, for a reason unrelated to the storm traffic. The payment service couldn't process the refund events and, after three attempts, dumped the messages into the DLQ. But the rest of the chain was unaware of this: the order had long since shown as "canceled," while the restaurant integration, due to a separate error (a timeout at the POS provider), had never managed to process the message at all. In the choreography, everyone knew their own dance; nobody was watching the dance as a whole. The answer to "What state is this cancellation in right now?" wasn't written anywhere in the system — it had to be derived by human intelligence at the intersection of five services' logs.
From Choreography to Orchestration: Putting a Conductor on Stage
In the first discussion, there was a strong counterargument: "Choreography is loosely coupled; an orchestrator is a single point of failure." In theory, I agree; in practice, for flows that require compensation and involve irreversible side effects like refunding people's money, visibility comes before everything else. We moved the cancellation flow to an explicit orchestrator: a saga manager living inside the order service that stores each cancellation in PostgreSQL as a state machine. We evaluated an off-the-shelf saga framework, then gave up on it; what we needed was a 600-line, rigorously tested core that managed the step-state-compensation trio, and the team wrote it in two weeks. Every cancellation record now carries these fields: the list of steps, the status of each step (pending, done, failed, compensated), attempt counts, the last error and the next wake-up time.
The real hard work wasn't the orchestrator but the compensations themselves. The painful truth we learned while writing compensating actions: every compensation has its own failure scenario too. What happens if the refund call fails? You retry. But what if the refund call died with a timeout but actually went through on the provider's side? When you retry, you refund the customer twice — we personally managed this on 12 orders in the first week. The solution, once again, is idempotency: every refund request carries an idempotency key derived from the order ID, and for the one integration where the provider doesn't support such a key, an "is there already a refund with this key?" query is sent before the refund. On the restaurant side, compensation is a completely different animal: if the kitchen has already put the pide (Turkish flatbread) in the oven, no API call can take it back out. There, compensation is commercial, not technical: depending on the stage of preparation at which the cancellation arrived, compensation for the restaurant is accrued automatically. Saga design taught us this: compensation isn't always "undo"; sometimes it's "share the loss fairly."

Stuck Sagas and the Politics of Timeouts
Moving to orchestration didn't make the problems go away; it made them visible — which was the whole point. Our new Grafana dashboard has an "active saga age distribution" chart, and in the first weeks a few dozen "stuck" sagas always piled up at the tail end: the payment provider not responding, the POS integration under maintenance, the courier assignment in a race condition. We defined three policies for every stuck saga. In the short term, automatic retries with exponential backoff — at intervals starting at 30 seconds and stretching to 15 minutes, up to 8 attempts. In the medium term, escalation: sagas older than 30 minutes drop into the operations team's work queue and turn orange on the dashboard. And in the long term, the most critical decision: what does the customer see when a given step fails? Our rule is clear: the customer-facing outcome (cancellation confirmation and the refund commitment) is finalized in the saga's first step; the internal world's negotiations are never reflected to the customer. The refund is committed; even if the provider comes back three hours later, it's tracked against the committed time.

The numbers tell the story of the transformation: in the month before the migration, the number of cases the support team fixed by hand due to cancellation-related inconsistencies was 340; in the second month after the migration, it was 9. The average refund completion time dropped from 4.2 hours to 11 minutes; p99 is still around 3 hours, but now we know, case by case, who is waiting in that tail and why. And perhaps most valuable of all: when an external shock like a storm hits, the answer to "how many orders are in limbo?" is now a SQL query, not a six-person log excavation.
A habit changed on the testing side too. Unit testing sagas is easy; the real challenge is chaos scenarios. We wrote a test runner that kills and restarts the process at every stage of every step — before the step, during the step, after the step, during compensation. The cancellation flow's 5 steps times 4 interruption points makes 20 scenarios; each runs every night in CI and verifies that the state machine never falls into an "undefined" state in any combination. In its first month, this runner caught two real bugs; both were in the "what if we die during compensation" branch — exactly the kind that would surface in production at the rarest but most expensive moment.
The Moral of the Drama
If you learn the saga pattern from conference talks, you see an elegant diagram: forward arrows, backward arrows, symmetric compensations. If you learn it in production, you see this: compensations are asymmetric, the outside world isn't idempotent, the oven can't be reversed, and the most important design decision isn't technical — it's deciding who will bear which uncertainty. We took the uncertainty off the customer and moved it into our own operations queue; that's not an algorithm, it's a commitment. If you're dealing with distributed transaction headaches — especially if the sentence "our cancellation/refund flow gets weird every now and then" sounds familiar — reach out here; I'd be happy to share our state machine schema and our compensation policy table.
The support team explained the situation to one of the customers who received both a refund and their food that Saturday. The customer's reply is still retold on the team: "If your system gets generous when it breaks, I think it should break once a week." We built the saga properly; we now tie generosity to the campaign budget, not to storms.