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§
- Batch
Config - Configuration for
BatchProcessor. - Batch
Flush - Result of a completed batch flush.
- Batch
Processor - A processor that batches jobs before dispatching them.
Traits§
- Batch
JobHandler - A handler that processes a batch of jobs atomically.