Implementation of circuit breaker design patter for nodejs