question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Dead letter facility for event-trigger webhooks

See original GitHub issue

We’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:open
  • Created 4 years ago
  • Reactions:27
  • Comments:15 (8 by maintainers)

github_iconTop GitHub Comments

17reactions
mike-thompson-day8commented, Apr 30, 2019

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.

1reaction
wawhalcommented, Oct 7, 2021

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found