apalis
Installation
SKILL.md
Apalis — Rust Background Job & Task Processing Framework
Apalis is a robust, tower-native framework for processing background jobs, tasks, and messages in Rust. It provides durable job queues, real-time message consumption, retry logic, observability, and graceful shutdown — all built on the tower::Service trait, which means the entire tower middleware ecosystem is available. Apalis provides granular backend traits (Backend, TaskSink, Metrics, Expose) that let you depend only on the capabilities you actually use.
Crate Architecture
| Crate | Purpose |
|---|---|
apalis |
Main crate — worker, monitor, layers, error handling, common types |
apalis-core |
Core abstractions: Backend, TaskSink, Metrics, Expose, Worker, Task |
apalis-redis |
Redis-based durable job queue |
apalis-postgres |
PostgreSQL-based durable job queue |
apalis-sqlite |
SQLite-based durable job queue |
apalis-mysql |
MySQL-based durable job queue |
apalis-amqp |
AMQP (RabbitMQ) message queue |
apalis-nats |
NATS message queue |
apalis-pgmq |
PGMQ (PostgreSQL native message queue) |
apalis-rsmq |
Redis Simple Message Queue |
apalis-sql |
Shared SQL utilities for PostgreSQL, SQLite, MySQL backends |