Blog

Why Webhooks Are Unreliable in Reality

Yuriy Melnikov

When working with webhooks at the level of "sent POST — received 200 OK," it seems simple and reliable. But this feeling is deceptive.

In practice, webhooks are one of the most unstable integration mechanisms. The problem isn't with a specific service. The issue lies in the very nature of this model.

A webhook is a "best effort" delivery.

No one guarantees that the request will arrive. No one guarantees it will be processed. And often, no one guarantees you'll even know there's a problem!

What really breaks?

If you've ever worked with webhooks, you've encountered challenges such as:

— Request didn't arrive due to network issues.
— Receiving server was temporarily unavailable.
— Timeout on the sender's side.
— Incorrect DNS configuration.
— TLS problems.
— Provider restrictions or network-level blocks.

And the worst part is, you can't always know about these issues. There's no log, retry, or error notification. It just "didn't work."

Even if everything works.

Even if requests arrive, it doesn't mean everything is fine. At this stage, other challenges arise:

— How to debug an incoming request locally?
— How to view the request body if it's already passed?
— How to repeat a request?
— How to understand why one out of 10 receiving servers fails?
— How to handle fan-out delivery?

At some point, infrastructure starts to grow around the "simple POST request." You either have to build it or allow some uncertainty in real operations.

An unobvious problem.

There's another class of problems that are rarely discussed.

The network is not neutral.

In different countries, with different providers, under different conditions, the same request may arrive, lag, partially break, or not work at all.

I personally encountered a situation where the server-side API works, the client sends everything without errors, but requests just don't arrive. From a code perspective, everything is correct. From an infrastructure perspective, everything is standard. But the system doesn't work. And this is the most unpleasant type of bug.

Conclusions.

Webhooks cannot be perceived as "reliable transport." They are an unstable delivery channel around which a system must be built:

— With logging.
— With retries.
— With replay capability.
— With delivery control.

Otherwise, it's not integration, it's a lottery.

Conclusion.

I currently work a lot with webhooks and encounter situations I never suspected before. And if I did suspect, I considered them rare. But, as we know, reality makes its own adjustments.

Yuriy Melnikov
Yuriy Melnikov

In the next publication, I will discuss the solutions I tried and why they don't solve the problem comprehensively.