Git Product home page Git Product logo

kv's Introduction

kv

kv is a simple file-backed key-value store.

Inside a kv database ("kvdb"), there exists a set of nodes. Each node has it's own set of key-value data.

Nodes use "/" for namespace. Example node names: "host/bar", "switch/foo".

Keys use "." for namespace. Example key names: "hardware.cpu_model", "foo".

The full canonical "keypath" for a value includes the node and the key name, joined with a '#', optionally with an array index (zero-based) to just refer to one value.

Example paths: "host/bar#hardware.cpu_model" # all values for key 'hardware.cpu_model' "host/bar#service#2" # 3rd value for key 'service'

Data File Format

...

File backed?

kv's design goal is not fancy data storage or massive write performance, it is data portability and ease of access.

The backend data files should be checked into revision control, which makes it easy for other systems to get at the data, provides an audit log, basic ACLs, and rollback capability.

The Vision

kv is just a library. Eventually there will be sample frontends that use kv on the backend, and expose the data. Ideas:

  • kv - command line tool to read/write/manipulate a kvdb
  • kvlookupd - loads all kv nodes in an in-memory searchable index, provides a way to query over the network. periodically stat()-polls and updates kv node data (and indexes).
  • kvrest - read-only REST api

kv's People

Contributors

fetep avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.