Skip to content

State API - Keep Connection to Active Alpha Leader for Data Ingestion #285

@rahst12

Description

@rahst12

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions