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

Enable auto-retry for Cascade Client. #11

Open
songweijia opened this issue Nov 18, 2020 · 0 comments
Open

Enable auto-retry for Cascade Client. #11

songweijia opened this issue Nov 18, 2020 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@songweijia
Copy link
Contributor

A cascade client uses locally cached group membership to decide which Cascade server to communicate with. If there was a view change, the client's membership cache might be stale resulting in the client trying an invalid member. In such a case, instead of leaving the exception handling to the application, we can implement the retry mechanism inside ServiceClient<>::put()/get()/remove(), where the connection exception should be caught, the membership be refreshed, and operation retry.

On network hiccups, the client must use the version verifier to avoid a retried operation being processed more than once.

@songweijia songweijia added the enhancement New feature or request label Nov 18, 2020
@songweijia songweijia self-assigned this Nov 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant