March 2020
Intermediate to advanced
626 pages
14h 45m
English
Consul's key-value store is a persistent layer that allows users to store configuration parameters and the metadata of services within a data center. The Consul Replicate (https://github.com/hashicorp/consul-replicate) tool can be used to perform cross-data center K/V asynchronous replication.
Consul's kv command is used to interact with the Consul K/V store via the command line to insert, update, and delete operations. The K/V store is also accessible through the HTTP API. The key-value can be monitored through watches, which can invoke handlers to take a specific action.
Let's go through an example of how to store key-values:
Read now
Unlock full access