Package Usage: go: github.com/facebookgo/muster
Package muster provides a framework for writing libraries that internally
batch operations.
It will be useful to you if you're building an API that benefits from
performing work in batches for whatever reason. Batching is triggered based
on a maximum number of items in a batch, and/or based on a timeout for how
long a batch waits before it is dispatched. For example if you're willing to
wait for a maximum of a 1m duration, you can just set BatchTimeout and keep
adding things. Or if you want batches of 50 just set MaxBatchSize and it
will only fire when the batch is filled. For best results set both.
It would be in your best interest to use this library in a hidden fashion in
order to avoid unnecessary coupling. You will typically achieve this by
ensuring your implementation of muster.Batch and the use of muster.Client
are private.
1 version
Latest release: about 10 years ago
221 dependent packages
View more package details: https://packages.ecosystem.code.gouv.fr/registries/proxy.golang.org/packages/github.com/facebookgo/muster