Circuit Breaker 패턴이란 마이크로서비스 아키텍처에서 서비스 장애가 전체 시스템에 미치는 영향을 방지하기 위해 사용되는 디자인 패턴이다.
마치 가전제품을 보호하기 위해 전기의 흐름을 차단하는 전기 회로 차단기와 유사하게, 소프트웨어 기반 회로 차단기는 서비스 간 상호 작용을 모니터링합니다. 타임아웃, 서버 과부하 또는 네트워크 문제 등 다양한 원인으로 장애가 증가하는 것을 감지하면 해당 서비스로의 트래픽을 차단하여 시스템이 원활하게 복구되고 병목 현상을 방지하며 시스템 안정성을 유지할 수 있도록 합니다.
What is Circuit Breaker?
The circuit breaker pattern is a design pattern used in microservices architecture to prevent service failures from impacting an entire system. Much like an electrical circuit breaker that interrupts the flow of electricity to protect appliances, the software-based circuit breaker monitors service interactions. When it detects an increase in failures—whether due to timeouts, server overload, or network issues—it “trips,” halting traffic to the failing service. This allows the system to recover gracefully, avoid bottlenecks, and maintain system stability.
