Coder Social home page Coder Social logo

solidstatedb / silicondb Goto Github PK

View Code? Open in Web Editor NEW
10.0 2.0 1.0 14.28 MB

A concurrent key-value store, column-oriented database and more.

Home Page: https://solidstatedb.github.io/silicondb/

License: MIT License

CMake 3.23% C++ 96.77%
modern-databases replication key-value-store concurrency threadsafe

silicondb's Introduction

silicondb

A concurrent key value store, column oriented database and more.

silicondb

Build Status Doxygen docs Publishing Status

Overview

silicondb was a project created to understand how modern NoSQL scalable distributed databases work. In particular, the author intends to learn how to implement lock-free data structures, log-structured merge trees, column-oriented data storage, Merkle trees and data replication at scale.

This project doesn't aim to compete with existing NoSQL databases and does not provide any novel feature addressing a particular pain point. However, we plan to provide implementations of wait-free simulated lock-free data structures. (See references) This project aims to be a scalable, robust alternative to modern databases with production-level code.

silicondb prioritizes efficiency on SSDs. Hence we focus on log-structured merge trees as the driving data-storage data structure instead of b-trees.

Apart from API Documentation, we describe the implementation of certain aspects of silicondb in the Wiki.

๐Ÿ’ป Storage Engine modules

  • A concurrent in memory map implemented as a hashtable.
  • A lock-free variant of the map mentioned above.
  • A wait-free simulation of the lock-free map.
  • A lock-free concurrent SSTable simulated in a wait-free manner.
  • Compaction operations on SSTable.
  • Column oriented storage support. (Needs further elaboration)
  • Content correctness verification and replication using merkle trees for SSTable and Column oriented storage.
  • Message sequencing with merkle trees.

๐Ÿ‚ Features

  • Partial implementation of the Redis protocol:
    • Key, Value retreival
    • Key Ranged operations
  • REST API server for accessing data.
  • CAP compliant.

๐Ÿ—๏ธ Build Instructions

Pre-requisites

  • gcc-9.3+
  • cmake
git clone [email protected]:arindas/silicondb.git
cd silicondb
cmake -S . -B build/

This produces a binary build/silicondb which is the silicondb daemon server.

๐Ÿงช Testing

cd build && ctest

This should run all tests.

License

silicondb is licensed under the MIT License See LICENSE for the full license text.

FOSSA Status

๐Ÿ“– References

  • [Book] C++ Concurrency in Action - Anthony Williams - Manning Publications. ISBN: 978-1-933-98877-1
  • [Book] Designing Data Intensive Applications - Martin Kleppmann - Oreilly. ISBN: 978-1-449-37332-0
  • [Paper] A Practical Wait-Free Simulation for Lock-Free Data Structures http://dx.doi.org/10.1145/2555243.2555261

silicondb's People

Contributors

arindas avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

fossabot

silicondb's Issues

Create a basic online password manager once the Bitcask paper is implemented.

Features requested:

  • Key / Value password storage, both keys and passwords are encrypted with a master password
  • JWT based authenticated REST server with endpoints for storing and retrieving password
  • React frontend preferably hosted on GitHub pages in a separate repo. The frontend should be able to specify the IP of the password manager server

Add a contains() method to silicondb::map

Add a new method to silicondb::map :

// map::contains(): returns true if the map contains a value mapped to the given key, false otherwise.
template <typename Key, typename Value, typename Hash = std::hash<Key>>
bool silicondb::map::contains(Key const& key) { ... }

The implementation will require adding a contains() method for map::bucket. We simply need to check whether, in the bucket mapped to the hash, there is an entry with the given key or not. (Hint: use find_entry_for)

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.