hasura / hasura/graphql-engine
Debounce webhooks with Retry-After header (docs?)
- Dominant language
- TypeScript
- Stars
- 32.1k
- Forks
- 3k
- PR merge metrics
- PR metrics pending
Description
### Is your proposal related to a problem?
Hi folks, the docs indicate that "The Retry-After header can be used for retrying/rate-limiting/debouncing your webhook triggers.". I'm curious how debouncing a webhook could work?
My use-case is I trigger a computation when a column changes, but that column can change very often and I'd like to limit how often the webhook would be called. I've asked for this [on Discord](https://discord.com/channels/407792526867693568/428469959530643466/1017639961459167272) and was asked to post it here.
### Describe the solution you'd like
If i set the Retry-After header to let say 5m, will all other triggers within that 5m time window be ignored? This needs further description in the docs I believe. I'm open to adding that in if I can understand it :). Also do you have a recommended way to manage the same webhook being called multiple times and how to determine whether to process or debounce the event?
### Describe alternatives you've considered
N.A.
### If the feature is approved, would you be willing to submit a PR?
I'm ok to open a documentation PR.
Contributor guide
Assessment
This issue has not been assessed yet.