NOSQL

in Mid 80s, rise of relational : persistence , sql transactions, reporting

sql problem: assemble lots of table into one logic entity, impedance mismatch, 

in Mid 90s, rise of object database, argue endlessly

Integration database, relational dominance

web sites :

1 lots of traffic , scale things up, you bug bigger box

2 lots of small boxes, sql doesn't not work well around boxes.

so,

google --> bigtable

amazon --> dynamo

"NOSQL"

mongodb, couchdb,cassandra,hypetable,dynomite,hbase,

characteristics of nosql

non-relational, cluster-friendly, schema-less, open-source, 21st century web

data model vs relational model

Column-familydocumentkey-valuegraph
cassandramongodbredisneo4j
hbasecouchdbriak 
 ravendbproject voldemort 

 

 

 

  1. graph
  2. aggregate-oriented (domain-driven design: eric evans)
  • key-value: hashmap persistent on disk : customer_id: 7231 metadata value= aggregate
  • document : no schema , json like, transparent

  anOrder["price"] * anOrder["quantity"] : implicit schema, assume "price" and "quantity", schema less, uhm, document=aggregate

 

  • column-family

  row-key +column family name+column key+column value

however, nothing is perfert.

rdbms == acid

nosql  == base 

graph : acid

you cann't afford to hold transaction that long

version stamp!!! offline lock: transaction boundary

consistency : 

  • logical
  • replication

CAP:

Partition + Consistency

Partition + Availability

Consistency <==spectrum==> Availability

Consistency <== ==> Response time

 

driver to nosql:

large scale data , easier development

Integation database === > application database (web service)

applications control access to data. ==>nosql, not integration into database!!!

 

for data warehouse

agile analytics 

 

Ployglot persistence: relational still play, choose appropriate db for your biz.

rapid response, data intensive

 

 

 

 

 

 

 

 

 

 

 

 

转载于:https://www.cnblogs.com/grep/p/3346601.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值