Feature Request: add Raft::client_current_leader
API
#97
Labels
enhancement
New feature or request
good first issue
Good for newcomers
optimization
An optimization to the system
In addition to the existing
Raft::client_read
API, may I suggest to add anRaft::client_current_leader
API like the following:This would be helpful to certain applications, where the leader is required to do certain preprocessing before submitting the real Raft write request.
Also, it may be a good idea to have another similar API, which returns the current leader without sending any Raft requests for performance reason. Something like:
When using this API, it is up to the application's responsibility to check who is the real leader later.
The text was updated successfully, but these errors were encountered: