Ecosyste.ms: Packages

An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

Top 2.2% on proxy.golang.org
Top 1.2% dependent packages on proxy.golang.org
Top 1.4% dependent repos on proxy.golang.org
Top 3.8% forks on proxy.golang.org

proxy.golang.org : github.com/cep21/circuit/v3

Package circuit is a Go implementation of the circuit breaker pattern. Most documentation is available on the github README page https://github.com/cep21/circuit/blob/master/README.md Netflix describes most use cases on their wiki for Hystrix at https://github.com/Netflix/Hystrix/wiki. Quoting the wiki: It is a great library for microservice applications that require a large number of calls to many, small services where any one of these calls could fail, or any of these services could be down or degraded. The godoc contains many examples. Look at them for a good start on how to get started integrated and using the Hystrix library for Go. A circuits start Closed. The default logic is to open a circuit if more than 20 requests have come in during a 10 second window, and over 50% of requests during that 10 second window are failing. Once failed, the circuit waits 10 seconds before allowing a single request. If that request succeeds, then the circuit closes. If it fails, then the circuit waits another 10 seconds before allowing another request (and so on). Almost every part of this flow can be configured. See the CommandProperties struct for information. All circuits record circuit stats that you can fetch out of the Circuit at any time. In addition, you can also inject your own circuit stat trackers by modifying the MetricsCollectors structure. This is a full example of using a circuit around HTTP requests.

Registry - Source - Documentation - JSON
purl: pkg:golang/github.com/cep21/circuit/v3
Keywords: circuit, circuit-breaker-pattern, hystrix, slo
License: Apache-2.0
Latest release: about 2 years ago
First release: almost 5 years ago
Namespace: github.com/cep21/circuit
Dependent packages: 19
Dependent repositories: 14
Stars: 689 on GitHub
Forks: 42 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 28 days ago

    Loading...
    Readme
    Loading...