# Synchronous communication - circuit breaker and fallback

DevFeed: [Synchronous communication - circuit breaker and fallback](<https://devfeed.tech/articles/synchronous-communication-circuit-breaker-and-fallback-27329.md>)

Original publisher: [Read original article](<https://blog.pchudzik.com/202005/circuit-breaker/>)

Published: 2020-05-07T00:00:00Z

Content type: tutorial

Language: en

Sources: [Paweł Chudzik](<https://devfeed.tech/sources/pawe-chudzik.md>)

Topics: [Development](<https://devfeed.tech/topics/development.md>), [Software Engineering](<https://devfeed.tech/topics/software-engineering.md>), [Network](<https://devfeed.tech/topics/network.md>)

Tags: [behavior](<https://devfeed.tech/tags/behavior.md>), [communication](<https://devfeed.tech/tags/communication.md>), [network](<https://devfeed.tech/tags/network.md>), [self-healing](<https://devfeed.tech/tags/self-healing.md>), [services](<https://devfeed.tech/tags/services.md>), [software-development](<https://devfeed.tech/tags/software-development.md>), [systems](<https://devfeed.tech/tags/systems.md>)

## AI overview

This tutorial explains the circuit breaker and fallback communication patterns for preventing cascading failures and giving dependent services time to recover. It describes closed, open, and half-open states, then examines implementations from Hystrix and resilience4j using a controllable failing service.

## Source excerpt

The circuit breaker is a communication pattern that helps to avoid cascading failure of the system and gives dependent services time to recover. Along with fallback values defined by the developer, it gives a pretty wide safe net when communication channel is broken. Read more