---
title: "Discussion on \"State Design Pattern: Let's build a circuit breaker\" | Hashnode"
description: "Discussion on \"State Design Pattern: Let's build a circuit breaker\". Definition of State pattern:\n\nThe 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 ..."
url: "https://hashnode.com/posts/state-design-pattern-lets-build-a-circuit-breaker/611fd61fe404793819ca7c1d"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [State Design Pattern: Let's build a circuit breaker](https://returnfn.com/state-design-pattern-lets-build-a-circuit-breaker?utm_source=hashnode&utm_medium=feed)

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 ...

Aug 20, 2021 · 4 min read · returnfn.com  
Updated Aug 21, 2021  
Read the article

-   [#design-patterns](https://hashnode.com/tag/design-patterns)
-   [#state](https://hashnode.com/tag/state)
-   [#microservices](https://hashnode.com/tag/microservices)
-   [#go](https://hashnode.com/tag/go)
-   [#clean-code](https://hashnode.com/tag/clean-code)

## Written by

[Mostafa Asgari](https://hashnode.com/@mostafa-asg)

@mostafa-asg

  
[View profile](https://hashnode.com/@mostafa-asg)

Software Developer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
