Circuit Breaker Pattern in NestJS: Building Resilient Microservices

How to implement the circuit breaker pattern in NestJS using nestjs-resilience4j or a custom implementation — preventing cascading failures and building self-healing services.