DON’T USEMYDATABASE PRESENTATION FOR NOSQL ROADSHOW       ON NOSQL USE CASES
@antonyfalcoANTONY FALCOCOO and Basho Co-Founder
CAN WE PLEASE NOT TALK ABOUTBIG DATA?
LET’S TALK ABOUTCRITICAL DATA
Is your data  really thatcritical, dude?
ON OFFER• what… is NoSQL? … Riak?• who … uses Riak?• why … should I NOT use Riak?           (Or other NoSQL for that matte...
TRUTH               Enter the                    NoSQL                       JungleYOU ARE HERE
what are you prepared to trade?
Would you trade….Your current, familiar consistency model                       for    a somewhat alien, but perfectly saf...
Would you trade….Storage space                 for                low latency?
Would you trade….late night heroics                     for                                  high                      ava...
Would you trade….35 years of RDBMS success                 for     technology used by a few companies of which            ...
Would you trade….Two million developers worldwide                    for         “It’s a piece of plumbing; it has never b...
BEFORE YOU ANSWER,    CONSIDER….
Can anyonecall RDBMSa failure?
IF ANYONEMAKES THESETRADE-OFFSSEEM EASY…..
THEY ARELYING!!!
Lie # 1:          Distributed Systems:          Desirable Properties               Highly Available      Fault Tolerant   ...
Lie # 2:            Distributed Systems:            Desirable Properties                 Highly Available      Fault Toler...
Lie # 3:MongoDB              CassandraCouchDB                Riak Neo4J               Voldemort Words like “distributed” h...
Lie # 4: The Big One                       When really II say I want:            want: 1. safety              1. speed2. s...
REMEMBER     At small scale everything works.
REMEMBER       At small scale everything works. At large scale things start to                                          brea
RIAK – THE TECHNOLOGYAn open-source, globally distributed database with trade-offs
DISTRIBUTE                     Replicate client data                     to your Riak clusters                    anywhere...
RIAK DETAILSDynamo-inspiredmodular – core plus storage (or…)     1) bitcask     2) levelDBDocument-oriented AND key-valueT...
BITCASK AND ydir is atomically updated withTRADEOFF st dat   Whe awriteoccurs, thekeTHE LATENCY theloca      n            ...
Who cares about latency?                      SOA
Who cares about latency?Sometimes high latency looks like an outage to the end user.
Who cares about latency?                                        I do        I do                                          ...
USE CASES“We would not have been          1. Cloud Storage (S3)able to build this applicationwithout node.js and Riak     ...
STUFF                   CO.                                 Real-time Search                            US Retailer Online...
DANISH HEALTH SERVICESAdvantages: Doctors manage prescriptions from highly-available servers and, soon,smartphones, 95% ch...
Telco distributes content to 10 data centersMULTI-TENANT OBJECT STORAGEAdvantages: build competitive services to Amazon, r...
Write to Riak                         Next…sync with each otherSMARTPHONE APPSAdvantages: better quality of service for wr...
A QUICK LITMUS TEST:ARE THE TRADEOFFS WORTH IT?
USE RIAK IF YOUNEED…Predictable latencyPredictable scaling profilePredictable operationsand if data unavailability costs  ...
DON’T USE RIAK IFYOU NEED…Familiar query patternsFamiliar hiring patternsFamiliar operational problemsand if you     don’t...
THANK YOU
Upcoming SlideShare
Loading in …5
×

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

4,996 views

Published on

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.

