Code Monkey home page Code Monkey logo

simple-kv's Introduction

Simple-KV

Use raft-rs, grpc-rs to build a simple HA key-value service

  • Provide basic get, set, delete, and scan operations √
  • The data saved in one node must be persistent in the disk (restart can't lose data)
  • Need to show - Kill minority node, the service can still work √
  • Need to show - Kill majority node, the service can't work √
  • Need to support add/remove node dynamically
  • [Plus Point] Use a benchmark tool to find some performance problems.

System Architecture[Not implemented]

SystemArchitecture.png

  • WAL Method

    Apply log的时候先写日志,再定时刷盘

  • Follower Read

    Client get从Follower读取数据

TIMELINE

TIME TODO CHECK
12.25 整体项目思考
12.26 学习rust和grpc-rs和raft-rs,编写grpc proto
12.27 编写client和server
12.28 编写client和server,编写WAL和Follower read
12.29 Leader & Do benchmark
12.30 Deadline

RUN

  • git checkout v2
  • cargo run --manifest-path Cargo.toml --bin server
  • cargo run --manifest-path Cargo.toml --bin client

introduce

One Server with three raft backend. TODO: each raft backend has it's own server

one server per raft backend. TODO: persist raft node's data

simple-kv's People

Contributors

banbudu0 avatar

Stargazers

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