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.
proxy.golang.org
v0.0.0-20150708232844-fd3d7953fd52
over 10 years ago
1
221
1,173
Links
| Registry | proxy.golang.org |
| Source | Repository |
| Docs | Documentation |
| JSON API | View JSON |
| CodeMeta | codemeta.json |
Package Details
| PURL |
pkg:golang/github.com/facebookgo/muster
spec |
| License | BSD-3-Clause |
| Namespace | github.com/facebookgo |
| First Release | over 10 years ago |
| Last Synced | 16 days ago |
Repository
| Stars | 111 on GitHub |
| Forks | 12 on GitHub |
| Docker Dependents | 40 |
| Docker Downloads | 116,557,244 |