This question originally came up in our Slack community and the thread has been consolidated here for long-term reference.
I have questions about webhooks:
- What is the delay between an event happening and the event handler in the entrypoint getting called?
- What is the delay between the event handler getting called and the webhook being sent?
- How reliable are the webhooks?
Webhook timing is variable but generally quite fast.
However, if your webhook endpoint is not responding fast enough, webhooks can get backed up since they are processed serially.
Best practice: When receiving webhooks, queue them and return 200 OK as fast as possible, then process them out of band. This gives you the fastest and lowest latency webhook rate.
Blocking in webhook handlers causes issues - many developers experience problems because they do processing inside the webhook handler rather than queuing for async processing.