Basho and Riak at GOTO Stockholm: "Don't Use My Database."
-
Upload
basho-technologies -
Category
Technology
-
view
4.219 -
download
0
description
Transcript of Basho and Riak at GOTO Stockholm: "Don't Use My Database."
![Page 1: Basho and Riak at GOTO Stockholm: "Don't Use My Database."](https://reader036.fdocuments.net/reader036/viewer/2022062303/556614ced8b42a06318b4ec5/html5/thumbnails/1.jpg)
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."](https://reader036.fdocuments.net/reader036/viewer/2022062303/556614ced8b42a06318b4ec5/html5/thumbnails/2.jpg)
COO and Basho Co-Founder
ANTONY FALCO
@antonyfalco
![Page 3: Basho and Riak at GOTO Stockholm: "Don't Use My Database."](https://reader036.fdocuments.net/reader036/viewer/2022062303/556614ced8b42a06318b4ec5/html5/thumbnails/3.jpg)
CAN WE PLEASE NOT TALK ABOUT
BIG DATA?
![Page 4: Basho and Riak at GOTO Stockholm: "Don't Use My Database."](https://reader036.fdocuments.net/reader036/viewer/2022062303/556614ced8b42a06318b4ec5/html5/thumbnails/4.jpg)
LET’S TALK ABOUT
CRITICAL DATA
![Page 5: Basho and Riak at GOTO Stockholm: "Don't Use My Database."](https://reader036.fdocuments.net/reader036/viewer/2022062303/556614ced8b42a06318b4ec5/html5/thumbnails/5.jpg)
Is your data really that
critical, dude?
![Page 6: Basho and Riak at GOTO Stockholm: "Don't Use My Database."](https://reader036.fdocuments.net/reader036/viewer/2022062303/556614ced8b42a06318b4ec5/html5/thumbnails/6.jpg)
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."](https://reader036.fdocuments.net/reader036/viewer/2022062303/556614ced8b42a06318b4ec5/html5/thumbnails/7.jpg)
Enter the
NoSQL Jungle
YOU ARE HERE
TRUTH
![Page 8: Basho and Riak at GOTO Stockholm: "Don't Use My Database."](https://reader036.fdocuments.net/reader036/viewer/2022062303/556614ced8b42a06318b4ec5/html5/thumbnails/8.jpg)
what are you prepared to trade?
![Page 9: Basho and Riak at GOTO Stockholm: "Don't Use My Database."](https://reader036.fdocuments.net/reader036/viewer/2022062303/556614ced8b42a06318b4ec5/html5/thumbnails/9.jpg)
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."](https://reader036.fdocuments.net/reader036/viewer/2022062303/556614ced8b42a06318b4ec5/html5/thumbnails/10.jpg)
Storage space
for
low latency?
Would you trade….
![Page 11: Basho and Riak at GOTO Stockholm: "Don't Use My Database."](https://reader036.fdocuments.net/reader036/viewer/2022062303/556614ced8b42a06318b4ec5/html5/thumbnails/11.jpg)
late night heroics
for
high availability?
Would you trade….
![Page 12: Basho and Riak at GOTO Stockholm: "Don't Use My Database."](https://reader036.fdocuments.net/reader036/viewer/2022062303/556614ced8b42a06318b4ec5/html5/thumbnails/12.jpg)
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."](https://reader036.fdocuments.net/reader036/viewer/2022062303/556614ced8b42a06318b4ec5/html5/thumbnails/13.jpg)
Two million developers worldwide
Would you trade….
for
![Page 14: Basho and Riak at GOTO Stockholm: "Don't Use My Database."](https://reader036.fdocuments.net/reader036/viewer/2022062303/556614ced8b42a06318b4ec5/html5/thumbnails/14.jpg)
BEFORE YOU ANSWER,
CONSIDER….
![Page 15: Basho and Riak at GOTO Stockholm: "Don't Use My Database."](https://reader036.fdocuments.net/reader036/viewer/2022062303/556614ced8b42a06318b4ec5/html5/thumbnails/15.jpg)
Can anyone call RDBMS a failure?
![Page 16: Basho and Riak at GOTO Stockholm: "Don't Use My Database."](https://reader036.fdocuments.net/reader036/viewer/2022062303/556614ced8b42a06318b4ec5/html5/thumbnails/16.jpg)
IF ANYONE MAKES THESE TRADE-OFFS SEEM EASY…..
![Page 17: Basho and Riak at GOTO Stockholm: "Don't Use My Database."](https://reader036.fdocuments.net/reader036/viewer/2022062303/556614ced8b42a06318b4ec5/html5/thumbnails/17.jpg)
THEY ARE
LYING!!!
![Page 18: Basho and Riak at GOTO Stockholm: "Don't Use My Database."](https://reader036.fdocuments.net/reader036/viewer/2022062303/556614ced8b42a06318b4ec5/html5/thumbnails/18.jpg)
Lie # 1:
Any new app must use this newfangled NoSQL.
![Page 19: Basho and Riak at GOTO Stockholm: "Don't Use My Database."](https://reader036.fdocuments.net/reader036/viewer/2022062303/556614ced8b42a06318b4ec5/html5/thumbnails/19.jpg)
Lie # 2:
Non-distributed databases provide these properties.
![Page 20: Basho and Riak at GOTO Stockholm: "Don't Use My Database."](https://reader036.fdocuments.net/reader036/viewer/2022062303/556614ced8b42a06318b4ec5/html5/thumbnails/20.jpg)
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."](https://reader036.fdocuments.net/reader036/viewer/2022062303/556614ced8b42a06318b4ec5/html5/thumbnails/21.jpg)
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."](https://reader036.fdocuments.net/reader036/viewer/2022062303/556614ced8b42a06318b4ec5/html5/thumbnails/22.jpg)
REMEMBER
At small scale everything works.
![Page 23: Basho and Riak at GOTO Stockholm: "Don't Use My Database."](https://reader036.fdocuments.net/reader036/viewer/2022062303/556614ced8b42a06318b4ec5/html5/thumbnails/23.jpg)
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."](https://reader036.fdocuments.net/reader036/viewer/2022062303/556614ced8b42a06318b4ec5/html5/thumbnails/24.jpg)
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."](https://reader036.fdocuments.net/reader036/viewer/2022062303/556614ced8b42a06318b4ec5/html5/thumbnails/25.jpg)
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."](https://reader036.fdocuments.net/reader036/viewer/2022062303/556614ced8b42a06318b4ec5/html5/thumbnails/26.jpg)
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."](https://reader036.fdocuments.net/reader036/viewer/2022062303/556614ced8b42a06318b4ec5/html5/thumbnails/27.jpg)
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."](https://reader036.fdocuments.net/reader036/viewer/2022062303/556614ced8b42a06318b4ec5/html5/thumbnails/28.jpg)
Who cares about latency?
SOA
![Page 29: Basho and Riak at GOTO Stockholm: "Don't Use My Database."](https://reader036.fdocuments.net/reader036/viewer/2022062303/556614ced8b42a06318b4ec5/html5/thumbnails/29.jpg)
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."](https://reader036.fdocuments.net/reader036/viewer/2022062303/556614ced8b42a06318b4ec5/html5/thumbnails/30.jpg)
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."](https://reader036.fdocuments.net/reader036/viewer/2022062303/556614ced8b42a06318b4ec5/html5/thumbnails/31.jpg)
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."](https://reader036.fdocuments.net/reader036/viewer/2022062303/556614ced8b42a06318b4ec5/html5/thumbnails/32.jpg)
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."](https://reader036.fdocuments.net/reader036/viewer/2022062303/556614ced8b42a06318b4ec5/html5/thumbnails/33.jpg)
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."](https://reader036.fdocuments.net/reader036/viewer/2022062303/556614ced8b42a06318b4ec5/html5/thumbnails/34.jpg)
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."](https://reader036.fdocuments.net/reader036/viewer/2022062303/556614ced8b42a06318b4ec5/html5/thumbnails/35.jpg)
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."](https://reader036.fdocuments.net/reader036/viewer/2022062303/556614ced8b42a06318b4ec5/html5/thumbnails/36.jpg)
A QUICK LITMUS TEST: ARE THE TRADEOFFS WORTH IT?
![Page 37: Basho and Riak at GOTO Stockholm: "Don't Use My Database."](https://reader036.fdocuments.net/reader036/viewer/2022062303/556614ced8b42a06318b4ec5/html5/thumbnails/37.jpg)
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."](https://reader036.fdocuments.net/reader036/viewer/2022062303/556614ced8b42a06318b4ec5/html5/thumbnails/38.jpg)
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."](https://reader036.fdocuments.net/reader036/viewer/2022062303/556614ced8b42a06318b4ec5/html5/thumbnails/39.jpg)
THANK YOU