Zookeeper is always CP or AP in terms of CAP theorem

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Zookeeper is always CP or AP in terms of CAP theorem

Kaushal Shriyan
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
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Zookeeper is always CP or AP in terms of CAP theorem

hanm
Martin had a good blog post about this - see the ZooKeeper case study
section.
https://martin.kleppmann.com/2015/05/11/please-stop-calling-databases-cp-or-ap.html

On Mon, Jun 19, 2017 at 11:47 AM, Kaushal Shriyan <[hidden email]>
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
>



--
Cheers
Michael.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Zookeeper is always CP or AP in terms of CAP theorem

Gaurav Sharma-2
In reply to this post by Kaushal Shriyan
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 <[hidden email]>
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
>
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Zookeeper is always CP or AP in terms of CAP theorem

Abraham Fine
I'm a big fan of this post, specifically the ZooKeeper section:
https://martin.kleppmann.com/2015/05/11/please-stop-calling-databases-cp-or-ap.html

On Mon, Jun 19, 2017, at 12:02, Gaurav Sharma wrote:

> 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
> <[hidden email]>
> 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
> >
Loading...