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 jobs, as well as a MessageQueue<J> implementation for consuming messages from an AMQP queue and passing them to ReadyWorker for processing.
Features
- Integration between apalis and AMQP message queuing systems.
- Easy creation of AMQP-backed job queues.
- Simple consumption of AMQP messages as apalis jobs.
- Supports message acknowledgement and rejection via
towerlayers. - Supports all apalis middleware such as rate-limiting, timeouts, filtering, sentry, prometheus etc.
Getting started
Add apalis-amqp to your Cargo.toml file:
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
[]
= "0.4"
= "0.2"
= "1"
Then add to your main.rs
use *;
use AmqpBackend;
use ;
;
async
async
License
apalis-amqp is licensed under the Apache license. See the LICENSE file for details.