Git Product home page Git Product logo

gkv's Introduction

gkv

gkv is a geo-replicated eventually-consistent KV store built on FoundationDB. The core mechanism is active anti-entropy through Merkle trees.

The engine (gkvmesh) is written in Scala, and exposes a simple HTTP API for clients to use.

Architecture

  • Cluster: A gkv cluster is composed of a FoundationDB cluster and multiple gkvmesh instances. Each cluster has a full copy of data.
  • Mesh: A mesh is a group of multiple clusters. They gossip with each other to keep their data eventually consistent.

API

  • /data/get

Get the value of a key.

Usage: curl localhost:6300/data/get -d '{"key":"base64-encoded-key"}'

  • /data/set

Set the value of a key, or delete a key.

Usage (set): curl localhost:6300/data/set -d '{"key":"base64-encoded-key","value":"base64-encoded-value"}'

Usage (delete): curl localhost:6300/data/set -d '{"key":"base64-encoded-key","delete":true}'

  • /data/list

List key-value pairs in a range.

Usage: curl localhost:6300/data/list -d '{"start":"base64-encoded-start-key","end":"base64-encoded-end-key","limit":10}'

  • /control/aae/pull

Manually initiate an AAE (Active Anti-Entropy) pull. Usually used to bootstrap a new node.

Usage: curl -i localhost:6302/control/aae/pull -d '{"peer":"localhost:6201"}'

gkv's People

Contributors

losfair avatar

Stargazers

 avatar Andrejs Agejevs avatar Jaivarsan avatar  avatar Felipe Menegazzi 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.