Why your automation keeps breaking at 3am
The automation worked in the demo. Then, two weeks later, a booking vanished and nobody knows why. Integration pipelines fail for three predictable reasons.
Automation rarely fails loudly. It fails silently — a webhook never arrives, a retry storms a rate limit, a booking exists in one system and not the other. By the time someone notices, the damage has a paper trail of confused customers. Three design gaps cause almost all of it.
1. No idempotency
A webhook arrives twice — because the provider could not tell whether your first 200 was received — and your system creates the booking twice. Idempotency means running the same event twice has the same effect as running it once. It is one table of processed event IDs and a transaction. Without it, every retry becomes a gamble on whether the work already happened.
2. Blind retries
Retrying immediately, forever, is not resilience — it is a self-inflicted denial of service. Retries need backoff with jitter, a small number of attempts, and a dead-letter queue at the end where failed events land with their full context. An event in a dead-letter queue with a reason is a to-do. An event that vanished after nine silent failures is an investigation. Which of those failures should wake someone is a separate question: see the cost of alert fatigue.
3. Trusting a stable API
The third-party API you integrate with will change its response shape, add a field, throttle you without warning, or have a bad Tuesday. Stable is a myth. The defence is contract checks at the boundary: validate the shape of every external response, and when it violates the contract, fail loudly into your dead-letter queue instead of writing nonsense into your database. The same checks matter when those responses feed an executive dashboard your team can trust.
The three rules: every event handler is idempotent, every retry has backoff and a dead-letter home, and every external response is validated against a contract. That is 90% of production automation resilience.
How to know if you have the problem
Ask one question: if this webhook had arrived twice last night, what would the data look like this morning? If nobody in the room can answer in one sentence, the pipeline is not idempotent — and 3am is when you will find out.
This is the standard we build into every autonomous workflow engine we ship: the pipeline assumes chaos from its dependencies and stays correct anyway. That is the difference between automation that demos and automation you can leave alone.