News for hackers. Stuff that matters.
Re:Pastry: A distributed hash table in Go by paddyforan on Saturday October 20, 2012 @03:15AM (#4676562)
Please do let me know how this works out for you.

And I mention it in the blog post, and I mention it in the README, but I feel I should reinforce this:

This. Is. Alpha. Please don't use it in your mission-critical code.

I'd like to run a lot more tests on it. I'd like other people to run tests on it and let me know what they think. This is my first time writing anything this complex, and I want any and all feedback I can get on it.

Thanks!

Re:Pastry: A distributed hash table in Go by JulianMorrison on Saturday October 20, 2012 @04:35AM (#4676650)
How are you planning to implement pub-sub on top of it?
Re:Pastry: A distributed hash table in Go by paddyforan on Saturday October 20, 2012 @04:52AM (#4676670)
I'll be using the Scribe algorithm, as defined by the authors of the Pastry algorithm: http://en.wikipedia.org/wiki/Pastry_(DHT)#SCRIBE

The basic gist of it is similar to a phone tree. You route a message subscribing to a topic, basing the message ID on the topic name. As the message routes through the network, each Node stores the information about who is subscribed. When an event happens, that information is passed back through to the subscribed nodes.

I may have to tweak it a little, as I did Pastry, but I'm pretty sure the same basic concept will work for my needs.

Re:Pastry: A distributed hash table in Go by drivebyacct2 on Saturday October 20, 2012 @03:22AM (#4676565)
Mission critical implies far more importance than this project deserves.

Spotted a typo on the line "OnNodeExit", "Applcation".

Re:Pastry: A distributed hash table in Go by paddyforan on Saturday October 20, 2012 @03:28AM (#4676571)
Thanks! Fixed the typo.

And I guess my point is, I've tested this. I can't seem to find any problems with it. But I do not have unit tests for the larger routing algorithm, only the routing within a Node. In my tests, it always worked out, but I would put my confidence in this at about 70%.

In essence, I was ready to release this software to the Go community, have them kick it around a bit, see what came of it. I was not expecting a HN frontpage. So now I'm slightly panicked, and hoping to God that people don't think I'm an idiot for the rest of forever.