Hi Marek
Raft is a leader-based replication protocol, so yes, sending all
writes to a single leader is a fundamental property of the algorithm.
There are other replication protocols that are for example
multi-master, and they would then be quite different.
Note that Raft could still be used in an implementation that spans
multiple data centers or continents even, and allows for multiple
writes. For example, in MongoDB a cluster is composed of multiple
shards. Each shard can be in a different location, or alternatively
each shard can be configured (with priorities, this is outside of the
pure Raft protocol) to elect a leader in a specifc data center (as
much as possible). Within each shard, high availability is provided by
a leader-based replication protocol similar to Raft. But taking the
cluster as a whole, it is possible to configure individual shards so
that it is always possible for an application to write to some shard,
whose primary is close to the client (e.g. on the same continent).
So in summary: writing to the nearest node may be a property of your
replication algorithm, but may also be provided by other means.
henrik
> --
> You received this message because you are subscribed to the Google Groups
> "raft-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
raft-dev+u...@googlegroups.com.
> For more options, visit
https://groups.google.com/d/optout.
--
henri...@avoinelama.fi
+358-40-5697354 skype: henrik.ingo irc: hingo
www.openlife.cc
My LinkedIn profile:
http://fi.linkedin.com/pub/henrik-ingo/3/232/8a7