+ All Categories
Home > Technology > Basho and Riak at GOTO Stockholm: "Don't Use My Database."

Basho and Riak at GOTO Stockholm: "Don't Use My Database."

Date post: 28-May-2015
Category:
Upload: basho-technologies
View: 4,218 times
Download: 0 times
Share this document with a friend
Description:
What are common use cases for NoSQL? When should I avoid NoSQL? When is RDBMS just fine? This presentation, delivered at the GOTO NoSQL Roadshow events in London and Stockholm in November of 2011 by Basho co-founder and COO, Antony Falco, take a no-BS look at the tradeoffs one must make to gain the advantages offered by distributed databases like Riak.
Popular Tags:
39
DON’T USE MY DATABASE PRESENTATION FOR NOSQL ROADSHOW ON NOSQL USE CASES
Transcript
Page 1: Basho and Riak at GOTO Stockholm:  "Don't Use My Database."

DON’T USEMY DATABASE

PRESENTATION FOR NOSQL ROADSHOW

ON NOSQL USE CASES

Page 2: Basho and Riak at GOTO Stockholm:  "Don't Use My Database."

COO and Basho Co-Founder

ANTONY FALCO

@antonyfalco

Page 3: Basho and Riak at GOTO Stockholm:  "Don't Use My Database."

CAN WE PLEASE NOT TALK ABOUT

BIG DATA?

Page 4: Basho and Riak at GOTO Stockholm:  "Don't Use My Database."

LET’S TALK ABOUT

CRITICAL DATA

Page 5: Basho and Riak at GOTO Stockholm:  "Don't Use My Database."

Is your data really that

critical, dude?

Page 6: Basho and Riak at GOTO Stockholm:  "Don't Use My Database."

ON OFFER

• what… is NoSQL? … Riak?

• who … uses Riak?

• why … should I NOT use Riak?

(Or other NoSQL for that matter?)

Page 7: Basho and Riak at GOTO Stockholm:  "Don't Use My Database."

Enter the

NoSQL Jungle

YOU ARE HERE

TRUTH

Page 8: Basho and Riak at GOTO Stockholm:  "Don't Use My Database."

what are you prepared to trade?

Page 9: Basho and Riak at GOTO Stockholm:  "Don't Use My Database."

Your current, familiar consistency model

for

a somewhat alien, but perfectly safe, consistency model and

better availability?

Would you trade….

Page 10: Basho and Riak at GOTO Stockholm:  "Don't Use My Database."

Storage space

for

low latency?

Would you trade….

Page 11: Basho and Riak at GOTO Stockholm:  "Don't Use My Database."

late night heroics

for

high availability?

Would you trade….

Page 12: Basho and Riak at GOTO Stockholm:  "Don't Use My Database."

35 years of RDBMS success

technology used by a few companies of which you may have heard?

Would you trade….

for

Page 13: Basho and Riak at GOTO Stockholm:  "Don't Use My Database."

Two million developers worldwide

Would you trade….

for

Page 14: Basho and Riak at GOTO Stockholm:  "Don't Use My Database."

BEFORE YOU ANSWER,

CONSIDER….

Page 15: Basho and Riak at GOTO Stockholm:  "Don't Use My Database."

Can anyone call RDBMS a failure?

Page 16: Basho and Riak at GOTO Stockholm:  "Don't Use My Database."

IF ANYONE MAKES THESE TRADE-OFFS SEEM EASY…..

Page 17: Basho and Riak at GOTO Stockholm:  "Don't Use My Database."

THEY ARE

LYING!!!

Page 18: Basho and Riak at GOTO Stockholm:  "Don't Use My Database."

Lie # 1:

Any new app must use this newfangled NoSQL.

Page 19: Basho and Riak at GOTO Stockholm:  "Don't Use My Database."

Lie # 2:

Non-distributed databases provide these properties.

Page 20: Basho and Riak at GOTO Stockholm:  "Don't Use My Database."

MongoDB

CouchDB

Neo4J

Cassandra

Riak

Voldemort

Lie # 3:

Words like “distributed” have “relative” meaning.

