Introduction
BullMQ is available as a native Rust crate with full async/await support.
Installation
cargo add bullmq-rust[dependencies]
bullmq-rust = "0.1"Get Started
Adding Jobs to a Queue
use bullmq::{Queue, QueueOptions};
#[tokio::main]
async fn main() -> bullmq::Result<()> {
let queue = Queue::new("my-queue", QueueOptions::default()).await?;
// Add a job with JSON data
queue.add("my-job", serde_json::json!({
"foo": "bar"
}), None).await?;
Ok(())
}Processing Jobs with a Worker
Listening to Worker Events
Concurrency
Progress Tracking
Job Retries with Backoff
Connection Configuration
Key Differences from Node.js
Aspect
Node.js
Rust
Compatibility
Last updated
Was this helpful?