chord-rs

Crates.iochord-rs
lib.rschord-rs
version0.1.0
sourcesrc
created_at2023-05-11 10:39:00.807572
updated_at2023-05-11 10:39:00.807572
descriptionA Rust implementation of the Chord protocol
homepage
repositoryhttps://github.com/tamto-labs/server
max_upload_size
id861975
size4,766
Kamil CzerwiƄski (kamilczerw)

documentation

README

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
Commit count: 40

cargo fmt