SlideShare a Scribd company logo
1 of 39
DON’T USE
MY
DATABASE
 PRESENTATION FOR NOSQL ROADSHOW
       ON NOSQL USE CASES
@antonyfalco

ANTONY FALCO
COO and Basho Co-Founder
CAN WE PLEASE NOT TALK ABOUT

BIG DATA?
LET’S TALK ABOUT

CRITICAL DATA
Is your data
  really that
critical, dude?
ON OFFER

• what… is NoSQL? … Riak?

• who … uses Riak?

• why … should I NOT use Riak?
           (Or other NoSQL for that matter?)
TRUTH

               Enter the
                    NoSQL
                       Jungle
YOU ARE HERE
what are you prepared to trade?
Would you trade….


Your current, familiar consistency model
                       for
    a somewhat alien, but perfectly safe, consistency model and
                   better availability?
Would you trade….


Storage space
                 for

                low latency?
Would you trade….


late night heroics
                     for

                                  high
                      availability?
Would you trade….


35 years of RDBMS success
                 for

     technology used by a few companies of which
                you may have heard?
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
BEFORE YOU ANSWER,
    CONSIDER….
Can anyone
call RDBMS
a failure?
IF ANYONE
MAKES THESE
TRADE-OFFS
SEEM EASY…..
THEY ARE


LYING!!!
Lie # 1:
          Distributed Systems:
          Desirable Properties
               Highly Available      Fault Tolerant
               Low Latency           Ops-Friendly
               Scalable              Predictable



 Any new app must use
this newfangled NoSQL.
 Wednesday, November 16, 11
Lie # 2:
            Distributed Systems:
            Desirable Properties
                 Highly Available      Fault Tolerant
                 Low Latency           Ops-Friendly
                 Scalable              Predictable



Non-distributed databases
provide these properties.
   Wednesday, November 16, 11
Lie # 3:

MongoDB              Cassandra

CouchDB                Riak

 Neo4J               Voldemort

 Words like “distributed”
 have “relative” meaning.
Lie # 4: The Big One
                       When really I
I say I want:            want:
 1. safety              1. speed
2. scale out            2. speed
 3. speed               3. speed


     The lie developers tell
          themselves.
REMEMBER


     At small scale everything works.
REMEMBER


       At small scale everything works.




 At large scale
 things start to
                                          brea
RIAK – THE TECHNOLOGY
An open-source, globally distributed database with trade-offs
DISTRIBUTE

                     Replicate client data
                     to your Riak clusters
                    anywhere in the world




 Clients run Riak
    clusters in
Your data centers
RIAK DETAILS
Dynamo-inspired
modular – core plus storage (or…)
     1) bitcask
     2) levelDB

Document-oriented AND key-value

Tunable CAP values

Open-source and commercial
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. Asw

Tradeoff: 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
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                                          I do


 I do
                                               I do          I do

                      I do     I do



                                      I do
                        I do




               I do
USE CASES
“We would not have been          1. Cloud Storage (S3)
able to build this application
without node.js and Riak         2. Low-latency interactive
Search.”
                                    apps
Clipboard
                                 3. Smartphone apps
                                 4. CDN
                                 5. Medical
                                 6. Session Store
                                 7. Gaming
                                 8. Mobile Infrastructure
STUFF
                   CO.
                                 Real-time Search
                            US Retailer Online Inventory




          Mochi – casual interactive gaming




                                      Social Media Networks


“REAL-TIME” APPS
Advantages: fast, reliable, scalable. Distribute to a global audience.
DANISH HEALTH SERVICES
Advantages: Doctors manage prescriptions from highly-available servers and, soon,
smartphones, 95% cheaper than Oracle, easier to run
Telco distributes content to 10 data centers




MULTI-TENANT OBJECT STORAGE
Advantages: build competitive services to Amazon, reliable storage, easy to operate
Write to Riak
                         Next…sync with each other




SMARTPHONE APPS
Advantages: better quality of service for write-intensive smartphone users; reduce
infrastructure costs
A QUICK LITMUS TEST:
ARE THE TRADEOFFS WORTH IT?
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.
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.
THANK YOU

More Related Content

What's hot

Creating Highly-Available MongoDB Microservices with Docker Containers and Ku...
Creating Highly-Available MongoDB Microservices with Docker Containers and Ku...Creating Highly-Available MongoDB Microservices with Docker Containers and Ku...
Creating Highly-Available MongoDB Microservices with Docker Containers and Ku...
MongoDB
 

What's hot (8)

Paul Dix [InfluxData] | InfluxDays Opening Keynote | InfluxDays Virtual Exper...
Paul Dix [InfluxData] | InfluxDays Opening Keynote | InfluxDays Virtual Exper...Paul Dix [InfluxData] | InfluxDays Opening Keynote | InfluxDays Virtual Exper...
Paul Dix [InfluxData] | InfluxDays Opening Keynote | InfluxDays Virtual Exper...
 
