Mostafa Asgari
Mostafa Asgari

Mostafa Asgari

State Design Pattern: Let's build a circuit breaker

Aug 20, 20214 min read

Definition of State pattern: The state pattern is a behavioral software design pattern that allows an object to alter its behavior when its internal state changes. This pattern is close to the concept of finite-state machines. The state pattern can ...