Giter Site home page Giter Site logo

chdb's Introduction

chdb is a simple distributed document storage system. It was written as a toy to play with Cloud Haskell. The system provides methods to store documents, and handles conflicts through simple multi version concurrency control. The goal is to provide high availability, concurrency, and fault tolerance.

Master

There is a single master server. The master spawns all slaves and directs client messages to a slave capable of handling the client's request. The master is also responsible for directing replication of documents.

Slaves

The slave processes handle all the data, they are distributed on nodes throughout the network. Clients communicate directly with the slaves, after an initial exchange with the server.

Startup

The master starts, and spawns all the slave nodes and processes. When the slaves start they send a message to the master with a list of the DocumentIds (and the versions of those Documents) that the slave has. The server builds and maintains a mapping of DocumentIds (and versions) to slave Pids (OR SendPorts!). The master accepts the first response for a given DocumentId, until a newer version of that document is discovered. If a newer version of a Document is discovered, The new version is made the working copy and the old version is the backup. The Document is queued for replication.

chdb's People

Contributors

wfvining 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.