+ All Categories
Home > Technology > NoSQL in der Cloud - Why?

NoSQL in der Cloud - Why?

Date post: 27-Jan-2015
Category:
Upload: adesso-ag
View: 109 times
Download: 2 times
Share this document with a friend
Description:
This presentation shows why NoSQL is a good fit for Cloud applications.
Popular Tags:
27
NoSQL in der Cloud – Why? Andreas Hartmann 19.11.2012
Transcript
Page 1: NoSQL in der Cloud -  Why?

NoSQL in der Cloud – Why?

Andreas Hartmann

19.11.2012

Page 2: NoSQL in der Cloud -  Why?

19.11.2012 NoSQL in der Cloud – Why?2

Quelle: http://res.sys-con.com/story/mar12/2188748/ CloudBigData_0_0.jpg

Page 3: NoSQL in der Cloud -  Why?

Why Cloud???

19.11.2012 NoSQL in der Cloud – Why?3

Page 4: NoSQL in der Cloud -  Why?

What does Big Data mean???

19.11.2012 NoSQL in der Cloud – Why?4

Page 5: NoSQL in der Cloud -  Why?

Why NoSQL???

BigData Connectivity P2P Knowledge

Concurrencey Diversity Cloud

19.11.2012 NoSQL in der Cloud – Why?5

Page 6: NoSQL in der Cloud -  Why?

What is the Problem with Big Data

19.11.2012 NoSQL in der Cloud – Why?6

► Caching

► Master/Slave

► Master/Master

► Cluster

► Table Partitioning

► Federated Tables

► Sharding

Quelle: http://www.codefutures.com/database-sharding/

Page 7: NoSQL in der Cloud -  Why?

NoSQL Basics – CAP Theorem

19.11.2012 NoSQL in der Cloud – Why?7

Consistency

Each client always has the same view of the data

Availability

All clients can always read and write

Partition tolerance

The System continues to operate despite arbitrary message loss

Quelle: http://blog.nahurst.com/visual-guide-to-nosql-syste ms

Page 8: NoSQL in der Cloud -  Why?

ACID-BASE

ACID

Atomicity

► all or nothing rule

Consistency

► any transaction the database performs will take it from one consistent state to another

Isolation

► no transaction should be able to interfere with another transaction at all

Durability

► once a transaction has been committed, it will remain so

BASE

Basically Available

► the system does guarantee availability, in terms of the CAP theorem

Soft-State

► the state of the system may change over time, even without input

Eventual Consistency

► the system will become consistent over time, given that the system doesn't receive input during that time

19.11.2012 NoSQL in der Cloud – Why?8

Quelle: http://en.wikipedia.org/wiki/ACID

Quelle: http://stackoverflow.com/questions/3342497/explanat ion-of-base-terminology

Page 9: NoSQL in der Cloud -  Why?

Things to think about!!!

19.11.2012 NoSQL in der Cloud – Why?9

► Scalability

► High Availability

► Caching

► Architecture

► Load Balancing

► Queuing

► Data Handling

► Federation

► Serving Files

► Storing Files

Quelle: http://cloudscaling.com/blog/cloud-computing/up-out -centralized-and-decentralized

Page 10: NoSQL in der Cloud -  Why?

Open Your Mind;-)

19.11.2012 NoSQL in der Cloud – Why?10

Quelle: http://images.tribe.net/tribe/upload/photo/ deb/074/deb074db-81fc-4b8a-bfbd-b18b922885cb

Page 11: NoSQL in der Cloud -  Why?

NoSQL Tagcloud

19.11.2012 NoSQL in der Cloud – Why?11

Page 12: NoSQL in der Cloud -  Why?

Datastore Types

19.11.2012 NoSQL in der Cloud – Why?12

Key/Value Store

Document Store

Extensible Record

Stores (Wide-column Stores)

Graph Database

Page 13: NoSQL in der Cloud -  Why?

What ist means

Query

Data is easily and quickly read/storedusing primary key

Denormalize data for commonly usedqueries

► Shema Design is optimized for the mostcommon Use-Cases

Developer

More technologies to have fun with

Broader choice of persistence stores

Probably Cross Store Persistence

► Store name, firstname etc in RDBMS

► Store followers in Graph database

► Store Content in RDBMS

