We use the dgraph4j client to write continuous streams of data to dgraph. We are interested in always writing data to the Alpha Leader. Can the dgraph4j client implement the State API to return back which server is the leader? On the client side, we'd be able to check who the leader is and then disconnect/reconnect to the leader on a periodic basis.
More advanced request, can the dgraph4j client handle a URI with the full list of alphas in it and the dgraph4j client internally keep the connection connected to the active leader?
Why? We see increased ingest speed when writing to the Alpha leader.
https://docs.dgraph.io/admin/admin-tasks/view-cluster-state
Thanks