nosql overview

Post on 21-Jun-2015

516 Views

Category:

Technology

0 Downloads

Preview:

Click to see full reader

DESCRIPTION

MongoDB vs. Riak

TRANSCRIPT

Kaifeng Zhang & Yuheng Wang

Agenda

Why NoSQL? NoSQL Overview MongoDB vs. Riak

5/18/2012 2

NoSQL History

1998, Carlo Strozzi, “NoREL” 2009, Eric Evans, “NoSQL” 2011, UnQL, superset of SQL

No SQL vs. Not Only SQL

5/18/2012 3

Why NoSQL Happened

Web scale Data changes over time NoSQL becomes commodity

5/18/2012 4

NoSQL Features

Not require fixed table schema Not use SQL as query language Usually avoid join operation Not give full ACID guarantees Distributed, fault-tolerant architecture

5/18/2012 5

Scenarios for NoSQL

Performance and real-time nature over consistency

High scalability Store and retrieve huge quantity of data Not require a relational model

5/18/2012 6

NoSQL Taxonomy

Document StoreCollections (Table)Document (Row)

Key-value Store Graph Column Family

5/18/2012 7

Some Concepts

CAP Theorem Distribution Model ACID Eventual Consistency

5/18/2012 8

5/18/2012 9

5/18/2012 10

5/18/2012 11

Setup

All major OS Stable and

experimental

• No official support of Windows

• Robust support of Linux

• Nature cluster

Mongo Riak

5/18/2012 13

Tooling

• Cmd line tool

• Web interface

• 3rd party solutions

• Poor

Mongo Riak

5/18/2012 14

Driver Support

• C/C++, Java,

• Erlang

• PHP, Python, Ruby

• Perl, Scala, .NET

• Node.js, JS

• C/C++, Java

• Erlang

• PHP, Python, Ruby

Mongo Riak

5/18/2012 15

CRUD(.NET)

• Excellent drivers support

• Straightforward

• Corrugated Iron

• RESTful API

Mongo Riak

5/18/2012 16

Query Complexity

• Secondary index

• MapReduce in JavaScript

• Corrugated Iron query broken

• RESTful API to test

Mongo Riak

5/18/2012 17

ID Generation

• Incremental document field

• No viable solution

Mongo Riak

5/18/2012 18

top related