DEV Community

Ankit Jain
Ankit Jain

Posted on • Edited on

Building Webhook As A Feature

Are you a technical architect focused on building a new integration method for your product? Webhook is on the mind? If yes, let's dive on.

Minimum requirements

HTTP status codes play a crucial role in webhook communication. A 200 status code for success, anything else is a failure delivery.

Idempotency: As an architect, add unique ID in the payload to indicate source system's identifier. The consumers will use this to check for duplicates

** Timeouts**: Add a strict 30 seconds timeout for your consumers.

Out-of-Order Events Always have a timestamp to your consumers can know out of order events and optimize to ignore stale events.

Documentation is always needed and the best experience for developers. Never miss on this.

References

Check out below articles for further reading.

  1. A comprehensive guide on facts - what to consider as technical design for webhooks. https://beeceptor.com/docs/webhook-feature-design/
  2. A philosophical and detailed essay on webhook design consideration: https://hookdeck.com/webhooks/guides/webhook-infrastructure-requirements-and-architecture#system-requirements-must-haves

Hostinger image

Get n8n VPS hosting 3x cheaper than a cloud solution

Get fast, easy, secure n8n VPS hosting from $4.99/mo at Hostinger. Automate any workflow using a pre-installed n8n application and no-code customization.

Start now

Top comments (0)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay