Skip to content

Commit

Permalink
Add note to circuit breakers (#219)
Browse files Browse the repository at this point in the history
  • Loading branch information
serras committed Jul 17, 2023
1 parent c43416e commit ea7f262
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions content/docs/learn/resilience/circuitbreaker.md
Original file line number Diff line number Diff line change
Expand Up @@ -202,3 +202,11 @@ suspend fun main(): Unit {
}
```
<!--- KNIT example-circuitbreaker-02.kt -->

:::tip One circuit breaker to rule them all

If several (concurrent) threads access the same service, they should be
protected by the _same_ circuit breaker. That is, not circuit breakers created
with the same parameters, literally the _same instance_.

:::

0 comments on commit ea7f262

Please sign in to comment.