Moleculer's built-in circuit breaker lets you fail fast on remote action calls. This post covers configuration, state semantics, a worked example, and the local-state limitation.
Moleculer circuit breakers can block healthy services during traffic spikes. Start with errorThresholdPercentage: 50, resetTimeout: 10000, minimumCount: 10, and timeout: 5000 to avoid false positives while catching real failures.
Configure Moleculer's Circuit Breaker middleware to fail fast when downstream actions error, set thresholds and window, monitor circuit.open events, and verify recovery without cascading latency.
Intermittent 503s during traffic peaks with healthy upstreams usually mean Envoy's circuit breakers are tripping. Here's how to confirm which counter is overflowing and fix the right limit.
Use Moleculer’s Circuit Breaker to protect services from cascading failures. This guide explains when to enable it, compares configuration options, discusses trade‑offs, and provides a minimal example for validation.
Learn how to configure and monitor Moleculer’s built‑in Circuit Breaker, the minimal architecture that protects your services from cascading failures, and when to rethink the design.
Moleculer's circuit breaker is on by default, but the defaults are generic. Learn how it decides to open, why retries can stop it from tripping, and how to verify the behavior locally.