Sign inSign up

deventlab/d-lmdb

By deventlab

•Updated about 2 months ago

A distributed key-value database (LMDB + Raft)

Image
Databases & storage
0

566

deventlab/d-lmdb repository overview

⁠d-lmdb-server

Distributed LMDB key-value store with Raft consensus, over plain HTTP.

⁠One command
# clean up from a previous run
docker rm -f d-lmdb 2>/dev/null

docker run -d --name d-lmdb -p 8080:8080 -v d-lmdb-data:/data deventlab/d-lmdb

# wait for bootstrap
sleep 3

# PUT: 204
curl -s -o /dev/null -w 'PUT: %{http_code}\n' -X PUT localhost:8080/kv/hello -d world

# Output "world"
curl localhost:8080/kv/hello

No config file. No setup. Single-node in one line.

Custom config or 3-node HA cluster: full docs →⁠

⁠API at a glance
MethodPath
PUT/kv/{key}Write a value
GET/kv/{key}Read a value
GET/kv/{key}?level=linearizableRead with Raft consistency
DELETE/kv/{key}Delete a key
GET/statusCluster health

Tag summary

Content type

Image

Digest

sha256:e4bfdc136…

Size

36.9 MB

Last updated

about 2 months ago

docker pull deventlab/d-lmdb