Slide 1

Slide 1 text

TechBash Bradley Holt, Developer Advocate Wednesday, September 28, 2016 The Many Flavors of NoSQL @BradleyHolt

Slide 2

Slide 2 text

No content

Slide 3

Slide 3 text

@BradleyHolt

Slide 4

Slide 4 text

No content

Slide 5

Slide 5 text

IBM Cloud Data Services Open for Data A comprehensive por.olio of open source data services

Slide 6

Slide 6 text

No content

Slide 7

Slide 7 text

No content

Slide 8

Slide 8 text

Big Data Get it?

Slide 9

Slide 9 text

A Brief History of Data

Slide 10

Slide 10 text

The Relational Database @BradleyHolt order *order_id customer_id date customer line_item *customer_id email_address name *order_id *item_id price quantity

Slide 11

Slide 11 text

ACID Guarantees Relational databases guarantee atomicity, consistency, isolation and durability

Slide 12

Slide 12 text

Big Iron The ACID guarantees provided by relational databases were (and often still are) critical for systems of record

Slide 13

Slide 13 text

The World Wide Web The introduction of the Web brought a whole new type of application with different constraints than systems of record @BradleyHolt

Slide 14

Slide 14 text

Mobile Apps The introduction of mobile apps added to the growing number of systems of engagement

Slide 15

Slide 15 text

Changing Constraints

Slide 16

Slide 16 text

Always On

Slide 17

Slide 17 text

Big Data

Slide 18

Slide 18 text

The CAP Theorem @BradleyHolt Partition Tolerance Availability Consistency Consistency Availability Partition Tolerance

Slide 19

Slide 19 text

Horizontal Scaling Horizontal scaling is scaling through the addition of commodity hardware

Slide 20

Slide 20 text

Eventual Consistency Given no new updates, each node in a distributed system will eventually have a consistent view of the data

Slide 21

Slide 21 text

Enter "Not only SQL" (NoSQL)

Slide 22

Slide 22 text

@BradleyHolt key-value graph document …more

Slide 23

Slide 23 text

@BradleyHolt

Slide 24

Slide 24 text

Key-Value Stores Opaque data accessed through unique keys

Slide 25

Slide 25 text

Document Databases A variation on key-value stores with strictly defined values (e.g. JSON objects)

Slide 26

Slide 26 text

Graph Databases Nodes and properties of nodes connected via edges

Slide 27

Slide 27 text

Choosing the Right Data Layer

Slide 28

Slide 28 text

Data Store It is not possible to abstract all of the constraints of your data store

Slide 29

Slide 29 text

Object-Relational Impedance Mismatch Object-oriented programming and relational databases use different models

Slide 30

Slide 30 text

Semi-Structured Data Relational databases enforce a schema

Slide 31

Slide 31 text

High Concurrency Database tuning often includes reducing the transaction scope or denormalization

Slide 32

Slide 32 text

Eric Evans on NoSQL "This is the world of NoSQL to me, that we can choose a tool that fits well with the problem we're trying to solve." –Eric Evans (author of Domain-Driven Design) @BradleyHolt

Slide 33

Slide 33 text

@BradleyHolt Catalog Document Database Key/Value Store Graph Database Full Text Search Shopping Cart Document Database Key/Value Store Orders Relational Database Big Data Analytics

Slide 34

Slide 34 text

Examples developer.ibm.com/clouddataservices

Slide 35

Slide 35 text

Cloudant FoodTracker

Slide 36

Slide 36 text

Simple Data Pipe @BradleyHolt

Slide 37

Slide 37 text

No content

Slide 38

Slide 38 text

No content

Slide 39

Slide 39 text

Further Reading @BradleyHolt

Slide 40

Slide 40 text

No content

Slide 41

Slide 41 text

Image Credits §  Open for Data Dome (outside) by Bradley Holt §  Open for Data Dome (inside) by Bradley Holt §  Brent Spiner (Data from Star Trek: The Next Generation) with Zoltar from Big by Bradley Holt, on Twitter §  database 2 by Tim Morgan, on Flickr §  Hard Disk by Jeff Kubina, on Flickr §  IBM 360 Announcement center by Robert Nix, on Flickr §  Dialing Up Web History by Mike Licht, on Flickr §  Instagram and other Social Media Apps by Jason Howie, on Flickr §  Dynamo, un siècle de lumière et de mouvement dans l'art, 1913 – 2013 - Galeries nationales du Grand Palais - Paris - 10 avril au 22 juillet 2013 by Yann Caradec, on Flickr §  World travel and communications recorded on Twitter by Eric Fischer, on Flickr §  Server grill with blue light by David Precious, on Flickr §  Spider Web by Alden Chadwick, on Flickr @BradleyHolt

Slide 42

Slide 42 text

Image Credits (cont'd) §  database by Tim Morgan, on Flickr §  Keys for the Stanley Hotel by Mike Silva, on Flickr §  paper by malik, on Flickr §  Edinburgh Road Network analysis by Steven Kay, on Flickr §  Lina Bo Bardi, SESC Pompéia by paulisson miura, on Flickr §  Financial District Classical Building Reflection Distortion, San Francisco, California, USA by Wonderlane, on Flickr §  Untitled by Allen Lai, on Flickr §  Traffic Trails by Mohan Noone, on Flickr §  Eric Evans by Oliver Gierke, on Flickr §  A mockup of the golden Apple iPhone 5S by Zach Vega, on Wikimedia Commons §  Marvin beating Data at Rock, Paper, Scissors by Marvin P Android, on Twitter @BradleyHolt

Slide 43

Slide 43 text

techbash.com/evals/sessions/the-many-flavors-of-nosql Thank You @BradleyHolt