RabbitMQ Service
================
A library to accelerate RabbitMQ deployment and management.
Features
- Connect to RabbitMQ using a specified URI.
- Declare two queues:
<queue_name>_requestsand<queue_name>_responses. - Publish messages to the
_requestsqueue. - Receive responses from the
_responsesqueue. - Message serialization and deserialization with
serde. - Automatic message acknowledgment.
Installation
To include this crate in your project, add it to your Cargo.toml:
[]
= "0.1.3"
Then, run cargo build to download and compile the crate.
Usage
Below is a basic example of how to use the RabbitMQService in your application.
Example
use RabbitMQService;
use tokio;
async
Dependencies
rabbit_mqrfor RabbitMQ management.serdeandserde_jsonfor message serialization and deserialization.uuidfor generating unique message IDs.tokiofor asynchronous runtime.
License
This project is licensed under the Apache-2.0 License.
Contributing
Contributions are welcome! Please feel free to fork the repository, make changes, and submit pull requests.
Author
- Femure maxime.femery@gmail.com
Documentation
You can find the documentation for this crate on docs.rs.
Repository
The source code for this crate is available on GitHub.