API Design · Middle · Question 41 of 75
Why should a webhook endpoint respond quickly and process the event asynchronously?
- ✓Correct answer: Providers time out after a few seconds and retry; heavy work should go to a queue after the event is stored
- 2Slow responses are cached
- 3Webhooks can't contain data
Explanation
Return 2xx once the event is safely recorded; then process it in the background.