Skip to content

Getting Started

Kinshuk Bairagi edited this page Aug 18, 2021 · 2 revisions

Let's launch a single dkv node so that our application can connect to it.

  • Step 1: Let's launch a DKV node using docker

    curl -fsSL https://raw.githubusercontent.com/flipkart-incubator/dkv/master/Dockerfile | docker build -t dkv -f - .
    docker run -it -p 8080:8080 dkv:latest -db-folder /tmp/dkvsrv -db-engine rocksdb

    Now that you have launched the dkv node, let's have a our java code to connect and perform some operations on it.

  • Step 2: Add the maven dependency of the dkv-client to your pom.xml

    <dependencies>
        ...
        <dependency>
            <groupId>org.dkv.client</groupId>
            <artifactId>dkv-client</artifactId>
            <version>${dkv.version}</version>
        </dependency>
    </dependencies>
  • Step 3: Operate on dkv node.

Using Envoy to dynamically update Cluster

DKV Envoy Sidecar