A micro batching library written in Rust.
Micro-batching is a technique used in processing pipelines where individual tasks are grouped together into small batches. This can improve throughput by reducing the number of requests made to a downstream system. Nano is a micro-batching library.
The NanoBatcher
struct is the interface for submitting batch items as well as shutting down the processing of batches.
The Nano library introduces a BatchProcessor
trait, which must be implemented for each downstream system receiving batches.
To view the documentation use
cargo doc --open
Unit tests can be run with
cargo test
MIT © Oliver Daff