Raynos / peer-nodes

A replicated list of peers
MIT License
3 stars 0 forks source link

Performance, API and reliability #3

Closed Raynos closed 10 years ago

Raynos commented 11 years ago

/cc @dominictarr @juliangruber @substack

To build p2p browser apps I need a way to bootstrap a connection into the network. To do this I need a list of peers I can connect to so that I can get more information.

This is fundamentally important as I want a simple API I can build implementations of topologies and generally build all my higher level p2p libraries around.

If we can get this piece to be clean or at least have a well defined interface we can build higher level abstractions confirming to that interface.

Every p2p abstraction will need a bootstrapping list.

This current implementation is slow and unreliable but works barely.

Raynos commented 11 years ago

Feel free to /cc in anyone who would have a good opinion about this.

juliangruber commented 11 years ago

regarding the API I'd just rename the interval option to heartbeat or something like that. the rest looks good.

the list can be an r-array or crdt and as you said initially you just need someone to start replicating with.

measuring presence: with heartbeats and sending messages redundantly or retrying on failure things should work well.

Raynos commented 10 years ago

This is deprecated.

I'm way out of the loop for modular p2p. Other solutions are probably better.

dominictarr commented 10 years ago

I don't think this is something you can solve in general, instead target a particular pattern that helps you build a class of applications, like a DHT or something.