Actor-based concurrency in a modern Java Enterprise
Actor-based concurrency in a modern Java EnterpriseActor-based concurrency in a modern Java Enterprise
Actor-based concurrency in a modern Java Enterprise
 
NewSQL
NewSQLNewSQL
NewSQL
 
Build agile and elastic data pipeline
Build agile and elastic data pipelineBuild agile and elastic data pipeline
Build agile and elastic data pipeline
 
Creating Highly-Available MongoDB Microservices with Docker Containers and Ku...
Creating Highly-Available MongoDB Microservices with Docker Containers and Ku...Creating Highly-Available MongoDB Microservices with Docker Containers and Ku...
Creating Highly-Available MongoDB Microservices with Docker Containers and Ku...
 
The Hows and Whys of a Distributed SQL Database - Strange Loop 2017
The Hows and Whys of a Distributed SQL Database - Strange Loop 2017The Hows and Whys of a Distributed SQL Database - Strange Loop 2017
The Hows and Whys of a Distributed SQL Database - Strange Loop 2017
 
CockroachDB: Architecture of a Geo-Distributed SQL Database
CockroachDB: Architecture of a Geo-Distributed SQL DatabaseCockroachDB: Architecture of a Geo-Distributed SQL Database
CockroachDB: Architecture of a Geo-Distributed SQL Database
 
War Stories: DIY Kafka
War Stories: DIY KafkaWar Stories: DIY Kafka
War Stories: DIY Kafka
 

Viewers also liked

Viewers also liked (12)

Riak add presentation
Riak add presentationRiak add presentation
Riak add presentation
 
Cv jose
Cv joseCv jose
Cv jose
 
Using Basho Bench to Load Test Distributed Applications
Using Basho Bench to Load Test Distributed ApplicationsUsing Basho Bench to Load Test Distributed Applications
Using Basho Bench to Load Test Distributed Applications
 
Redis use cases
Redis use casesRedis use cases
Redis use cases
 
Introduction to Redis Data Structures: Sorted Sets
Introduction to Redis Data Structures: Sorted SetsIntroduction to Redis Data Structures: Sorted Sets
Introduction to Redis Data Structures: Sorted Sets
 
Redis and its many use cases
Redis and its many use casesRedis and its many use cases
Redis and its many use cases
 
Introduction to some top Redis use cases
Introduction to some top Redis use casesIntroduction to some top Redis use cases
Introduction to some top Redis use cases
 
The BestBuy.com Cloud Architecture
The BestBuy.com Cloud ArchitectureThe BestBuy.com Cloud Architecture
The BestBuy.com Cloud Architecture
 
Neo4j GraphTalks - Einführung in Graphdatenbanken
Neo4j GraphTalks - Einführung in GraphdatenbankenNeo4j GraphTalks - Einführung in Graphdatenbanken
Neo4j GraphTalks - Einführung in Graphdatenbanken
 
Redis Use Patterns (DevconTLV June 2014)
Redis Use Patterns (DevconTLV June 2014)Redis Use Patterns (DevconTLV June 2014)
Redis Use Patterns (DevconTLV June 2014)
 
Neo4j GraphTalks Panama Papers
Neo4j GraphTalks Panama PapersNeo4j GraphTalks Panama Papers
Neo4j GraphTalks Panama Papers
 
Everything you always wanted to know about Redis but were afraid to ask
Everything you always wanted to know about Redis but were afraid to askEverything you always wanted to know about Redis but were afraid to ask
Everything you always wanted to know about Redis but were afraid to ask
 

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

Advanced databases ben stopford
Advanced databases   ben stopfordAdvanced databases   ben stopford
Advanced databases ben stopford
Ben Stopford
 
New York REDIS Meetup Welcome Session
New York REDIS Meetup Welcome SessionNew York REDIS Meetup Welcome Session
New York REDIS Meetup Welcome Session
Aleksandr Yampolskiy
 

Similar to Basho and Riak at GOTO Stockholm: "Don't Use My Database." (20)

Beyond The Data Grid: Coherence, Normalisation, Joins and Linear Scalability
Beyond The Data Grid: Coherence, Normalisation, Joins and Linear ScalabilityBeyond The Data Grid: Coherence, Normalisation, Joins and Linear Scalability
Beyond The Data Grid: Coherence, Normalisation, Joins and Linear Scalability
 
The Computer Science Behind a modern Distributed Database
The Computer Science Behind a modern Distributed DatabaseThe Computer Science Behind a modern Distributed Database
The Computer Science Behind a modern Distributed Database
 
