Skip to main content

Module batch

Module batch 

Source
Expand description

Batch job processor for bulk processing of queued jobs.

BatchProcessor wraps a Queue and accumulates jobs per topic until either batch_size is reached or batch_timeout elapses, then dispatches them to a BatchJobHandler for bulk processing (e.g. bulk DB insert, bulk email send, batch index write).

Structs§

BatchConfig
Configuration for BatchProcessor.
BatchFlush
Result of a completed batch flush.
BatchProcessor
A processor that batches jobs before dispatching them.

Traits§

BatchJobHandler
A handler that processes a batch of jobs atomically.