top | item 40725207

(no title)

aspyct | 1 year ago

We have a new project (~ 6 years now) where we implemented a queue with RabbitMQ to temporarily store business events before they are stored in a database for reporting later.

It's awesome!

It absorbs the peaks, smoothes them out, acts as a buffer for when the database is down for upgrades, and I think over all these years we only had one small issue with it.

10/10 would recommend.

discuss

order

slooonz|1 year ago

What the data consistency story around crashes ? Backup/recovery ?

aspyct|1 year ago

Sorry, I'm not sure I understand your question. Can you rephrase?

1oooqooq|1 year ago

looks like you could have had a blue/green DB setup which would give you one less system to maintain and other benefits that a simple queue don't provide.

also, what do you do when the queue is down?

aspyct|1 year ago

I don't think the queue has ever been down in 6 years. It certainly never was a breaking point.

As for the database, yes, we could do blue/green I guess, but it's a big database and it's more cost effective to rely on the queue.

To be honest, I'm not even sure blue/green would be an option given our constraints.