6 ms·
This looks cool, and another approach is pg_amqp_bridge to send events like this into rabbit. A nice feature is that the triggers don't block: https://github.
by politips 8y ago
This looks cool, and another approach is pg_amqp_bridge to send events like this into rabbit. A nice feature is that the triggers don't block:
https://github.com/subzerocloud/pg-amqp-bridge https://github.com/subzerocloud/pg-amqp-bridge
You can then push to websockets from rabbit with STOMP
https://www.rabbitmq.com/web-stomp.html https://www.rabbitmq.com/web-stomp.html
- oneweekwonder 8y ago> pg_amqp_bridge Thanks for posting this. Can already see a couple of weekends burned trying to drive celery from pg. Do you know if it is used in production somewhere; how battle-tested is it?
- politips 8y agoI've used it in a couple production deployments and it's solid. It's only ~300 lines of Rust code, so I'm confident it is simple and even if I had a problem, would be easy to understand.