circuitbreaker

Circuit Breakers in Go

MIT License

Stars
1.1K
Committers
14

Bot releases are hidden (Show)

circuitbreaker - v2.2.2 Latest Release

Published by rubyist 5 months ago

What's Changed

New Contributors

Full Changelog: https://github.com/rubyist/circuitbreaker/compare/v2.2.1...v2.2.2

circuitbreaker - v2.2.1

Published by rubyist over 6 years ago

circuitbreaker - Release 2.2.0

Published by rubyist about 8 years ago

2.2.0 - 2016-08-09

Added

  • Externally provided event listener channel (@spencerkimball)

Deprecated

  • Nothing

Removed

  • Nothing

Fixed

  • Reduce allocations around last failure time storage
  • Use the Clock for window code as well
  • Remove test data race
  • Fix race condition in state() (@tamird)
circuitbreaker - Release 2.1.7

Published by rubyist about 8 years ago

Added

  • Nothing

Deprecated

  • Nothing

Removed

  • Nothing

Fixed

  • Set Backoff.MaxElapsedTime to 0 as default [@matope]
  • Use a lock when modifying nextBackoff
  • Fix goroutine leak when using timeouts [@isaldana]
  • Fix window buckets that should be empty [@isaldana]
  • Update backoff package, which has been renamed
circuitbreaker - Release 2.1.6

Published by rubyist over 8 years ago

2.1.6 - 2016-02-02

Added

  • Nothing

Deprecated

  • Nothing

Removed

  • Nothing

Fixed

  • client.Do() was not returning the error when it timed out [@ryanmurf]
circuitbreaker - Release 2.1.5

Published by rubyist almost 9 years ago

2.1.5 - 2015-11-19

Added

  • Nothing

Deprecated

  • Nothing

Removed

  • Nothing

Fixed

  • Respect backoff.Stop [@bc-vincent-zhao]
circuitbreaker - Release 2.1.4

Published by rubyist about 9 years ago

2.1.4 - 2015-09-01

Added

  • Nothing

Deprecated

  • Nothing

Removed

  • Nothing

Fixed

  • HTTP client was using a new panel object instead of the one it added the breaker to [@ryanmurf]
circuitbreaker - Release 2.1.3

Published by rubyist about 9 years ago

2.1.3 - 2015-08-05

Added

  • Configurable bucket time and number [@thraxil]
  • Use mock clock for test [@andreas]

Deprecated

  • Nothing

Removed

  • Nothing

Fixed

  • Bug in statsd bucket name documentation / example [@thraxil]
circuitbreaker - Release 2.1.2

Published by rubyist over 9 years ago

Added

  • Nothing

Deprecated

  • Nothing

Removed

  • Nothing

Fixed

  • Simplify Call() for rate breaker, fixing a reset bug [@Melraidin]
circuitbreaker - Release 2.1.1

Published by rubyist almost 10 years ago

Added

  • Nothing

Deprecated

  • Nothing

Removed

  • Nothing

Fixed

  • Ensure the half opens counter resets when the breaker resets, or auto-resetting may not occur
circuitbreaker - Release 2.1.0

Published by rubyist about 10 years ago

Added

  • Failure, Sucess counts and Error Rate is now calculated over a sliding window
  • Number of buckets in the window and the time the window spans are tuneable

Deprecated

  • Nothing

Removed

  • Nothing

Fixed

  • A race condition in Call()
circuitbreaker - Release 2.0.2

Published by rubyist about 10 years ago

Added

  • ResetCounters

Deprecated

  • Nothing

Removed

  • Nothing

Fixed

  • Nothing
circuitbreaker - Release 2.0.1

Published by rubyist about 10 years ago

Added

  • Nothing

Deprecated

  • Nothing

Removed

  • Nothing

Fixed

  • Error rate should return 0.0 if there have been no samples
circuitbreaker - Release 2.0.0

Published by rubyist about 10 years ago

This is a major reworking of breaker internals. All circuit breakers are now Breaker objects, and the trip semantics are defined by an assigned ShouldTrip function.

Added

  • All circuit breakers are now a Breaker with trip semantics handled by a TripFunc
  • NewConsecutiveBreaker
  • NewRateBreaker
  • ConsecFailures
  • ErrorRate
  • Success
  • Successes
  • Retry logic now uses cenkalti/backoff, exponential backoff by default

Deprecated

  • Nothing

Removed

  • TrippableBreaker, ThresholdBreaker, FrequencyBreaker, TimeoutBreaker; all handled by Breaker now
  • NewFrequencyBreaker, replaced by NewConsecutiveBreaker
  • NewTimeoutBreaker, time out semantics are now handled by Call()
  • NoOp(), use a Breaker with no TripFunc instead
circuitbreaker - Release 1.1.2

Published by rubyist about 10 years ago

For a FrequencyBreaker, Failures() should return the count since the duration start, even after resetting.

Using Failures() in a monitoring system will always show 0 if traffic is doing Reset() on successful attempts faster than your sampling rate.

circuitbreaker - Release 1.1.1

Published by rubyist about 10 years ago

Only send the reset event when the breaker was in a tripped state.

circuitbreaker - Release 1.1.0

Published by rubyist about 10 years ago

This release re-exports the Panel's Circuits map.

circuitbreaker - Release 1.0.0

Published by rubyist about 10 years ago

This is the 1.0.0 release. The API is considered stable and backward compatibility will be maintained.

Package Rankings
Top 1.22% on Proxy.golang.org
Badges
Extracted from project README
GoDoc