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

RSC15f: implement fallback affinity #433

Merged
merged 2 commits into from
Dec 6, 2018
Merged

Conversation

paddybyers
Copy link
Member

@paddybyers paddybyers commented Nov 19, 2018

This PR implements temporary affinity to a fallback host for REST operations, as specified in https://docs.ably.io/client-lib-development-guide/features/#RSC15f:

(RSC15f) Once/if a given fallback host succeeds, the client should store that successful fallback host for ClientOptions.fallbackRetryTimeout. Future HTTP requests during that period should use that host. If during this period a qualifying errors occurs on that host, or after fallbackRetryTimeout has expired, it should be unstored, and the fallback sequence begun again from scratch, starting with the default primary host (rest.ably.io or ClientOptions#restHost)

Affinity to a successful fallback host is for 10 minutes by default, but is configurable via the fallbackRetryTimeout client option as specified in https://docs.ably.io/client-lib-development-guide/features/#TO3l10.

@paddybyers paddybyers merged commit 1478622 into develop Dec 6, 2018
@KacperKluka KacperKluka deleted the fallback-affinity branch March 25, 2022 09:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant