Libkv

libkv is a unified library to interact with different key-value store backends. libkv was originally part of Docker Swarm v1 in the very first versions of the development. Later, all code related to key-value store discovery services was refactored and moved to www.github.com/docker/libkv.

libkv allows you to execute CRUD operations and also to watch key-value entries from different backends, so we can use the same code to work with all HA distributed key-value stores, which are Consul, Etcd, and ZooKeeper as shown in the following figure. At the time of writing, libkv also supports a local store implemented using BoltDB.

Libkv

How to use libkv

To ...

Get Native Docker Clustering with Swarm now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.