#chord #protocols #warnings

chord-rs

A Rust implementation of the Chord protocol

1 unstable release

0.1.0 May 11, 2023

#41 in #chord

MIT license

5KB
65 lines

Chord

Chord protocol implementation in Rust.

Build Status

This repo contains a Rust implementation of the Chord protocol.

Warning

This is a work in progress and is not yet ready for production use.

Current Status

  • Basic Chord protocol
  • gRPC API for between nodes communication
  • Node leaving the ring. Right now if a node leaves the ring, the ring will be broken.
  • Data storage

Usage

Build

make build

Run

make run

If you want to run the node with different configuration, you can use the following command:

cargo run -p server -- --help

You can also run multiple nodes at the same time:

make run-local

It will run 10 nodes on the following ports 50050 to 50060. You can find logs from all nodes in nohup.out file.

CLI

There is also a CLI tool which can be used to interact with the nodes. You can see the list of commands by running:

cargo run -p tamto-chord -- --help

Dependencies

~0–9MB
~86K SLoC