2 ms·
A message based p2p library. https://github.com/brendoncarroll/go-p2p https://github.com/brendoncarroll/go-p2p There is a single abstraction (the Swarm) which
by brendoncarroll 5y ago
A message based p2p library.
https://github.com/brendoncarroll/go-p2p https://github.com/brendoncarroll/go-p2p
There is a single abstraction (the Swarm) which is capable of modeling communication, NAT, and identity. And you can layer them (Swarms) to provide whatever functionality you need. For the most part, you communicate using tell or ask methods.
The big name in this space is lib-p2p. It doesn’t have a UDP transport (it exists but is incomplete), and the examples were focused on manipulating streams so it wasn’t clear how to model message based communication from reading the docs. You also have to buy into many other abstractions when you use it e.g. multiaddrs.