node-bunnymq
node-bunnymq copied to clipboard
Adding RabbitMQ Exchange Support Context for Publishing messages to a named Exchange
This functionality will allow for sending and publishing messages using Topic Exchanges for the purposes of routing decisions that allow for sending messages into a common exchange that RabbitMQ can then automatically route to an entirely RabbitMQ broker.
https://www.rabbitmq.com/tutorials/tutorial-five-python.html
https://github.com/dial-once/node-bunnymq/blob/develop/src/modules/producer.js#L92
similar to Python's pika library:
self._channel.basic_publish(self.EXCHANGE, self.ROUTING_KEY,
json.dumps(message, ensure_ascii=False),
properties)```