#cli #flare #dht #flare-cli

bin+lib flare-cli

CLI to run/interact with flare-dht

5 releases

0.1.17 Jan 13, 2025
0.1.15 Jan 13, 2025
0.1.14 Jan 6, 2025
0.1.13 Jan 6, 2025
0.1.12 Dec 10, 2024

#49 in #dht

Download history 14/week @ 2024-12-14 236/week @ 2025-01-04 223/week @ 2025-01-11 25/week @ 2025-01-18 7/week @ 2025-02-01 1/week @ 2025-02-08 3/week @ 2025-02-22 2/week @ 2025-03-01

553 downloads per month

Apache-2.0

165KB
3.5K SLoC

Flare DHT

The learning project to create the distributed KV database in Rust language.

This library is still in the early stage of development. No recomment for using.

// === Example

// [source, bash] // ---- // # start leader // cargo run -- -p 8001 -n 0 -l // # start other and join to leader // cargo run -- -p 8002 -n 1 --peer-addr http://127.0.0.1:8001 // cargo run -- -p 8003 -n 2 --peer-addr http://127.0.0.1:8001 // ----

TODOs

  • sharding KV store
  • Raft-based replication
  • join mechanism
  • leave mechanism
  • distributed shards
  • customizable shard interface
  • member discovery
  • shard rebalancing
  • more APIs
  • lock
  • batch (atomic?)
  • client SDK
  • transaction support
  • testing
  • Kubernetes Deployment

Dependencies

~32–45MB
~720K SLoC