Skip to main content

Crate mytheclipse_queue

Crate mytheclipse_queue 

Source
Expand description

§mytheclipse-queue

A job queue abstraction so your background work isn’t locked to one transport. Provides a single Queue trait, Job type, and WorkerPool executor with configurable retry/backoff, concurrency, and a dead-letter queue.

The backend that ships is in-memory (InMemoryQueue, feature in-memory): one Mutex<Vec<Job>> + Notify per topic, no external service. Queue is a trait, so another transport can implement it without touching WorkerPool.

Re-exports§

pub use error::JobError;
pub use error::QueueError;
pub use in_memory::InMemoryQueue;
pub use job::Job;
pub use job::JobId;
pub use traits::Queue;
pub use worker::JobFuture;
pub use worker::JobHandler;
pub use worker::WorkerConfig;
pub use worker::WorkerPool;
pub use backpressure_enqueue::enqueue_with_backpressure;
pub use backpressure_enqueue::BackpressureEnforcer;
pub use backpressure_enqueue::BackpressureError;
pub use rate_limited::RateLimitQueueError;
pub use rate_limited::RateLimitedQueue;
pub use worker_rate_limited::RateLimitedWorkerPool;
pub use pipeline::Stage;
pub use pipeline::StageError;
pub use pipeline::StageRunner;

Modules§

backpressure_enqueue
Backpressure-aware enqueuer (in-memory backend).
batch
Batch job processor for bulk processing of queued jobs.
error
Errors returned by queue and job operations.
in_memory
In-process job queue: a topic map guarded by an RwLock plus one Mutex<Vec<Job>> + Notify per topic.
job
The Job type and its metadata.
pipeline
Streaming pipeline that chains async transform stages with backpressure.
prelude
The common case, in one import.
rate_limited
Rate-limited queue wrapper.
traits
The core Queue trait and supporting types.
worker
Worker pool for processing queued jobs with retry, backoff, and graceful shutdown.
worker_rate_limited
Rate-limited worker pool (feature in-memory).