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
RwLockplus oneMutex<Vec<Job>>+Notifyper topic. - job
- The
Jobtype 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
Queuetrait 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).