Page 21: Basho and Riak at GOTO Stockholm:  "Don't Use My Database."

I say I want: 1. safety2. scale out

3. speed

When really I want:

1. speed2. speed3. speed

Lie # 4: The Big One

The lie developers tell themselves.

Page 22: Basho and Riak at GOTO Stockholm:  "Don't Use My Database."

REMEMBER

At small scale everything works.

Page 23: Basho and Riak at GOTO Stockholm:  "Don't Use My Database."

REMEMBER

At large scale

things start to brea

At small scale everything works.

Page 24: Basho and Riak at GOTO Stockholm:  "Don't Use My Database."

An open-source, globally distributed database with trade-offs

RIAK – THE TECHNOLOGY

Page 25: Basho and Riak at GOTO Stockholm:  "Don't Use My Database."

DISTRIBUTE

Replicate client data to your Riak clusters

anywhere in the world

Clients run Riak clusters in

Your data centers

Page 26: Basho and Riak at GOTO Stockholm:  "Don't Use My Database."

RIAK DETAILS

Dynamo-inspired

modular – core plus storage (or…)1) bitcask2) levelDB

Document-oriented AND key-value

Tunable CAP values

Open-source and commercial

Page 27: Basho and Riak at GOTO Stockholm:  "Don't Use My Database."

Low Latency: All reads = hash lookup + 1 seek

BITCASK AND THE LATENCY TRADEOFF

TRADEOFF: All keys must fit in memory

Page 28: Basho and Riak at GOTO Stockholm:  "Don't Use My Database."

Who cares about latency?

SOA

Page 29: Basho and Riak at GOTO Stockholm:  "Don't Use My Database."

Who cares about latency?

Sometimes high latency looks like an outage to the end user.

Page 30: Basho and Riak at GOTO Stockholm:  "Don't Use My Database."

Who cares about latency?

I do

I do

I do

I do

I do I do

I do

I do

I do

I do

I do

Page 31: Basho and Riak at GOTO Stockholm:  "Don't Use My Database."

1. Cloud Storage (S3)

2. Low-latency interactive apps

3. Smartphone apps

4. CDN

5. Medical

6. Session Store

7. Gaming

8. Mobile Infrastructure

“We would not have been able to build this application without node.js and Riak Search.”

Clipboard

USE CASES

Page 32: Basho and Riak at GOTO Stockholm:  "Don't Use My Database."

Advantages: fast, reliable, scalable. Distribute to a global audience.

“REAL-TIME” APPS

Real-time SearchUS Retailer Online Inventory

Mochi – casual interactive gaming

Social Media Networks

STUFF CO.

Page 33: Basho and Riak at GOTO Stockholm:  "Don't Use My Database."

Advantages: Doctors manage prescriptions from highly-available servers and, soon, smartphones, 95% cheaper than Oracle, easier to run

DANISH HEALTH SERVICES

Page 34: Basho and Riak at GOTO Stockholm:  "Don't Use My Database."

Advantages: build competitive services to Amazon, reliable storage, easy to operate

MULTI-TENANT OBJECT STORAGE

Telco distributes content to 10 data centers

Page 35: Basho and Riak at GOTO Stockholm:  "Don't Use My Database."

Advantages: better quality of service for write-intensive smartphone users; reduce infrastructure costs

SMARTPHONE APPS

Write to RiakNext…sync with each other

Page 36: Basho and Riak at GOTO Stockholm:  "Don't Use My Database."

A QUICK LITMUS TEST: ARE THE TRADEOFFS WORTH IT?

Page 37: Basho and Riak at GOTO Stockholm:  "Don't Use My Database."

USE RIAK IF YOU NEED…

Predictable latency

Predictable scaling profile

Predictable operations

and if data unavailability costs

thousands of $$$’s/minute

or is even more important.

Page 38: Basho and Riak at GOTO Stockholm:  "Don't Use My Database."

DON’T USE RIAK IF YOU NEED…

Familiar query patterns

Familiar hiring patterns

Familiar operational problems

and if you

don’t have a problem right now.

Page 39: Basho and Riak at GOTO Stockholm:  "Don't Use My Database."

THANK YOU


Recommended