-
Notifications
You must be signed in to change notification settings - Fork 19
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 default fallback hosts when custom environment set #196
Use default fallback hosts when custom environment set #196
Conversation
Just to note, we should not release this until we've run a DNS update to ensure all the fallbacks exist. |
DNS updates have all been run so this is no longer blocked on that. In response to points in the description:
Sandbox now has fallback hosts configured, in case that was the reason for the failures?
The spec was updated in ably/docs#965. |
When environment is set in the client SDKs, we can now rely on default fallback hosts as follows. Fallbacks are ENV-[a-e]-fallback.ably-realtime.com. For example: ENV-a-fallback.ably-realtime.com ENV-b-fallback.ably-realtime.com ENV-c-fallback.ably-realtime.com ENV-d-fallback.ably-realtime.com ENV-e-fallback.ably-realtime.com Note that this change: - It breaks a lot of tests against sandbox that assumed no fallback hosts would be used - We need to ensure that custom hosts or custom ports result do not use default environment fallback hosts. We should only use when only the custom environment is set - Some spec updates are needed in the spec relating to the use of fallback hosts See related issue ably/docs#818 (no spec yet exists)
9a222e2
to
b42301c
Compare
@TheSmartnik @QuintinWillison This PR was made before the spec https://github.com/ably/docs/pull/965/files was finalised. It may all be fine, but should go through that spec and check that this PR implements the final spec correctly |
@TheSmartnik did you managed to look at Simons comment If you are happy could you approve and we will get this merged Thanks |
@jamienewcomb sorry, I've missed the comment. I'll double-check it later today and reply |
@TheSmartnik it would be great to get this merged, did you get chance to review Simon's comment? |
Signed-off-by: Lewis Marshall <[email protected]>
Signed-off-by: Lewis Marshall <[email protected]>
Signed-off-by: Lewis Marshall <[email protected]>
When environment is set in the client SDKs, we can now rely on default fallback hosts as follows.
Fallbacks are ENV-[a-e]-fallback.ably-realtime.com. For example:
ENV-a-fallback.ably-realtime.com
ENV-b-fallback.ably-realtime.com
ENV-c-fallback.ably-realtime.com
ENV-d-fallback.ably-realtime.com
ENV-e-fallback.ably-realtime.com
Note that this change:
See related issue ably/docs#818 (no spec yet exists)