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

Use in distributed elixir #13

Open
adherr opened this issue Sep 29, 2022 · 1 comment
Open

Use in distributed elixir #13

adherr opened this issue Sep 29, 2022 · 1 comment

Comments

@adherr
Copy link

adherr commented Sep 29, 2022

Hello, thanks for this great library. I used it recently with great success on a project recently.

Now, I've got a system running on several nodes that I'd like to all use the same fuse and rate limit. It looks like these entities live in ETS. Do you think it would be reasonable to extend this to customize configuration storage to allow storing them in a distributed (or external) cache?

@jvoegele
Copy link
Owner

Hello @adherr , I'm very sorry that I didn't see this before. My GitHub notifications must not be properly configured and I never received an email for this, but I will look into that.

As to the issue you've raised, I agree that it would be nice for all the fuse and rate-limit configuration to work seamlessly in clustered applications. The current implementation uses external libraries for the circuit-breaker and rate-limiting behavior, so I'm not sure how much flexibility there is for making those libraries work in clustered mode but I will investigate. I've also been considering dropping the third-party dependencies and making this library more standalone so that it wouldn't be so constrained by such things, so this might prove to be the impetus for doing that.

Thanks for reporting this and I'll update here when I've got a better idea about how to proceed.

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