Coder Social home page Coder Social logo

decanus / bureka Goto Github PK

View Code? Open in Web Editor NEW
12.0 3.0 4.0 148 KB

Pastry DHT implementation with a standalone libp2p compatible node

Home Page: https://pkg.go.dev/github.com/decanus/bureka

License: MIT License

Go 99.34% Makefile 0.66%
pastry-dht pastry dht distributed-hash-table libp2p

bureka's Introduction

Hi there ๐Ÿ‘‹

  • ๐Ÿ’ฌ Ask me about anything about computer stuff.
  • ๐Ÿ“ซ You can reach me on my website.

bureka's People

Contributors

decanus avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

bureka's Issues

Simulation-ability

Problem

The current code is closely bound to libp2p, this makes it hard to test without libp2p, makes it hard to simulate etc.

Solution

Abstract away IO, eg libp2p making the core of the algorithm (DHT) use plugable interfaces, these can wrap around various transports.

Notes

proximity metric

The NeighborhoodSet stores the closest nodes based on a specific proximity metric, we currently do not have this so the NeighborhoodSet stores all nodes. this should change.

Set Size

We probably need to be able to limit the set size, and only add an element if it is in the range. Pop out the other.

Remove Send function for Channel

Replace the send function with a channel that takes in messages and disseminates them to the node that will send them. This will probably clean up a good chunk of the code.

Close function

We need a close function on the DHT that sends a message to its neighbours that the node is leaving.

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.