[Microservices Architecture]What Is Circuit Breaker and How to implement It With .NET Core?

Thanh Le
The Startup
Published in
8 min readAug 19, 2020

--

NOTE: This article is for people that have basic understanding about Microservices Architecture (MSA) and want to deep dive into it. If you are newbie in MSA world, I would like to recommend 2 websites — where you can find everything related to MSA from beginner to advanced level:

https://martinfowler.com/microservices/

https://microservices.io

What is Circuit Breaker?

A circuit breaker is an automatically operated electrical switch designed to protect an electrical circuit from damage caused by excess current from an overload or short circuit. Its basic function is to interrupt current flow after a fault is detected. Unlike a fuse, which operates once and then must be replaced, a circuit breaker can be reset (either manually or automatically) to resume normal operation. — Wikipedia.

But, wait….!

This is a Software Programming topic, and why I’m bring something related to Electrical Technology into this topic?

Because the way we apply Circuit Breaker Pattern in Software Programming is very similar. And I just want to bring something that you are familiar with in order to make the topic easier to understand.

--

--

Thanh Le
The Startup

A Software Technical Architect — Who code for food and write for fun :)