HBase Tutorial: Theory and Practice of a Distributed Data Store (2)

Non-Relational Databases

They originally do not support SQL

(1).In practice, this is becoming a thin line to make the distinction.

(2).One difference is in the data model.

(3).Another difference is in the consistency model(ACID and transactions are generally sacrificed).

Consistency models and the CAP theorem

Strict: all changes to data are atomic.

Sequential: changes to data are seen in the same order as they were applied.

Causal: causally related changes are seen in the same order.

Eventual: updates propagates through the system and replicas when in steady state.

Weak: no guarantee.

Data model:

How the data is stored: key/value, semi-structured, column-oritened,…

Consistency model: This translates in how fast the system handles READS and WRITES.

Atomic read-modify-write

(1).Easy in a centralized system, difficult in a distributed one.

(2).Prevent race conditions in multi-threaded or shared-nothing designs.

(3).Can reduces client-side complexity.

(4).Support for multiple clients accessing data simultaneously.

Database Normalization

Schema design at scale

(1).A good methodology is to apply the DDI principle

      Denormalization

      Duplication

      Intelligent Key design

Denormalization

     Duplicate data in more than one table such that at READ time no further aggregation is required.

What is BigTable?

      BigTable is a distributed storage system for managing structured data designed to scale to a very large size

      BigTable is a sparse,distributed, persistent multi-dimensional sorted map

What is HBase?

      Essentially it’s an open-source version of BigTable

The most basic unit in HBase is a column

(1).Each column may have multiple versions, with each distinct value contained in a separate cell

(2).One or more columns form a row,that is addressed uniquely by a row key.

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值