You need to be a little careful about configuration, but believe it or not, as long as Redis is configured with an append only file [1] it will provide you with a durability guarantee just like Postgres would. If it crashes, any jobs that were in there are recovered the next time it starts up.
From the docs:
> From now on, every time Redis receives a command that changes the dataset (e.g. SET) it will append it to the AOF. When you restart Redis it will re-play the AOF to rebuild the state.
---
- Font choices and sizes
- TOC
- Figures
- Code samples
... all look perfect. It even includes a carefully spaced initial.
I'd love to be able to replicate this on my Jekyll blog. But looks like most of this is hand-crafted HTML/CSS: https://github.com/brandur/sorg
If you're using PostgreSQL 9.5+ you can also use the new SKIP LOCKED capability, which is perfect for this sort of usage: https://blog.2ndquadrant.com/what-is-select-skip-locked-for-...
https://github.com/gmr/pgsql-listen-exchange
https://github.com/subzerocloud/pg-amqp-bridge
In theory, these let you use postgres NOTIFY to add messages to queues (which can be done from inside triggers).