► Store User Generated Content in Document database

19.11.2012 NoSQL in der Cloud – Why?13

Quelle: http://www.slideshare.net/adessoAG/no-sql-9355109

Page 14: NoSQL in der Cloud -  Why?

Wich is the right one

19.11.2012 NoSQL in der Cloud – Why?14

Quelle: http://www.slideshare.net/emileifrem/nosql-east-a-nosql-overview-and-the-benefits-of-graph-databases

Page 15: NoSQL in der Cloud -  Why?

Wich is the right one

19.11.2012 NoSQL in der Cloud – Why?15

Quelle: http://martinfowler.com/articles/nosql-intro.pdf

Page 16: NoSQL in der Cloud -  Why?

Architecture Case Study

19.11.2012 NoSQL in der Cloud – Why?16

Business Critical Data Read/Write

Data should be consistentRarley Changed Data /

Various Reads / Slight inconsistencies are OK

Page 17: NoSQL in der Cloud -  Why?

mongoDB as an Example

19.11.2012 NoSQL in der Cloud – Why?17

Document-oriented &

schemaless

JSON like documents

written in C++Open Source with a AGPL-Licence v.3.0

Page 18: NoSQL in der Cloud -  Why?

mongoDB in Detail

19.11.2012 NoSQL in der Cloud – Why?18

MongoDB Basics

Security and Authentication – Indexes

Replication – Scaling

Map/Reduce – Binary Data Sets

Monitoring – Backup

Schema Design – Connectivity – Ecosystem

Page 19: NoSQL in der Cloud -  Why?

mongoDB – Replication

Replica Sets

► A replica set consists of two or more nodes that are copies of each other

► The replica set automatically selects a primary (master).

► Drivers can automatically detect when a replica set primary changes and will begin sending writes to the new primary

Why Replica Sets

► Automated Failover

► Read Scaling (slaveOkay Method)

► Maintenance

► Disaster Recovery

19.11.2012 NoSQL in der Cloud – Why?19

Quelle: http://www.mongodb.org/display/DOCS/Replica+Sets

Page 20: NoSQL in der Cloud -  Why?

mongoDB – Scaling

Sharding

► Horizontal scaling across multiple nodes

Sharding Key

19.11.2012 NoSQL in der Cloud – Why?20

Page 21: NoSQL in der Cloud -  Why?

mongoDB – Scaling

Replica Sets comes together with Sharding

19.11.2012 NoSQL in der Cloud – Why?21

Quelle: http://www.mongodb.org/display/DOCS/Sharding+Introd uction

Page 22: NoSQL in der Cloud -  Why?

M A P

mongoDB – Map/Reduce

Parallel processing huge datasets on distributed sy stems

19.11.2012 NoSQL in der Cloud – Why?22

Data Data DataData

R E D U C E

Page 23: NoSQL in der Cloud -  Why?

mongoDB – Map/Reduce

Map

► XXX

19.11.2012 NoSQL in der Cloud – Why?23

Map Reduce Execute

var map = function() {

emit( this.author, { pages: this.pages } );

};

Page 24: NoSQL in der Cloud -  Why?

mongoDB – Map/Reduce

Reduce

19.11.2012 NoSQL in der Cloud – Why?24

var reduce = function( key, values ) {var sum = 0;

values.forEach( function( doc ) {sum += doc.pages;

} );

return { "pages": sum };};

Map Reduce Execute

Page 25: NoSQL in der Cloud -  Why?

mongoDB – Map/Reduce

Execute

19.11.2012 NoSQL in der Cloud – Why?25

db.bookstore.mapReduce( map, reduce,{ out: "myresultcollection" } );

{"result" : "myresultcollection","timeMillis" : 156,"counts" : {

"input" : 7,"emit" : 7,"reduce" : 3,"output" : 3

},"ok" : 1,

}

Map Reduce Execute

Page 26: NoSQL in der Cloud -  Why?

19.11.2012 NoSQL in der Cloud – Why?26

Quelle: http://res.sys-con.com/story/mar12/2188748/ CloudBigData_0_0.jpgQuelle: http://www.techweekeurope.co.uk/wp-content/ uploads/2011/03/Big-Data.jpg

Page 27: NoSQL in der Cloud -  Why?

Thank you for your attention!

[email protected]


Recommended