A distributed no-master key-value store
Project description
Welcome to MoaT-KV!
MoaT-KV is a master-less distributed key-value storage system. It circumvents the CAP theorem (you can’t have all of consistency, availablilty, and fault tolerance) using the assumption that a key is typically changed by one node only. It is thus resistant to partitioning and intended to be always-on; it will not block or lose updates, even in a partitioned network.
MoaT-KV comes with several batteries included:
Basic user management, pattern-based ACLs
Strong typing, code- and/or JSON Schema-based
Data mangling
Background code execution
Seamless recovery even if only one master is running
The underlying communication is based on MQTT. A Serf back-end is also available. Others are easy to implement.
MoaT-KV was originally called “distkv”.
API
MoaT-KV offers an efficient msgpack-based interface to access data and to change internal settings. Most configuration is stored inside MoaT-KV itself.
Stored data are not forced to be strings or binary sequences, but can be anything that MsgPack supports. Keys to storage are multi-level and support string, integer/float, and tuple keys.
Non-Features
MoaT-KV does not support data partitioning. Every node stores the whole data set and can instantly deliver mostly-uptodate data.
MoaT-KV does not have a disk-based storage backend. Periodic snapshots and event logs can be used to quickly restore a system, if necessary.
Status
MoaT-KV is mostly stable. There are a lot of corner cases that don’t have tests yet.
TODOs: * some services (esp. command line tools and runners) are under-tested * there’s no good API for errors
TODO
clean up some of the more egregious command line mistakes
create a page for showcase-ing subprojects (knx owfs akumuli …)
improve Home Assistant integration
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file moat_kv-0.70.22.tar.gz
.
File metadata
- Download URL: moat_kv-0.70.22.tar.gz
- Upload date:
- Size: 178.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bac8e92fc21f29906270c7f739f9a7cc6f54fcf6cde5d0c28c0888ef7f468b1d |
|
MD5 | b302b8bbee9a0de3c87e3bf5040ecd41 |
|
BLAKE2b-256 | d29b9dfa897a229148c57bdbe33abf5ff45e4dc05ef59e1d168953c0dd78c73a |
File details
Details for the file moat_kv-0.70.22-py3-none-any.whl
.
File metadata
- Download URL: moat_kv-0.70.22-py3-none-any.whl
- Upload date:
- Size: 126.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9ad49a2232e51d1ce977535eef2b6bf162b4805bd0a38326b4111e40d4751f23 |
|
MD5 | 7d42fcd93baddc21d68d5daee8353717 |
|
BLAKE2b-256 | 60169102042662c034ed82b025dc7bad93dea343cce7b513f5940f1a1579ef1b |