talek icon indicating copy to clipboard operation
talek copied to clipboard

generalized followers

Open willscott opened this issue 8 years ago • 3 comments

currently server/centralized.go expects act as either a leader with a single follower, or as a follower. We should at least generalize to support n followers for single leader.

willscott avatar Jan 08 '17 13:01 willscott

Right now it's set up for chaining. e.g. leader -> follower1 -> follower2 -> etc. any server can choose to terminate the chain.

Is that not sufficient?

ryscheng avatar Jan 08 '17 13:01 ryscheng

it seems like conceptually it only needs to be

leader -> follower1 leader -> follower2 ...

that makes addition / replacement of followers easier since only one other node needs to change accounting (though it adds load to the leader, i suppose)

willscott avatar Jan 08 '17 13:01 willscott

Sure, conceptually it's essentially a frontend gateway (that can coexist with any one of the servers). So the leader = follower + frontendGateway

ryscheng avatar Feb 11 '17 22:02 ryscheng