-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
modernize #1
Comments
I would like to verify one thing. when i want to send a message to another node (that i'm not connected to) and expect an answer back, those the answer traverse back the same route it was requested from or dose the response get sent back by other peers in a always clockwise direction? |
Hello! AFIK the messages will be always routed in a clockwise manner in Chord. According to this article (Page 20), a better solution might be switching from an iterative lookup to a recursive lookup procedure. |
I know messages will be always routed in a clockwise manner in the Chord specification. a quick glance From the look of your api when i call something like it looks more like it's asking the next person on your behalf...? say that the max id is 16 and you only have the peer 0,1,2,3,4 & 15
dose 3 respond back to 2 and 2 back to 0? or do 3 really send it to 4 -> 15 and then 0? |
Well, the api like
If you use |
ok, thanks for the clarification, then my theory of it being more like a RPC call was correct... this means if the chain breaks (someone leaves) then the response would not be able to get back to the callee, but if the |
I'm not sure if it would be safer 😄. I just guess it will be better to reuse established connections, because WebRTC is too expensive on browsers. |
it would still use already established connections it would just go another route to avoid "churn" (peers that comes and goes) |
Would you be up for some several PR if i tried to modernize this a bit?
I would change stuff to newer javascript syntax such as
classes, async/await, const, let, using BigInt, import/export etc
...or is this project totally abandoned? nothing has happened in 5 years.
The text was updated successfully, but these errors were encountered: