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