Consumer-Pgmq – Dead Letter Queue New Feature
Key topics
I’m here to show the dead letter queue feature I implemented on the node.js module named consumer-pgmq, so if I set up to try 2 times and the message failed 2 times on the third time will send the message to the dead letter queue.
What is it?
Recently I discovered a feature queue on Supabase where I can implement a messaging queue using Postgresql database.
Spoiler if you have a Postgresql running out of Supabase you can use the queue feature too, you need only install the extension named pgmq. Link of instructions: https://github.com/pgmq/pgmq
But I noticed something missing on my opinion I didn’t find a package on Npm to make the polling from the message and passing to a function I defined to execute something, so as result of it I created the npm package named consumer-pgmq where integrate with Supabase and Postgresql
Link of module on Npm: https://www.npmjs.com/package/consumer-pgmq Link of Github repository: https://github.com/tiago123456789/consumer-pgmq
Author announces a new feature in their Node.js module consumer-pgmq, a dead letter queue feature for handling failed messages.
Snapshot generated from the HN discussion
Discussion Activity
No activity data yet
We're still syncing comments from Hacker News.
Generating AI Summary...
Analyzing up to 500 comments to identify key contributors and discussion patterns
Want the full context?
Jump to the original sources
Read the primary article or dive into the live Hacker News thread when you're ready.
Discussion hasn't started yet.