Developer Tasks

Step-by-step guides for developers using etcd as a key-value store in their applications.

Reading from etcd

Reading a value in an etcd cluster

Writing to etcd

Adding a KV pair to an etcd cluster

How to get keys by prefix

Guide to extracting etcd keys by their prefix

How to delete keys

Describes a way to delete etcd keys

How to make multiple writes in a transaction

Guide to making transactional writes

How to watch keys

Guide to watching etcd keys

Granting and revoking leases

Guide to granting and revoking leases in etcd

How to create locks

Guide to creating distributed locks in etcd