moscajs / mosca

MQTT broker as a module
mosca.io
3.2k stars 513 forks source link

AMQP to MQTT bridge via RabbitMQ? #691

Open Eric24 opened 6 years ago

Eric24 commented 6 years ago

It is possible to create an AMQP to MQTT bridge by using RabbitMQ as the underlying message broker? Ideally, Mosca would forward via MQTT messages sent to a RabbitMQ Exchange or Queue. Currently, Mosca configuration only specifies a single RabbitMQ Exchange, so I'm not seeing a way to do this "natively". Of course, using node.js, I could subscribe to an AMQP Queue (via a non-Mosca AMQP lib) and then re-publish the messages to an MQTT Topic, but I was looking for a cleaner, higher-performing way.

mcollina commented 6 years ago

Mosca is currently not supporting this. However, you can see if https://github.com/mcollina/aedes can fit your bill. You might have to implement a custom https://github.com/mcollina/mqemitter.