Code Monkey home page Code Monkey logo

deltadb's Introduction

deltadb

A proof-of-concept time-series database

delta

What is it ?

deltadb is a proof-of-concept document store. Deltadb maintains history of every action which mutates the state of the database. Deltadb allows for examining the database at a previous state or rolling back to a previous state in a fashion similar to a git repository. Deltadb maintains the concept of a single-branch immutable history tree where even rollbacks themselves are nodes in this tree. Deltadb also experiments with the idea of storing messages and authors for each mutable change in the database in order to provide more insight into how and why a particular operation in the past was performed.

Why is it ?

I thought it would be interesting to build a database wherein saving past state was not optional, and was implemented at the database level rather than the application level. This could be a useful safety net for building systems which have a requirement of maintaining an accurate history of certain changes. Furthermore the concept of messages, and authors might make it easier to pin down which particular system or user was responsible for making any one particular change. For example, if you found a problematic write in the database you could see that the author was some particular service in your application stack.

Status

This is first and foremost a learning project for me to learn more about databases and Go. You should not use it for anything important.

Usage

  1. Install go
  2. cd $GOPATH/src && git clone https://github.com/prettymuchbryce/deltadb && go get ./...
  3. Configure the locations directory in deltad.conf (This is where the data will live)
  4. make run
  5. (in a new terminal) make cli
  6. in the cli connect;
  7. Type help; to see a list of all commands

TODO

  • Scaling past 1 core
  • Scaling past 1 machine
  • Implementing locking for concurrency
  • Reducing or eliminating the memory footprint of the appendix file (bloom filter or b-tree)
  • Users / Auth
  • Encrypted data
  • go client library
  • Per-document and per-collection rollbacks

deltadb's People

Contributors

prettymuchbryce avatar

Stargazers

 avatar  avatar

Watchers

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