Skip to content

Instantly share code, notes, and snippets.

View davalapar's full-sized avatar
🦁
rawr

@davalapar davalapar

🦁
rawr
View GitHub Profile
@davalapar
davalapar / Latency.md
Last active July 26, 2018 20:15
Latency.md

https://en.wikipedia.org/wiki/Dijkstra%27s_algorithm

Dijkstra's algo can be used for path-finding in a p2p network, which comes handy when relaying information as a unicast (between 2 peers) or multicast (between 3 peers). Instead of relying on the very unreliable geographical data (lat/long) their devices can provide, their network latency values can used instead.

Requirements:

  1. Clients should determine the latency of their direct peers periodically.
  2. Clients should be able to relay the messages in a forward and backward manner
  3. Client should be able to group the messages
  4. Encoding of messages
@davalapar
davalapar / Interface.md
Last active August 17, 2018 18:12
Interface.md