News for hackers. Stuff that matters.
Re:Ask HN: Recommendations for Peer to Peer Frameworks? by Dowwie on Sunday April 08, 2018 @09:17AM (#16785954)
How about IPFS? OpenBazaar is an IPFS case study. They recently released a revamped v2 built with Go.
Re:Ask HN: Recommendations for Peer to Peer Frameworks? by xendipity on Sunday April 08, 2018 @10:00AM (#16786094)
Yeah, I'd look at IPFS's networking library, libp2p. It's the peer-to-peer backbone of IPFS and has a big community and active development https://libp2p.io/. It's also implemented in both go and js (as most of IPFS is)
Re:Ask HN: Recommendations for Peer to Peer Frameworks? by jjallen on Sunday April 08, 2018 @10:54AM (#16786347)
We moved away from libp2p at the project I work on because of major instability problems in browsers. Our dapp that used libp2p would crash after a few minutes and was generally not easy to use.

EDIT: I'm referring to the JS version here.

Re:Ask HN: Recommendations for Peer to Peer Frameworks? by lgierth on Sunday April 08, 2018 @02:58PM (#16787654)
Sorry to hear you had move to something else -- my guess is these crashes were from WebRTC, which isn't very performant in browsers yet. Especially with more than a handful of WebRTC connections, we've seen it crash regularly.

We've switched the default browser-to-browser transport in js-libp2p to a websockets relay recently, so you should give it another try.

Re:Ask HN: Recommendations for Peer to Peer Frameworks? by ComputerGuru on Sunday April 08, 2018 @05:21PM (#16788483)
Did you try to investigate the stack trace or file a bug upstream? No snark intended!
Re:Ask HN: Recommendations for Peer to Peer Frameworks? by jjallen on Sunday April 08, 2018 @10:17PM (#16789826)
Yes, of course, and it was WebRTC. We ended up with a better solution (encoding the metadata we were storing in IPFS in a bytes32 stored in the Ethereum blockchain).

There were extra scripts and setup. Overall moving off simplified our stack, so it was probably a good move despite libp2p's crashing.

Could be totally fixed by now for all I know.

That said, it was believed that most Protocol Labs resources were/would be devoted to Filecoin, which is probably a safe bet.

Re:Ask HN: Recommendations for Peer to Peer Frameworks? by lgierth on Monday April 09, 2018 @05:38PM (#16797231)
We have no intention of letting libp2p stagnate - blog post with announcements coming soon!
Re:Ask HN: Recommendations for Peer to Peer Frameworks? by eeZah7Ux on Sunday April 08, 2018 @10:20AM (#16786173)
The wire protocol is practically almost not documented.
Re:Ask HN: Recommendations for Peer to Peer Frameworks? by zilchers on Sunday April 08, 2018 @09:39AM (#16786028)
That's interesting, I hadn't thought about IPFS - it doesn't really have a strong message passing semantic so much as it has good replication properties, but maybe you could build a distributed log on top of it.
Re:Ask HN: Recommendations for Peer to Peer Frameworks? by jjallen on Sunday April 08, 2018 @10:56AM (#16786368)
By good "replication properties" you mean "having to run many scripts/nodes yourself" to get widely replicated that is true.

We found IPFS in general to be awesome software that just wasn't quite ready for production.

There's IPFS-cluster[0] but that's still in capital-letters ALPHA.

https://github.com/ipfs/ipfs-cluster

Re:Ask HN: Recommendations for Peer to Peer Frameworks? by jjallen on Sunday April 08, 2018 @10:59AM (#16786387)
They are working on this: https://github.com/orbitdb/ipfs-log
Re:Ask HN: Recommendations for Peer to Peer Frameworks? by jjallen on Sunday April 08, 2018 @10:58AM (#16786379)
I'd love to read technical details about what they built with it and how they manage replication. Will look for some and repost if I find.
Re:Ask HN: Recommendations for Peer to Peer Frameworks? by lgierth on Sunday April 08, 2018 @02:56PM (#16787643)
Look at the IPFS Pubsub and Y.js integration, that e.g. PeerPad uses to build distributed text editing: https://github.com/ipfs-shipyard/peer-pad/blob/master/docs/A...