Tan xinyu created IOTDB-814: ------------------------------- Summary: Cache and redirect IoTDB's leader for write requests in IoTDB's client Key: IOTDB-814 URL: https://issues.apache.org/jira/browse/IOTDB-814 Project: Apache IoTDB Issue Type: Improvement Components: Core/Cluster Reporter: Tan xinyu
For raft based data management systems, the client typically supports the ability for caching leaders to redirect. This eliminates the need to consume internal resources and additional Round-Trip time to forward these requests within the cluster. For a write request, the coordinator can handle this request without any RPCs besides a raft broadcast if it finds that the data group's leader corresponding to the data is itself, otherwise, it can make a request to get the leader of the data group and return the result to the client instead of forwarding it.The client then caches this new leader to re-establish the session, and subsequent requests can be sent directly to the correct node. -- This message was sent by Atlassian Jira (v8.3.4#803005)