-
Notifications
You must be signed in to change notification settings - Fork 51
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
Comments
Hello @connor4312, @novemberborn, |
I think the needs for hydrating state, as you say in serverless, are different from sharing state. Hydrating state is easy and I think I'll implement that for this issue. Sharing state is very hard. You need a data store that can read and write pretty fast since we'd need to do a read pretty often. You also need to be able to do distributed locking to prevent multiple servers doing half-open tries at once. And this is an external data store, so you need failure handling for that datastore too and end up with a chicken and egg problem. This would mostly be useful for the case of large numbers of servers sending a small number of requests, which generally falls in the realm of serverless for which I think hydration is a better solution. |
@connor4312 1d00074 implements (de)serializing the state of the My first idea would be to add Alternatively, we could also just use the same approach that is used for |
Good catch, fixed in 3.2.1. Opted to define a gettable/settable |
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 :)
The text was updated successfully, but these errors were encountered: