CircuitBreaker is used to provide stability and prevent cascading failures in distributed systems.

circuit - Circuit Breaker for Scala Maven Central

The CircuitBreaker is used to provide stability and prevent cascading failures in distributed systems.

Head on over to the microsite

Quick Start

To use circuit in an existing SBT project with Scala 2.11 or a later version, add the following dependencies to your build.sbt depending on your needs:

libraryDependencies ++= Seq(
  "io.chrisdavenport" %% "circuit" % "<version>"
)

Credits

This data type was inspired by the availability of Akka's Circuit Breaker and ported to cats-effect from Monix and when its merger halted there, it was moved to circuit. The initial implementation and port by Alexandru Nedelcu and Oleg Pyzhcov was what enabled this ref based version to exist.