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

Question: How can I share info between servers? #89

Open
Nikoms opened this issue Apr 10, 2024 · 1 comment
Open

Question: How can I share info between servers? #89

Nikoms opened this issue Apr 10, 2024 · 1 comment

Comments

@Nikoms
Copy link

Nikoms commented Apr 10, 2024

Hello,

I'd like to use cockatiel but my app is running on multiple servers. Is there a way to share a state (for circuit breaker example) between different servers? If an API is down, I would like all of them to stop sending traffic. I think everything is in-memory here, but I'd like to know if there is a way to "plug" another implementation like redis.

If it's not implemented, is it because it's a bad idea? 😅

Thank you :)

@ValeryShvyndzikau
Copy link

ValeryShvyndzikau commented Apr 24, 2024

Hello @connor4312, @novemberborn,
I have almost the same question, I'm considering Cockatiel for the AWS serverless architecture and I need to share Circuit Breaker state between Lambda invocations. It can be DynamoDB as a storage. For example, there is a such capability Opossum library provides and can be achieved in this way:
const breakerState = breaker.toJSON();
const breaker = new CircuitBreaker({state: state});

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

2 participants