Using PostgreSQL as a Dead Letter Queue for Event-Driven Systems
1–10 of 82 posts
Re: Using PostgreSQL as a Dead Letter Queue for Event-Driven Systems
#2Re: Using PostgreSQL as a Dead Letter Queue for Event-Driven Systems
#3Biggest thing to watch out with this approach is that you will inevitably have some failure or bug that will 10x, 100x, or 1000x the rate of dead messages and that will overload your DLQ database. You need a circuit breaker or rate limit on it.
Re: Using PostgreSQL as a Dead Letter Queue for Event-Driven Systems
#4Biggest thing to watch out with this approach is that you will inevitably have some failure or bug that will 10x, 100x, or 1000x the rate of dead messages and that will overload your DLQ database. You need a circuit breaker or rate limit on it.
Re: Using PostgreSQL as a Dead Letter Queue for Event-Driven Systems
#5Biggest thing to watch out with this approach is that you will inevitably have some failure or bug that will 10x, 100x, or 1000x the rate of dead messages and that will overload your DLQ database. You need a circuit breaker or rate limit on it.
If you can’t deliver to the DLQ, then what? Then you’re missing messages either way. Who cares if it’s down this way or the other?
Re: Using PostgreSQL as a Dead Letter Queue for Event-Driven Systems
#6Biggest thing to watch out with this approach is that you will inevitably have some failure or bug that will 10x, 100x, or 1000x the rate of dead messages and that will overload your DLQ database. You need a circuit breaker or rate limit on it.
If you can’t deliver to the DLQ, then what? Then you’re missing messages either way. Who cares if it’s down this way or the other?
Sure, it's unavailability of course, but it's not data loss.
Re: Using PostgreSQL as a Dead Letter Queue for Event-Driven Systems
#7Learned something new today. I knew what FOR UPDATE did, but somehow I've never RTFM'd hard enough to know about the SKIP LOCKED directive. Thats pretty cool.
Re: Using PostgreSQL as a Dead Letter Queue for Event-Driven Systems
#8Biggest thing to watch out with this approach is that you will inevitably have some failure or bug that will 10x, 100x, or 1000x the rate of dead messages and that will overload your DLQ database. You need a circuit breaker or rate limit on it.
If you can’t deliver to the DLQ, then what? Then you’re missing messages either way. Who cares if it’s down this way or the other?
Re: Using PostgreSQL as a Dead Letter Queue for Event-Driven Systems
#9Re: Using PostgreSQL as a Dead Letter Queue for Event-Driven Systems
#10I have simple flow: tasks are order of thousands an hour. I just use postgresql. High visibility, easy requeue, durable store. With appropriate index, it’s perfectly fine. LLM will write skip locked code right first time. Easy local dev. I always reach for Postgres for event bus in low volume system.