Top 0.3% dependent packages on proxy.golang.org
Top 0.2% dependent repos on proxy.golang.org
Top 6.0% forks on proxy.golang.org
Top 0.2% docker downloads on proxy.golang.org
proxy.golang.org : 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.
Registry
-
Source
- Documentation
- JSON
purl: pkg:golang/github.com/facebookgo/muster
License: BSD-3-Clause
Latest release: almost 10 years ago
First release: almost 10 years ago
Namespace: github.com/facebookgo
Dependent packages: 221
Dependent repositories: 1,173
Stars: 111 on GitHub
Forks: 12 on GitHub
Docker dependents: 40
Docker downloads: 116,557,244
See more repository details: repos.ecosyste.ms
Last synced: 5 months ago