mangei/onion-routing

loading balancing the nodes

Closed this issue · 3 comments

implement some sort of load balancing for the chain-nodes. it should be as "fair" as possible

@Budddy you said this already works, right?

i still need to change it to a queue at the moment i use timestamps
my approach is a that i take the node that hasn't been used for the longest time
if i have 6 nodes n1 n2 n3 n4 n5 n6
the chains would look like:

  1. n1 n2 n3
  2. n4 n5 n6
  3. n1 n2 n3
  4. n4 n5 n6
    but it only works if i have 6 nodes or more

@Budddy implemented this

I'll test it on aws on the weekend