tdwi_dw2014_sqlnosql_dbaas

11

Click here to load reader

Upload: romeo-kienzler

Post on 02-Jul-2015

759 views

Category:

Internet


0 download

TRANSCRIPT

Page 1: TDWI_DW2014_SQLNoSQL_DBAAS

© 2013 IBM Corporation

The Data Warehouse Institute DW Conference 2014Zurich – 17/18.11.14

SQL and NoSQL Databases in the cloud

Romeo Kienzler – IBM Innovation Center Zurich

Twitter: @RomeoKienzler

bit.ly/go4bluemix

Page 2: TDWI_DW2014_SQLNoSQL_DBAAS

© 2013 IBM Corporation2

BlueMix is a Platform as a Service Cloud, based on Cloud Foundry, employing Enterprise grade services enriched with IBM Software and hosted at SOFTLAYER

bit.ly/go4bluemix

Page 3: TDWI_DW2014_SQLNoSQL_DBAAS

© 2013 IBM Corporation3

OnPremise vs IaaS vs Paas vs SaaS

Page 4: TDWI_DW2014_SQLNoSQL_DBAAS

© 2013 IBM Corporation4

What is Cloudfoundry?

http://cloudfoundry.org

Page 5: TDWI_DW2014_SQLNoSQL_DBAAS

Hardware

Software

Admin

Design

Software

Admin

Design

Design

Gu

ess

work

, O

verh

ead

, R

isk

Advantages of Database-as-a-Service (DBaaS)

5

✓ Guaranteed✓ No Guesswork✓ Smallest Risk✓ Greatest Productivity

Do-It-Yourself Hosted DBaaS

© 2014 IBM Corporation

Page 6: TDWI_DW2014_SQLNoSQL_DBAAS

© 2013 IBM Corporation

Cloudant is Used by Big Web & Big Mobile Leaders

© 2014 IBM Corporation

• 17,000 users• Billions of

daily transactions• Millions of DBs

• Across 34 DCs on 5 Cloud providers

eCommerce

Online Education

Gaming

Financial Services

Networking

Other Industries

Page 7: TDWI_DW2014_SQLNoSQL_DBAAS

© 2013 IBM Corporation7

Why cloud?● Elasticity of

● Storage● → Increase Ratio „disks per system“

● Processing power● → Increase Ratio „cpu per disk“

● Cache● → Increase Ratio „memory per storage unit“

● Automatic Backups

● Automatic Disaster Recovery

● Automatic Maintenance

Page 8: TDWI_DW2014_SQLNoSQL_DBAAS

© 2013 IBM Corporation8

Implications?● Data partitioning

● Complete data corpus resides on multiple● Systems● Disks

● Query / Transaction touches multiple● Systems● Disks

● Disk and System failures during runtime

● „Hot“ System and Disk removement / addition

Page 9: TDWI_DW2014_SQLNoSQL_DBAAS

© 2013 IBM Corporation9

ACID vs CAP vs BASE● ACID

● Atomicity (all or nothing)● Consistency (never leave system in invalid state)● Isolation (cope with nondeterminism)● Durability (never loose data after commit)

● CAP Theorem● Consistency (basically what ACID describes)● Availability (always respond to every request)● Partition Tolerance (tolerant to node failure)

● BASE● Basically Available (but response negative/wait)● Soft State (not always 100% consistent state) ● Eventually Consistent (on stop, sooner or later)

Page 10: TDWI_DW2014_SQLNoSQL_DBAAS

© 2013 IBM Corporation10

Isolation vs. Consistency ● ACID

● Read Uncommited● Read Commited● Repeatable Read● Serializable

● BASE● Monotonic read

Once read, never read older version● Monotonic write

Write order in all replicas is preserved● Read your own writes

Once written, never read older version

Page 11: TDWI_DW2014_SQLNoSQL_DBAAS

© 2013 IBM Corporation11

Live Demos● You choose now using the Voting – APP :)

bit.ly/go4bluemix