OSDC 2018 | The Computer science behind a modern distributed data store by Ma...
OSDC 2018 | The Computer science behind a modern distributed data store by Ma...OSDC 2018 | The Computer science behind a modern distributed data store by Ma...
OSDC 2018 | The Computer science behind a modern distributed data store by Ma...
 
The trials and tribulations of providing engineering infrastructure
 The trials and tribulations of providing engineering infrastructure  The trials and tribulations of providing engineering infrastructure
The trials and tribulations of providing engineering infrastructure
 
WebWorkersCamp 2010
WebWorkersCamp 2010WebWorkersCamp 2010
WebWorkersCamp 2010
 
The computer science behind a modern disributed data store
The computer science behind a modern disributed data storeThe computer science behind a modern disributed data store
The computer science behind a modern disributed data store
 
Advanced databases ben stopford
Advanced databases   ben stopfordAdvanced databases   ben stopford
Advanced databases ben stopford
 
Security for AWS : Journey to Least Privilege (update)
Security for AWS : Journey to Least Privilege (update)Security for AWS : Journey to Least Privilege (update)
Security for AWS : Journey to Least Privilege (update)
 
Security for AWS: Journey to Least Privilege
Security for AWS: Journey to Least PrivilegeSecurity for AWS: Journey to Least Privilege
Security for AWS: Journey to Least Privilege
 
NoSQL Data Stores: Introduzione alle Basi di Dati Non Relazionali
NoSQL Data Stores: Introduzione alle Basi di Dati Non RelazionaliNoSQL Data Stores: Introduzione alle Basi di Dati Non Relazionali
NoSQL Data Stores: Introduzione alle Basi di Dati Non Relazionali
 
Balancing Replication and Partitioning in a Distributed Java Database
Balancing Replication and Partitioning in a Distributed Java DatabaseBalancing Replication and Partitioning in a Distributed Java Database
Balancing Replication and Partitioning in a Distributed Java Database
 
New York REDIS Meetup Welcome Session
New York REDIS Meetup Welcome SessionNew York REDIS Meetup Welcome Session
New York REDIS Meetup Welcome Session
 
Low level java programming
Low level java programmingLow level java programming
Low level java programming
 
Re-inventing the Database: What to Keep and What to Throw Away
Re-inventing the Database: What to Keep and What to Throw AwayRe-inventing the Database: What to Keep and What to Throw Away
Re-inventing the Database: What to Keep and What to Throw Away
 
Riak at Engine Yard Cloud
Riak at Engine Yard CloudRiak at Engine Yard Cloud
Riak at Engine Yard Cloud
 
NoSQL
NoSQLNoSQL
NoSQL
 
In-Ceph-tion: Deploying a Ceph cluster on DreamCompute
In-Ceph-tion: Deploying a Ceph cluster on DreamComputeIn-Ceph-tion: Deploying a Ceph cluster on DreamCompute
In-Ceph-tion: Deploying a Ceph cluster on DreamCompute
 
Dev Environments: The Next Generation
Dev Environments: The Next GenerationDev Environments: The Next Generation
Dev Environments: The Next Generation
 
Breaking the Oracle Tie; High Performance OLTP and Analytics Using MongoDB
Breaking the Oracle Tie; High Performance OLTP and Analytics Using MongoDBBreaking the Oracle Tie; High Performance OLTP and Analytics Using MongoDB
Breaking the Oracle Tie; High Performance OLTP and Analytics Using MongoDB
 
Our Brave Modular Future
Our Brave Modular FutureOur Brave Modular Future
Our Brave Modular Future
 

More from Basho Technologies

A Zen Journey to Database Management
A Zen Journey to Database ManagementA Zen Journey to Database Management
A Zen Journey to Database Management
Basho Technologies
 
O'Reilly Webinar: Simplicity Scales - Big Data
O'Reilly Webinar: Simplicity Scales - Big Data O'Reilly Webinar: Simplicity Scales - Big Data
O'Reilly Webinar: Simplicity Scales - Big Data
Basho Technologies
 

More from Basho Technologies (10)

Data Modeling IoT and Time Series data in NoSQL
Data Modeling IoT and Time Series data in NoSQLData Modeling IoT and Time Series data in NoSQL
Data Modeling IoT and Time Series data in NoSQL
 
A Zen Journey to Database Management
A Zen Journey to Database ManagementA Zen Journey to Database Management
A Zen Journey to Database Management
 
Vagrant up a Distributed Test Environment - Nginx Summit 2015
Vagrant up a Distributed Test Environment - Nginx Summit 2015Vagrant up a Distributed Test Environment - Nginx Summit 2015
Vagrant up a Distributed Test Environment - Nginx Summit 2015
 
O'Reilly Webinar: Simplicity Scales - Big Data
O'Reilly Webinar: Simplicity Scales - Big Data O'Reilly Webinar: Simplicity Scales - Big Data
O'Reilly Webinar: Simplicity Scales - Big Data
 
