Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

moat-kv-0.70.12.tar.gz (175.4 kB view details)

Uploaded Source

Built Distribution

moat_kv-0.70.12-py3-none-any.whl (125.6 kB view details)

Uploaded Python 3

File details

Details for the file moat-kv-0.70.12.tar.gz.

File metadata

  • Download URL: moat-kv-0.70.12.tar.gz
  • Upload date:
  • Size: 175.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.2

File hashes

Hashes for moat-kv-0.70.12.tar.gz
Algorithm Hash digest
SHA256 ec47cfb85dd8ab9fee91d23c0577dc0656abdfda658e2c044efd56ac1cd4013a
MD5 fdd5ea9ecf601cdb4e4029380bb9151d
BLAKE2b-256 fe143b70f5f63bffccfa292b38d178b6ffa0640e8355558a6f8b33fc37f840dd

See more details on using hashes here.

Provenance

File details

Details for the file moat_kv-0.70.12-py3-none-any.whl.

File metadata

  • Download URL: moat_kv-0.70.12-py3-none-any.whl
  • Upload date:
  • Size: 125.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.2

File hashes

Hashes for moat_kv-0.70.12-py3-none-any.whl
Algorithm Hash digest
SHA256 ab0edd8e4c350e7987c589be4952925dec82b05b0e6fdf41427899a478e3104a
MD5 e3dccc092903327941907f16e5ba458d
BLAKE2b-256 d0089ac52ee44a5f129553f04c4906dbd2849689e4ee5009fb27650c04cc234a

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page