For typical Zk use-cases, Consistency is non-negotiable; so CP. That said, typically A is not black/white even if you are working with a CP system, you can get a degree of availability. For prod use-cases, instead of a 3 node cluster, try to setup a 5 node cluster and write some simple scripts/automation to heal the cluster on failures (read the admin docs) - https://zookeeper.apache.org/doc/r3.4.10/zookeeperAdmin.html#sc_supervision You can scale reads via observer nodes but you cannot (and should not) accept writes without a quorum.
On Mon, Jun 19, 2017 at 11:47 AM, Kaushal Shriyan <kaushalshri...@gmail.com> wrote: > Hi, > > I am reading the CAP theorem and zookeeper either satisfies CP or AP. I am > not sure how do we take care of Availability property or Consistency > property. Any examples to understand it better. Please help me understand > if i am completely wrong? > > Thanks in Advance. > > Regards, > > Kaushal >