A little about Message Queues - Boston Riak Meetup
A little about Message Queues - Boston Riak MeetupA little about Message Queues - Boston Riak Meetup
A little about Message Queues - Boston Riak Meetup
 
tecFinal 451 webinar deck
tecFinal 451 webinar decktecFinal 451 webinar deck
tecFinal 451 webinar deck
 
NoSQL Implementation - Part 1 (Velocity 2015)
NoSQL Implementation - Part 1 (Velocity 2015)NoSQL Implementation - Part 1 (Velocity 2015)
NoSQL Implementation - Part 1 (Velocity 2015)
 
Coding with Riak (from Velocity 2015)
Coding with Riak (from Velocity 2015)Coding with Riak (from Velocity 2015)
Coding with Riak (from Velocity 2015)
 
Relational Databases to Riak
Relational Databases to RiakRelational Databases to Riak
Relational Databases to Riak
 
Taming Big Data with NoSQL
Taming Big Data with NoSQLTaming Big Data with NoSQL
Taming Big Data with NoSQL
 

Recently uploaded

Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 

Recently uploaded (20)

Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdf
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 

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

  • 1. DON’T USE MY DATABASE PRESENTATION FOR NOSQL ROADSHOW ON NOSQL USE CASES
  • 3. CAN WE PLEASE NOT TALK ABOUT BIG DATA?
  • 5. Is your data really that critical, dude?
  • 6. ON OFFER • what… is NoSQL? … Riak? • who … uses Riak? • why … should I NOT use Riak? (Or other NoSQL for that matter?)
  • 7. TRUTH Enter the NoSQL Jungle YOU ARE HERE
  • 8. what are you prepared to trade?
  • 9. Would you trade…. Your current, familiar consistency model for a somewhat alien, but perfectly safe, consistency model and better availability?
  • 10. Would you trade…. Storage space for low latency?
  • 11. Would you trade…. late night heroics for high availability?
  • 12. Would you trade…. 35 years of RDBMS success for technology used by a few companies of which you may have heard?
  • 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. BEFORE YOU ANSWER, CONSIDER….
  • 18. Lie # 1: Distributed Systems: Desirable Properties Highly Available Fault Tolerant Low Latency Ops-Friendly Scalable Predictable Any new app must use this newfangled NoSQL. Wednesday, November 16, 11
  • 19. Lie # 2: Distributed Systems: Desirable Properties Highly Available Fault Tolerant Low Latency Ops-Friendly Scalable Predictable Non-distributed databases provide these properties. Wednesday, November 16, 11
  • 20. Lie # 3: MongoDB Cassandra CouchDB Riak Neo4J Voldemort Words like “distributed” have “relative” meaning.
  • 21. Lie # 4: The Big One When really I I say I want: want: 1. safety 1. speed 2. scale out 2. speed 3. speed 3. speed The lie developers tell themselves.
  • 22. REMEMBER At small scale everything works.
  • 23. REMEMBER At small scale everything works. At large scale things start to brea
  • 24. RIAK – THE TECHNOLOGY An open-source, globally distributed database with trade-offs
  • 25. DISTRIBUTE Replicate client data to your Riak clusters anywhere in the world Clients run Riak clusters in Your data centers
  • 26. RIAK DETAILS Dynamo-inspired modular – core plus storage (or…) 1) bitcask 2) levelDB Document-oriented AND key-value Tunable CAP values Open-source and commercial
  • 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. Asw Tradeoff: 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. Who cares about latency? SOA
  • 29. Who cares about latency? Sometimes high latency looks like an outage to the end user.
  • 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. USE CASES “We would not have been 1. Cloud Storage (S3) able to build this application without node.js and Riak 2. Low-latency interactive Search.” apps Clipboard 3. Smartphone apps 4. CDN 5. Medical 6. Session Store 7. Gaming 8. Mobile Infrastructure
  • 32. STUFF CO. Real-time Search US Retailer Online Inventory Mochi – casual interactive gaming Social Media Networks “REAL-TIME” APPS Advantages: fast, reliable, scalable. Distribute to a global audience.
  • 33. DANISH HEALTH SERVICES Advantages: Doctors manage prescriptions from highly-available servers and, soon, smartphones, 95% cheaper than Oracle, easier to run
  • 34. Telco distributes content to 10 data centers MULTI-TENANT OBJECT STORAGE Advantages: build competitive services to Amazon, reliable storage, easy to operate
  • 35. Write to Riak Next…sync with each other SMARTPHONE APPS Advantages: better quality of service for write-intensive smartphone users; reduce infrastructure costs
  • 36. A QUICK LITMUS TEST: ARE THE TRADEOFFS WORTH IT?
  • 37. 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.
  • 38. 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.