rustapi-jobs
Lens: "The Workhorse"
Philosophy: "Fire and forget, with reliability guarantees."
Background job processing for RustAPI. Long-running tasks shouldn't block HTTP requests.
Quick Start
// Define a job
// Enqueue it
queue.push.await;
Backends
| Backend | Use Case |
|---|---|
| Memory | Development and testing |
| Redis | High throughput persistence |
| Postgres | Transactional reliability (ACID) |
Reliability Features
- Exponential Backoff: Automatic retries for failing jobs
- Dead Letter Queue: Poison jobs are isolated for manual inspection
- At-Least-Once Delivery: Jobs are not lost if a worker crashes
- Scheduling: Cron-like recurring tasks
Full Example
use ;
// Enqueue
queue.push.await?;