netflux icon indicating copy to clipboard operation
netflux copied to clipboard

Consider an attribute of Peer to show which peers in a channel have closer network distance

Open cjdelisle opened this issue 8 years ago • 2 comments

In order for the realtime engine (e.g. ChainPad) to build the document, it needs to access the history of the channel to which it has joined. Since every ChainPad instance has the history, it is ok for us to alter ChainPad so that it can ask a peer for the history and then provide that history. However in order to ensure that peers with good network latency are selected, there should be an attribute which indicates how preferable a peer is for communicating with, this way the peers to ask can be selected from the peers in the channel.

cjdelisle avatar Jan 25 '16 08:01 cjdelisle

consider perhaps peer.linkQuality = <integer 0 to 0x8fffffff> (largest signed 32 bit integer) where higher value is better.

cjdelisle avatar Jan 25 '16 08:01 cjdelisle

Interesting remark, thanks. I'll add it.

kalitine avatar Jan 25 '16 09:01 kalitine