Giter Club home page Giter Club logo

microkv's Introduction

MicroKV

MicroKV is a tiny kv engine basd on LSM architecture.

build

The lib is built using cmake. You can run run.sh to build this repo on Linux.

chmod +x ./run.sh
./run.sh

feature

  • Allocator
  • Memory Pool
  • MemTable
  • SkipList
  • Cache
  • SSTable
  • Bloom Filter
  • FileWriter / FileReader

architecture

The storage system can be divided into following parts from top to down:

Cache

When searching for a value, it will find in cache first. The cache has multiple partitions, each of which can set different cache policies. Now it support LRU policy.

MemTable

If not found in cache, it will search in MemTable. MemTable is based on SkipList. So the time complexity of query, insert and delete operation is $O(logn)$.

Allocator

The allocator is optimized for small memory allocation. It will request a block of memory in advance and organize it as blocks of different size. When allocating, it will chose a minimum block that can hold and allocate. For more detail, see

SSTable

The data will be stored in SSTable format on disk, which is friendly for searching. The detailed SSTable format is in:

use

TODO

microkv's People

Contributors

blacknickwield avatar

Stargazers

kongwang avatar

Watchers

 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.