DEV Community

Ankit Jain
Ankit Jain

Posted 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

Top comments (0)