Skip to content

Can a node which is not a leader initiate a write without rerouting? #32

Answered by sakno
natilivni asked this question in Q&A
Discussion options

You must be logged in to vote

Of course. Any follower node is able to send write command to the leader node. In case of ASP.NET Core application, you can redirect client of your cluster directly to the leader node. Read this article for more information.

If you want to perform write on the follower node then use IMessageBus.LeaderRouter property to send a message to the leader node. IMessageBus interface is implemented by Raft cluster. Take a look at this article which describe cluster programming in details.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by natilivni
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants