RabbitMQ Streammer
A library for streaming messages from RabbitMQ. It provides a high-level API for connecting to RabbitMQ and consuming messages from queues.
Features
-
RabbitConsumer: A struct representing a RabbitMQ consumer that connects to a RabbitMQ broker, binds the specified queue to an exchange, and loads messages from the specified queue.
- Parameters:
channel: A reference-counted handle to a channel used to receive messages.queue_name: The name of the queue where messages will be consumed.app_group_namespace: An identifier for the application used to create routing keys, which helps in segregating messages based on different applications or groups.
- Parameters:
-
RabbitPublisher: A struct representing a RabbitMQ publisher that connects to a RabbitMQ broker, binds the specified exchange, and publishes messages to it.
- Parameters:
channel: A reference-counted handle to a channel used to send messages.exchange_name: The name of the exchange where messages will be published.app_group_namespace: An identifier for the application used to create routing keys, which helps in segregating messages based on different applications or groups.
- Parameters:
Examples
Setting Up a RabbitConsumer
use RabbitConsumer;
use StreamExt;
use Deserialize;
async