Circuit Breaker pattern in Scala

1 · Lalit Prakash Vatsal · March 28, 2020, 8:30 p.m.
Circuit breaker pattern is a common microservice resiliency pattern to make system responsive after series of failures and have a fallback mechanism. [NOTE] Spoiler — This would be a simple implementation and the Scala code would be stateful and have side-effects. The Need Doing a remote call or executing a task which is outside the domain boundary of the system is very common in modern applications. Especially in microservice world, we are bound to make calls to other microservices. In such sc...