paint-brush
Introduction to Circuit Breaker Pattern: How to Build Better Softwareby@boxpiper
3,733 reads
3,733 reads

Introduction to Circuit Breaker Pattern: How to Build Better Software

by Box Piper6mOctober 10th, 2020
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

The Circuit Breaker Pattern is a NodeJS tool that monitors for failures. When the number of consecutive failures crosses a threshold, the circuit breaker trips, and for the duration of a timeout period all attempts to invoke the remote service will fail immediately. The circuit breaker has defined 3 states for processing. These states are represented in colours as well. Closed as Green, Open as Red and Half Open as Yellow. The state will move from closed to open when number of failures exceeds the defined threshold and breaker trips. At this point, any requests to the service will automatically fail automatically.

People Mentioned

Mention Thumbnail

Companies Mentioned

Mention Thumbnail
Mention Thumbnail
featured image - Introduction to Circuit Breaker Pattern: How to Build Better Software
Box Piper HackerNoon profile picture
Box Piper

Box Piper

@boxpiper

https://boxpiper.com/ Created and managed by Sanket Makhija 🚀. Hunter|Maker of https://jsonapi.co/

L O A D I N G
. . . comments & more!

About Author

Box Piper HackerNoon profile picture
Box Piper@boxpiper
https://boxpiper.com/ Created and managed by Sanket Makhija 🚀. Hunter|Maker of https://jsonapi.co/

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite