Dead letter facility for event-trigger webhooks
See original GitHub issueWe’d like a mechanism by which we can find out that webhooks (for event-triggers) are failing to run (after the max_retries
and retry_interval
based process is exhausted).
This “dead-letter queue” mechanism could perhaps be nominated on a global/installation basis.
Implemented how?
- Brutalism: perhaps it is just a “well documented, semi offical SQL query” we can schedule to run regularly, which “selects” all failed event-triggers? This query would be against the extended Hasura metadata part of the database, I assume. Easy, but exposing implementation details is never a good idea.
- Better: perhaps this dead-letter-queue should itself be a webhook to which failed events can be POSTed. Then it would be up to me, a developer, to ensure that this dead-letter webhook actually works via an alternative infrastructure to that which is failing elsewhere.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:27
- Comments:15 (8 by maintainers)
Top Results From Across the Web
Azure Event Grid Dead Letter Samples for .NET
Create an event grid event subscription with a webhook endpoint, dead letter destination and retry policies options. Create a function which ...
Read more >Newest 'eventtrigger' Questions - Page 3 - Stack Overflow
I was just testing an event-trigger on my users table, and while the trigger works (it ... Those Lambda functions are being moved...
Read more >Event retry policy and using dead-letter queues
When an event isn't successfully delivered to a target because of retriable errors, EventBridge retries sending the event. You set the length of...
Read more >FortiNAC Quarantine action - Fortinet Documentation Library
Set the Dead End VLAN. ... Click Create and select Incoming Webhook. ... logdesc="Internal Message" path="system" name="automation-stitch" action="webhook" ...
Read more >General Programming | henrydangprg
Since the data is sent immediately after the event trigger, webhooks are one of ... We then set the pixel in the center...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
So, just to be clear: for webhooks to be robust, this feature is essential.
event-triggers
are an important part of our architecture, and it is “a bad thing” that they can potentially be failing silently (perhaps because we simply misconfigured the URL).So, I wouldn’t be labelling this issue as “an idea”. I’d say it more strongly and claim that it is a bug that this mechanism isn’t there already. Please forgive my pushy-ness.
It is a well know pattern/need. For example, AWS’s SQS supports the idea of a dead-letter queue.
I agree with @mike-thompson-day8’s “Better” solution i.e to have a webhook that Hasura calls while marking an event as complete (failed or succeeded). This way users can capture the dead events, do their business logic and update their database if needed.