Partners for success · PDF file Oracle DB MongoDB Cassandra MySQL MySQL Cluster Riak...

Click here to load reader

  • date post

    30-May-2020
  • Category

    Documents

  • view

    1
  • download

    0

Embed Size (px)

Transcript of Partners for success · PDF file Oracle DB MongoDB Cassandra MySQL MySQL Cluster Riak...

  • USES CASES

    1

  • OR

    2

  • DON’T USE MY DATABASE

    PRESENTATION FOR NOSQL ROADSHOW

  • Director, Technical Operationsl, EMEA Basho Technologies

    IAN PLOSKER

    @dstroyallmodels

  • WHO IS BASHO?

    basho

  • 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?)

  • Enter the NoSQL Jungle

    YOU ARE HERE

    TRUTH

  • what are you prepared to 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

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

    Would you trade….

    for

  • Two million developers worldwide

    Would you trade….

    for

  • BEFORE YOU ANSWER, CONSIDER….

  • Can anyone call RDBMS a failure?

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

  • THEY ARE

    LYING!!!

  • Lie # 1:

    Any new app must use this newfangled NoSQL.

  • Lie # 2:

    Non-distributed databases provide these properties.

  • MongoDB

    CouchDB

    Neo4J

    Cassandra

    Riak

    Voldemort

    Lie # 3:

    Words like “distributed” have “relative” meaning.

  • I say I want: 1. safety

    2. scale out 3. speed

    When really I want:

    1. speed 2. speed 3. speed

    Lie # 4: The Big One

    The lie developers tell themselves.

  • REMEMBER

    At small scale everything works.

  • REMEMBER

    At large scale things start to break

    At small scale everything works.

  • There is no such thing as NoSql

  • There's Just Databases

  • Making Different Tradeoffs

  • Persistence Strategy

    In-Memory PersistentPersistent

    Periodic Immediate

    Memcache MongoDB Riak

    Redis Redis Cassandra

    Hana

  • (Primary) Query Model

    Rich Query Key-Value Key-Value Key-Value

    Pure Document Tablet

    Relational Riak MongoDB Cassandra

    Vertica BerkleyDB Couch HBase

    Datomic Voldemort Redis Big Table

  • Replication

    Master-Slave Masterless

    Oracle DB Riak

    MySQL Cassandra

    PostgreSQL Voldemort

    Redis

    MongoDB

  • Distribution

    BYO Sharded Ring

    Oracle DB MongoDB Cassandra

    MySQL MySQL Cluster Riak

    PostgreSQL Voldemort

    Redis

  • Data Model

    Relational Object Column-Family

    Oracle DB Riak Cassandra

    MySQL MongoDB HBase

    PostgreSQL Couch BigTable

    Redis HyperTable

    Datomic

  • IS A(N) ...

  • DATABASE

  • SOURCE

  • APACHE 2 LICENSE

  • DISTRIBUTED

  • MASTERLESS

  • FAULT TOLERANT

  • HIGHLY AVAILABLE/ LOW LATENCY

  • SCALABLE

  • KEY-VALUE

  • IS ...

  • ... INSPIRED BY AMAZON’S DYNAMO

  • ... BUILT FOR THE WEB

  • RIAK HAS ...

  • HTTP API

  • PROTOCOL BUFFERS API

  • CLIENT API WRITTEN IN ...

  • ALTERNATIVE QUERYING MECHANISMS

  • DISTRIBUTE

    Replicate client data to your Riak clusters

    anywhere in the world

    Clients run Riak clusters in

    Your data centers

  • Low Latency: All reads = hash lookup + 1 seek

    BITCASK AND THE LATENCY TRADEOFF

    TRADEOFF: All keys must fit in memory

  • 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

  • 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

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

    “REAL-TIME” APPS

    Real-time Search US Retailer Online Inventory

    Mochi – casual interactive gaming

    Social Media Networks

    STUFF CO.

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

    DANISH HEALTH SERVICES

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

    MULTI-TENANT OBJECT STORAGE

    Telco distributes content to 10 data centers

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

    SMARTPHONE APPS

    Write to Riak Next…sync with each other

  • 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

    CREDIT: TONY FALCO

    email: ian@basho.com twitter: @dstroyallmodels

    mailto:ian@basho.com mailto:ian@basho.com