Skip to content

Instantly share code, notes, and snippets.

@rShetty rShetty/cb.go
Last active Mar 15, 2018

What would you like to do?
Circuit breakers
config := heimdall.HystrixCommandConfig{
MaxConcurrentRequests: 100,
ErrorPercentThreshold: 25,
SleepWindow: 10,
RequestVolumeThreshold: 10,
hystrixConfig := heimdall.NewHystrixConfig(“MyCommand”, config)
timeout := 10 * time.Millisecond
httpClient := heimdall.NewHystrixHTTPClient(timeout, hystrixConfig)
_, err := httpClient.Get(“”, http.Header{})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.