-
Notifications
You must be signed in to change notification settings - Fork 15
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
RFC-0078: Zone-Aware Replica Reads #136
base: master
Are you sure you want to change the base?
Conversation
4ffb771
to
bec99f8
Compare
63f2d41
to
f3c50be
Compare
f3c50be
to
7b9694f
Compare
@programmatix I've uploaded update for transactions API. It documents |
``` | ||
enum ReadPreference { | ||
NO_PREFERENCE, | ||
SELECTED_SERVER_GROUP, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be PREFERRED_SERVER_GROUP
(or SERVER_GROUP
) to match the name of the cluster option?
``` | ||
class ClusterOptions { | ||
// ... | ||
ClusterOptions preferredServerGroup(String serverGroupName); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we have a standard name for a corresponding connection string property?
If so, would that nudge us towards calling this just serverGroup
which is ~50% easier to type? :-)
options() | ||
.timeout("20ms") | ||
.read_preference(SELECTED_SERVER_GROUP)) | ||
} catch DocumentUnretrievableException | DocumentNotFoundException { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@avsej for my understanding - I thought the replica methods would never raise DocumentNotFoundException?
|
||
![Selected Server Group](figures/0078-case-2-local-only.svg) | ||
|
||
## Selected Server Group with Fallback |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@avsej this isn't in the ReadPreference enum below - which one is correct?
No description provided.