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

PreferSlaveNode() and PreferRandomNode() missing from TCP client documentation #293

Closed
shaan1337 opened this issue Mar 8, 2021 · 1 comment

Comments

@shaan1337
Copy link
Member

shaan1337 commented Mar 8, 2021

The node preference section in the client docs is not accurate:
https://developers.eventstore.com/clients/dotnet/5.0/connecting/options.html#node-preference

PerformOnMasterOnly() and PerformOnAnyNode() option are used to allow forwarding of operations from slave/follower to master/leader instead of forcing the client to connect to the master/leader.

In addition to PerformOnAnyNode(), PreferSlaveNode() should be used to give priority to connect to slave nodes first (or PreferRandomNode() to connect to any node). If not set, the default behaviour is to connect to the master/leader.

These options cannot currently be set via connection string: EventStore/EventStoreDB-Client-Dotnet-Legacy#74

@mat-mcloughlin
Copy link
Contributor

Just coming back to this @shaan1337 do you want to submit a PR for it please

@ylorph ylorph added the linear label Oct 16, 2023
@robj-es robj-es closed this as completed Jul 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants