by BehindJava

What is Blast Radius in Microservices

Home » microservices » What is Blast Radius in Microservices

In this tutorial, we are going to learn about Blast Radius in detail.

Blast Radius

Blast Radius is the degree to which the entire system is affected if a micro service fails or shuts down,

In monolithic application the blast radius is 100%, when a part of the application encounters a fatal error or if the database becomes unavailable i.e., due to network misconfiguration, overloading etc.

In the microservices architecture, we mainly aim at reducing the blast radius with patterns of resilience.

  • Independent database for each microservice.
  • Timeouts while making an API call. So that other microservices don’t go into waiting state.
  • Backoff strategy retries when an API doesn’t respond for stipulated amount of time.
  • Circuit breaker pattern is point to point call between the microservices.
  • Bulkhead pattern is type of application design that is tolerant of failure.
  • Fallback pattern The Fallback Pattern consists of detecting a problem and then executing on an alternative microservice.
  • Asynchronous communication is no point to point calls, usage of message queues and event streams between the microservices.