HBase on CAP

Source: Internet
Author: User

With respect to caps, HBase is decidedly CP. HBase makes strong consistency guarantees. If a client succeeds in writing a value, and other clients would receive the updated value on the next request.

In HBase, data was only served by one region server (even if it resides on multiple data nodes). If region server dies, clients need to wait for a long time because the fact of the region reassignment and log replay.

HBase isn ' t designed that multiple region servers can simultaneously serve the same region, because this would be difficul T or impossible to achieve otherwise features:single-row put atomicity, Atomic check-and-set operations, Atomic increment Operations, etc. That was only possible if you know for sure exactly one machine was in control of the row.

HBase does trade some availability to achieve a stronger level of consistency.

Partition tolerance in caps, in short, are the ability of a system to survive despite message loss (due to server failure, Network problem, etc.). HBase does this is course, a server failure or message loss does not damage the database. When that's happens, we give up availability or give up consistency. In HBase's case we choose consistency, so we had to give up some availability.


HBase on CAP

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.