CIRCUIT BREAKER IN SYSTEMS BASED ON MICROSERVICES ARCHITECTURE

Heorhii Molchanov, Anatolii Yu. Zhmaiev · Advanced Information Systems · 2018

The subject of the article is a review of Circuit Breaker pattern in systems based on microservices architecture.The purpose of the article is to analyze the advantages and disadvantages of Circuit Breaker for microservices.Results.The precise way that the circuit opening and closing occurs is as follows: assuming the volume across a circuit meets a certain threshold; and if the error percentage exceeds the threshold error percentage; then the circuit-breaker transitions from closed to open; while it is open, it short-circuits all requests made against that circuit-breaker.After some amount of time, the next single request is let through (this is the half-open state).If the request fails, the circuit-breaker returns to the open state for the duration of the sleep window.If the request succeeds, the circuit-breaker transitions to closed and the logic in 1 takes over again.Conclusions.Circuit Breaker has been reviewed and explained.This pattern is emerging as essential for the reliability, ease of access, and flexibility of MSAs.Since microservices is in its early development, we can expect more patterns like this to appear in the future.It is interesting that it is structural, in the sense that they do not change the operations that services offer.Being of this nature, their implementations benefit from parametricity to achieve reusability.However, their adoption also makes MSAs more complicated, and they influence the communication structures that will be enacted in a system.This suggests that methods for the programming and verification of communications among services should keep patterns such as these into account.

Read the paper · More papers on PaperTik