examples
By cloud-native-go
go-circuitbreaker
A context aware circuit breaker library in Go. (by mercari)
examples | go-circuitbreaker | |
---|---|---|
3 | 2 | |
314 | 347 | |
0.6% | 0.0% | |
6.7 | 0.0 | |
about 2 months ago | over 1 year ago | |
Go | Go | |
Apache License 2.0 | MIT License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
examples
Posts with mentions or reviews of examples.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-04-08.
-
How to implement a retry mechanism for goroutines?
The book "Cloud Native Go" does it like this: https://github.com/cloud-native-go/examples/blob/b7a623e9a45d8ca71979eee220d43503588565fb/ch04/retry.go
-
how to use a circuit breaker on Kubernetes
The book Cloud Native Go https://www.oreilly.com/library/view/cloud-native-go/9781492076322/ also has an implementation in it. Here you can find the code https://github.com/cloud-native-go/examples/tree/main/ch04
-
Opinions/Thoughts on Distributed Services with Go?
I haven’t read the book you mentioned, but I did just get Cloud Native Go and am loving it so far. It sounds like Cloud Native Go might be what you’re after because it includes actual patterns for handling things like retries and backoff, but also goes into using tools like Docker and gRPC and how to architect your services. I’m only on chapter 4 so far, but I’ve already learned a bunch of practical things that I feel good about recommending it already.
go-circuitbreaker
Posts with mentions or reviews of go-circuitbreaker.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-04-21.
-
Choosing dependencies using deps.dev
mercari/go-circuitbreaker
-
how to use a circuit breaker on Kubernetes
As far as I know most circuit breakers are not a stand alone process, but either part of a service mesh like istio https://istio.io/latest/docs/tasks/traffic-management/circuit-breaking/ or part of the service. Spring for example has an abstraction called Spring Cloud Circuit breaker https://spring.io/projects/spring-cloud-circuitbreaker . There are several implementations in Go, e.g. https://github.com/sony/gobreaker or https://github.com/mercari/go-circuitbreaker
What are some alternatives?
When comparing examples and go-circuitbreaker you can also consider the following projects:
gobreaker - Circuit Breaker implemented in Go
try - Simple idiomatic retry package for Go
hystrix-go - Netflix's Hystrix latency and fault tolerance library, for Go