Coder Social home page Coder Social logo

harshharwani / distributed-hash-table Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 1.0 352 KB

This is a peer to peer Distributed Hash Table based on the CHORD protocol. SHA-1 hash function is used for partitioning/re-partitioning, routing is ring-based and it is capable of handling Node-Joins.

Java 100.00%

distributed-hash-table's Introduction

Distributed-Hash-Table

=========================================================


  • Simple Key-Value storage based on Chord design.

  • Simplified version of Chord, covers three things:

    • ID space partitioning/re-partitioning.
    • Ring based routing
    • Node joins
  • SHA-1 hash function is used to lexically arrange nodes in a ring and find the location for a particular key to be stored.

  • Each node maintains a successor and predecessor pointer for nodes in the ring.

  • Content Provider is NoSQL storage that:

    • The first column should be named as “key”. This column is used to store all keys.
    • The first column should be named as “value”. This column is used to store all values.
  • However, Node failures, concurrent node-joins and finger tables are not implemented.

PTest

  • Inserts 50 arbitrary key-value pairs in the DHT and queries to check if they exist and returns success/failure messages.

LDump

  • When touched, this button dumps and displays all the <key, value> pairs stored in your local partition of the node.

GDump

  • When touched, this button dumps and displays all the <key, value> pairs stored in your whole DHT.

References

[1] Read about Chord here

[2] Single best resource on Android, Android dev

[3] Link to Chord repository on Github, here

distributed-hash-table's People

Contributors

harshharwani avatar

Watchers

James Cloos avatar  avatar

Forkers

hexiangtong

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.