Git Product home page Git Product logo

cpporhair / sider Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 1.0 232 KB

The goal of sider is to implement a redis-like kv store. Use nvme ssd to scale to larger capacities while maintaining speed.sider has developed its own framework called "pump" to handle asynchronous and concurrent logic. This is an implementation of c++ std::execution(p2300).

C++ 99.51% CMake 0.29% Cuda 0.20%
kv-store redis sender-reciever stdexec spdk iouring p2300

sider's Introduction

sider | 中文

The goal of sider is to build a redis-like kv store that scales using nvme ssd while maintaining similar speeds.

int
main(int argc, char **argv) {
    start_db(argc, argv)([](){
        return forever()
            >> flat_map(wait_connection)
            >> concurrent()
            >> flat_map([](int fd){
                return start_on(random_core())
                    >> until_session_closed(make_session(fd))(
                        read_cmd()
                            >> concurrent() >> pick_cmd() >> execute()
                            >> sequential() >> send_res()
                    );
            })
            >> reduce();
    });
    return 0;
}

sider has developed its own framework called "pump" to handle asynchronous and concurrent logic. This is an implementation of c++ std::execution(p2300).

  • For learn more about p2300, see here;
  • For a standard implementation of the p2300, see here.

sider uses spdk to implement kernel bypass technology, taking full advantage of nvme's concurrency to speed up io.

  • For learn more about spdk, see here;
  • In the function apply you can see how to combine asynchronous and concurrent tasks using the operators provided by pump.

sider is still in development, not yet tested or used.

  • basic std::execution framework
  • spdk-based io
  • basic kv functions (get,put,scan)
  • ycsb test and iops reaches hardware limit.
  • batch
  • io_uring-based network
  • cuda support
  • cold and hot data separation

Looking for job opportunities in c++ or database development (beijing or remote)

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.