Circuit breaker ngăn cascading failure khi downstream service unhealthy: consumer theo dõi failure rate, nếu vượt threshold (ví dụ 50%), "mở" circuit — requeue tất cả message không cố xử lý (fast fail); sau timeout thì "half-open" thử một message xem service đã phục hồi chưa; nếu thành công thì resume.
- Trong RabbitMQ: track failure per message với retry count trong header, kết hợp DLX để inspect message stubborn.
- Ngăn lãng phí CPU xử lý hopeless request và cảnh báo operator fix service hỏng.