cpporhair / sider

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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)

About

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


Languages

Language:C++ 99.5%Language:CMake 0.3%Language:Cuda 0.2%