Overview
apalis-amqp is a Rust crate that provides utilities for integrating apalis with AMQP message queuing systems. It includes an AmqpBackend implementation for use with the pushing and popping messages, as well as a MessageQueue<M> implementation for consuming messages from an AMQP queue.
Features
- Integration between apalis and AMQP message queuing systems.
- Easy creation of AMQP-backed message queues.
- Simple consumption of AMQP messages as apalis messages.
- Supports message acknowledgement and rejection via
towerlayers. - Supports all apalis middleware such as rate-limiting, timeouts, filtering, sentry, prometheus etc.
- Supports ack messages and allows custom saving results to other backends
Getting started
Before attempting to connect, you need a working amqp backend. We can easily setup using Docker:
Setup RabbitMq
docker run -p 15672:15672 -p 5672:5672 -e RABBITMQ_DEFAULT_USER=apalis -e RABBITMQ_DEFAULT_PASS=apalis rabbitmq:3.8.4-management
Setup the rust code
Add apalis-amqp to your Cargo.toml
[]
= "0.6"
= "0.4"
= "1"
Then add to your main.rs
use *;
use AmqpBackend;
use ;
;
async
async
Run your code and profit!
License
apalis-amqp is licensed under the Apache license. See the LICENSE file for details.