Published in: Technology

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

  1. 1. DON’T USEMYDATABASE PRESENTATION FOR NOSQL ROADSHOW ON NOSQL USE CASES
  2. 2. @antonyfalcoANTONY FALCOCOO and Basho Co-Founder
  3. 3. CAN WE PLEASE NOT TALK ABOUTBIG DATA?
  4. 4. LET’S TALK ABOUTCRITICAL DATA
  5. 5. Is your data really thatcritical, dude?
  6. 6. ON OFFER• what… is NoSQL? … Riak?• who … uses Riak?• why … should I NOT use Riak? (Or other NoSQL for that matter?)
  7. 7. TRUTH Enter the NoSQL JungleYOU ARE HERE
  8. 8. what are you prepared to trade?
  9. 9. Would you trade….Your current, familiar consistency model for a somewhat alien, but perfectly safe, consistency model and better availability?
  10. 10. Would you trade….Storage space for low latency?
  11. 11. Would you trade….late night heroics for high availability?
  12. 12. Would you trade….35 years of RDBMS success for technology used by a few companies of which you may have heard?
  13. 13. Would you trade….Two million developers worldwide for “It’s a piece of plumbing; it has never been a root cause of any of our problems.” Coda Hale, Yammer
  14. 14. BEFORE YOU ANSWER, CONSIDER….
  15. 15. Can anyonecall RDBMSa failure?
  16. 16. IF ANYONEMAKES THESETRADE-OFFSSEEM EASY…..
  17. 17. THEY ARELYING!!!
  18. 18. Lie # 1: Distributed Systems: Desirable Properties Highly Available Fault Tolerant Low Latency Ops-Friendly Scalable Predictable Any new app must usethis newfangled NoSQL. Wednesday, November 16, 11
  19. 19. Lie # 2: Distributed Systems: Desirable Properties Highly Available Fault Tolerant Low Latency Ops-Friendly Scalable PredictableNon-distributed databasesprovide these properties. Wednesday, November 16, 11
  20. 20. Lie # 3:MongoDB CassandraCouchDB Riak Neo4J Voldemort Words like “distributed” have “relative” meaning.
  21. 21. Lie # 4: The Big One When really II say I want: want: 1. safety 1. speed2. scale out 2. speed 3. speed 3. speed The lie developers tell themselves.
  22. 22. REMEMBER At small scale everything works.
  23. 23. REMEMBER At small scale everything works. At large scale things start to brea
  24. 24. RIAK – THE TECHNOLOGYAn open-source, globally distributed database with trade-offs
  25. 25. DISTRIBUTE Replicate client data to your Riak clusters anywhere in the world Clients run Riak clusters inYour data centers
  26. 26. RIAK DETAILSDynamo-inspiredmodular – core plus storage (or…) 1) bitcask 2) levelDBDocument-oriented AND key-valueTunable CAP valuesOpen-source and commercial
  27. 27. BITCASK AND ydir is atomically updated withTRADEOFF st dat Whe awriteoccurs, thekeTHE LATENCY theloca n tion of thenewe still pre nt on disk, but a ne re dswill usethela st ve se ny w a te rsion a ila va blein thekeydir. AswTradeoff: Index must fit in memory me Latency: All ntua re hash lookup . 1 seek Low ke rgeproce sswill e reads = Re ding ava a ve lly movetheold va + lueissimple a doe ydir, aTRADEOFF: All a ndfromthe , nd lue sn’t e r re ve quiremoretha asingledisk se k. W n rewerekeys must fit in memoryposition, a dthedatausingthefile id, ndsizetha a e t rere elook turne fro d ma ca s, theope ting syste ny se ra m’sfilesystemre d-a a ca a he d chema sthisamuch fa r ope ke ste
  28. 28. Who cares about latency? SOA
  29. 29. Who cares about latency?Sometimes high latency looks like an outage to the end user.
  30. 30. 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
  31. 31. USE CASES“We would not have been 1. Cloud Storage (S3)able to build this applicationwithout node.js and Riak 2. Low-latency interactiveSearch.” appsClipboard 3. Smartphone apps 4. CDN 5. Medical 6. Session Store 7. Gaming 8. Mobile Infrastructure
  32. 32. STUFF CO. Real-time Search US Retailer Online Inventory Mochi – casual interactive gaming Social Media Networks“REAL-TIME” APPSAdvantages: fast, reliable, scalable. Distribute to a global audience.
  33. 33. DANISH HEALTH SERVICESAdvantages: Doctors manage prescriptions from highly-available servers and, soon,smartphones, 95% cheaper than Oracle, easier to run
  34. 34. Telco distributes content to 10 data centersMULTI-TENANT OBJECT STORAGEAdvantages: build competitive services to Amazon, reliable storage, easy to operate
  35. 35. Write to Riak Next…sync with each otherSMARTPHONE APPSAdvantages: better quality of service for write-intensive smartphone users; reduceinfrastructure costs
  36. 36. A QUICK LITMUS TEST:ARE THE TRADEOFFS WORTH IT?
  37. 37. USE RIAK IF YOUNEED…Predictable latencyPredictable scaling profilePredictable operationsand if data unavailability costs thousands of $$$’s/minute or is even more important.
  38. 38. DON’T USE RIAK IFYOU NEED…Familiar query patternsFamiliar hiring patternsFamiliar operational problemsand if you don’t have a problem right now.
  39. 39. THANK YOU

×