-
Let's say I have an endpoint which needs to do a write operation to the audit log, the do a bunch of other things which are better done distributed rather than on the leader. Is there a way to:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
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 |
Beta Was this translation helpful? Give feedback.
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.