fedify icon indicating copy to clipboard operation
fedify copied to clipboard

RabbitMQ driver

Open santisbon opened this issue 1 year ago • 3 comments

A RabbitMQ implementation of MessageQueue just like the one for Redis would be great as a message broker.

Thanks!

santisbon avatar Jun 28 '24 02:06 santisbon

This library looks fine: https://github.com/amqp-node/amqplib.

dahlia avatar Jun 28 '24 05:06 dahlia

Mbin is indeed also using RabbitMQ. With some technical difficulties sometimes...

here for info:

image

That being said, if you want to implement RabbitMQ. Here are some generic lessons learned from my side of the story: Be sure to set an expire/ TTL as well as a dead-letter. Be sure to use queue storage version 2 (instead of the old v1). Do not try to retry too often, do not create big queues (the smaller the queues the better, or expect performance issues).

melroy89 avatar Jun 29 '24 18:06 melroy89

You should also be able to fork https://github.com/dahlia/fedify-redis and implement the necessary parts to work with RabbitMQ via the aforementioned ampq driver above.

ThisIsMissEm avatar Jul 02 '24 23:07 ThisIsMissEm

Created @fedify/amqp.

dahlia avatar Oct 14 '24 10:10 dahlia

The benchmark is also updated.

dahlia avatar Oct 14 '24 10:10 dahlia