Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Proposal: Distributed Circuit Breaker Support #69

Open
call-stack opened this issue Oct 15, 2024 · 3 comments
Open

Feature Proposal: Distributed Circuit Breaker Support #69

call-stack opened this issue Oct 15, 2024 · 3 comments

Comments

@call-stack
Copy link

Hi maintainers,

I'd like to propose adding distributed circuit breaker support to Sony/gobreaker by allowing the circuit breaker state (open/closed/half-open) to be stored in an external datastore like Redis. This would allow multiple service instances to share the same state, ensuring consistent behavior across all instances.

Key Proposal:

  • Optional External State: Allow users to opt-in to store circuit breaker state in a shared store (e.g., Redis) for distributed environments.
  • Backward Compatibility: In-memory state management remains the default.
  • Pluggable Interface: Introduce a pluggable interface for different datastores (Redis, etc.).

Benefits:

  • Consistent circuit breaker state across multiple instances.
  • Prevents downstream overloads in distributed systems.

I’d be happy to contribute a PR for this feature if it aligns with the project’s goals. Let me know your thoughts!

@call-stack
Copy link
Author

#70

@felipeagger
Copy link

Up!

@hamzashariq
Copy link

+1, this is something that would greatly enhance the usability of this package.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants