13 releases (2 stable)
| new 1.1.3 | Mar 10, 2026 |
|---|---|
| 1.0.0 | Mar 7, 2026 |
| 0.3.0 | Mar 4, 2026 |
| 0.2.1 | Mar 3, 2026 |
| 0.1.4 | Dec 20, 2025 |
#1425 in Asynchronous
Used in 7 crates
(3 directly)
23KB
475 lines
VEX Queue
Async background worker queue for robust job processing.
Features:
- Generic
Jobtrait - Pluggable backend (Memory, SQL, Redis)
- Worker pool with concurrency control
- Retry with exponential backoff
vex-queue
Async background worker queue for the VEX Protocol.
Features
- In-Memory Backend - Development and testing
- Persistent Backend - Production job durability
- Worker Pools - Scalable job processing
- Job Scheduling - Delayed and recurring jobs
Installation
[dependencies]
vex-queue = "0.1"
Quick Start
use vex_queue::{Queue, Job, Worker};
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let queue = Queue::new_memory();
// Enqueue a job
queue.enqueue(Job::new("process_data", payload)).await?;
// Start workers
let worker = Worker::new(queue.clone());
worker.run().await?;
Ok(())
}
License
Apache-2.0 License - see LICENSE for details.
Dependencies
~9–13MB
~158K SLoC