SlideShare a Scribd company logo
Cassandra
    NoSQL

 17-E-5    2011/02/17
          @ryu_kobayashi
•
•
            ✴                                       ...

•                                                    ...
                      Hadoop

•           http://beter-max.blogspot.com(           ...)


•   Twitter @ryu_kobayashi
•
            ✴   Cassndra GUI

                ‣   http://code.google.com/p/cassandra-gui/
            ✴                             Amazon Elastic MapReduce
                                                6
Developers summit cassandraで見るNoSQL
Cassndra The Definitive Guide




• 0.7
•
•         ...
NoSQL
No! SQL!
(SQL        )
Developers summit cassandraで見るNoSQL
Developers summit cassandraで見るNoSQL
Developers summit cassandraで見るNoSQL
NoSQL
     =
Not Only SQL
SQL
NoSQL
1998    Carlo Stozzi

2009    Eric Evans Cassnadra


     ACID


ML     SQL


NoSQL = Not Only SQL
ACID
CAP
17-C-1
Bit Data
KVS
KVS NoSQL
KVS
       =
Key Value Store
Developers summit cassandraで見るNoSQL
KVS
        ...




              DB(Cassandra)
        ...
                   =      =




Excel
Cassandra GUI
        RDBMS   DB




RDBMS
Cassandra




     ...
            =   =
Developers summit cassandraで見るNoSQL
NoSQL
Cassandra(Facebook)   HBase(Yahoo!)
BigTable(Google)      Dynamo(Amazon)
SimpleDB(Amazon)      Windows Azure Table(Microsoft)


Roma(     )           Flare(gree)
Tokyo Tyrant(mixi)    Kyoto Cabinet
MongoDB               Kumofs


          ...
NoSQL


http://nosql-database.org
RDBMS NoSQL
•RDBMS

•NoSQL

•RDBMS SQL
•NoSQL       API   SQL




•
Developers summit cassandraで見るNoSQL
RDBMS
RDBMS
NoSQL
NoSQL
•
NoSQL
•

•
NoSQL
•

•

    ★Web 2.0
     ✴AJAX
     ✴FLASH
     ✴
     ✴etc...
NoSQL
•

•

    ★Web 2.0
     ✴AJAX
     ✴FLASH
     ✴
     ✴etc...
NoSQL

        ...
NoSQL

         ...

NoSQL   DDL
Cassandra
Cassandra
Cassandra



    Cassandra
         =
Bigtable + Dynamo
Cassandra

Facebook                       NoSQL       DB
               0.7.2   0.6.x      0.6.11
Cassandra

Facebook                       NoSQL       DB
               0.7.2   0.6.x      0.6.11
Cassandra

Facebook                        NoSQL       DB
                0.7.2   0.6.x      0.6.11


 •   Facebook
Cassandra

Facebook                           NoSQL       DB
                   0.7.2   0.6.x      0.6.11


 •   Facebook

           HBase
Cassandra

Facebook                           NoSQL       DB
                   0.7.2   0.6.x      0.6.11


 •   Facebook

           HBase


 •   Twitter
Cassandra

Facebook                           NoSQL       DB
                   0.7.2   0.6.x      0.6.11


 •   Facebook

           HBase


 •   Twitter
 •
Cassandra

Facebook                           NoSQL       DB
                   0.7.2   0.6.x      0.6.11


 •   Facebook

           HBase


 •   Twitter
 •
 •
Cassandra


0.6     0.7
0.7   0.8
Cassandra

Use Case              Twitter


    Cassandra
                Cassandra
Cassandra


•
•
•
•   SPOF

•   Thrift          Java C++

•                  APP
•   0.7      I/O   Hadoop MapReduce
Cassandra



            2


       1        3


            4
Cassandra



            2


       1        3


            4
Cassandra




Random Partitioner
         MD5
Ordering Preserved Partitioner


Collating Order-Preserving Partitioner
Byte-Order Partitioner 0.7
Cassandra



            2


       1        3


            4
Cassandra



                        2


                    1       3

Consistency Level

                        4
Cassandra


                        2


                    1                      3

Consistency Level

                        4   Consistency Level APP
                            •ONE 1                              OK
                            •ALL
                                                    OK
                            •QUORUM            (N/2 + 1)
                                                           OK
Cassandra


              2


       1           3


              4
            SPOF
Cassandra



            2


       1                  3


                Consistency Level
            4
Cassandra


            2


       1             3


            4
                DC
Cassandra
             Consistency Level
•ONE
•QUORUM
 ✴

 ✴         Consistency Level
 ✴
 ✴                               Read
 Repair
 ✴        Read Repair
  ★Cassandra
Cassandra
Gossip Protocol

•
•
•
•
•
•
•
    Consistency Level
Cassandra
                     Cassandra



•Bloom Filter
•Commit Log
•Memtable
•SSTable
•Compaction
 ✴Major Compaction
 ✴Minor Compaction
•etc...
Developers summit cassandraで見るNoSQL
Hadoop MapReduce
         !!
Hadoop MR + Cassandra
Hadoop MR + Cassandra
Hadoop MR + Cassandra
Hadoop MR + Cassandra
         =
Hadoop MR + Cassandra
         =
    Hassandra!!
Developers summit cassandraで見るNoSQL
Cassandra

      Twitter


OSS
          0.7                     0.8
                Distributed Counters
        trunk                           0.8
NoSQL RDBMS


Cassandra
NoSQL
Developers summit cassandraで見るNoSQL
RDBMS NoSQL
RDBMS NoSQL
Developers summit cassandraで見るNoSQL
PARTAKE
PARTAKE




 !?
Developers summit cassandraで見るNoSQL
ACID


                    RDBMS
commit   rollback
         MVCC
ACID


                    RDBMS
commit   rollback
         MVCC
API
      Cassandra Thrift
Amazon SimpleDB Google Bigtable(GQL)
      SQL

SQL
Cassandra
Cassandra                     0.7
Distributed counters

       select count(*) from


                  counter
RDBMS

Java    Hibernate   O/R



 KVS Cassandra            DB
join
RDBMS                    join
     Java    Hibernate
 KVS Cassandra
join
RDBMS                       join
        Java    Hibernate
  KVS Cassandra


        RDBMS
NoSQL


               RDBMS
NoSQL
Developers summit cassandraで見るNoSQL
RDBMS
NoSQL
Developers summit cassandraで見るNoSQL
1   PV
         ...
RDBMS


Cassandra
Developers summit cassandraで見るNoSQL
Cassandra
        Join
Developers summit cassandraで見るNoSQL
m(_ _)m
Facebook
                  MySQL


Cassandra
Cassandra
HBase

        (-_-    )

               Cassandra
NoSQL
NoSQL
1   NoSQL
Developers summit cassandraで見るNoSQL
•NoSQL   RDBMS
•NoSQL   RDBMS


•
•NoSQL   RDBMS


•

•
•NoSQL   RDBMS


•

•

•
17-E-5    2011/02/17
         @ryu_kobayashi

More Related Content

PPTX
Hindsight is 20/20: MySQL to Cassandra
PDF
Apache Cassandra Interview Questions and Answers | Cassandra Tutorial | Cassa...
PDF
C* Summit 2013: No Whistling Required: Cabs, Cassandra, and Hailo by Dave Gar...
PDF
Cassandra Introduction & Features
PDF
keyvi the key value index @ Cliqz
PDF
Cassandra: An Alien Technology That's not so Alien
PDF
NewSQL Database Overview
PDF
NewSQL overview, Feb 2015
Hindsight is 20/20: MySQL to Cassandra
Apache Cassandra Interview Questions and Answers | Cassandra Tutorial | Cassa...
C* Summit 2013: No Whistling Required: Cabs, Cassandra, and Hailo by Dave Gar...
Cassandra Introduction & Features
keyvi the key value index @ Cliqz
Cassandra: An Alien Technology That's not so Alien
NewSQL Database Overview
NewSQL overview, Feb 2015

What's hot (20)

PDF
C* Summit 2013: Searching for a Needle in a Big Data Haystack by Jason Ruther...
PDF
MySQL High-Availability and Scale-Out architectures
ODP
Intro to cassandra
PDF
Bulk Loading into Cassandra
PDF
Using and Benchmarking Galera in different architectures (PLUK 2012)
PPTX
MariaDB Galera Cluster
PDF
C* Summit 2013: Can't we all just get along? MariaDB and Cassandra by Colin C...
PPTX
Apache Cassandra Developer Training Slide Deck
PDF
Methods of Sharding MySQL
PDF
High Availability with Galera Cluster - SkySQL Road Show 2013 in Berlin
PDF
Scaling MySQL in Amazon Web Services
PDF
Mesosphere and Contentteam: A New Way to Run Cassandra
PDF
C* Summit 2013: Hardware Agnostic - Cassandra on Raspberry Pi by Andy Cobley
PPT
NOSQL Database: Apache Cassandra
PDF
Cassandra NoSQL Tutorial
PPTX
Cassandra concepts, patterns and anti-patterns
PPTX
NewSQL: The Best of Both "OldSQL" and "NoSQL"
PDF
NewSQL vs NoSQL for New OLTP
PPTX
PDF
Leveraging Docker and CoreOS to provide always available Cassandra at Instacl...
C* Summit 2013: Searching for a Needle in a Big Data Haystack by Jason Ruther...
MySQL High-Availability and Scale-Out architectures
Intro to cassandra
Bulk Loading into Cassandra
Using and Benchmarking Galera in different architectures (PLUK 2012)
MariaDB Galera Cluster
C* Summit 2013: Can't we all just get along? MariaDB and Cassandra by Colin C...
Apache Cassandra Developer Training Slide Deck
Methods of Sharding MySQL
High Availability with Galera Cluster - SkySQL Road Show 2013 in Berlin
Scaling MySQL in Amazon Web Services
Mesosphere and Contentteam: A New Way to Run Cassandra
C* Summit 2013: Hardware Agnostic - Cassandra on Raspberry Pi by Andy Cobley
NOSQL Database: Apache Cassandra
Cassandra NoSQL Tutorial
Cassandra concepts, patterns and anti-patterns
NewSQL: The Best of Both "OldSQL" and "NoSQL"
NewSQL vs NoSQL for New OLTP
Leveraging Docker and CoreOS to provide always available Cassandra at Instacl...
Ad

Viewers also liked (20)

PDF
The Cassandra Distributed Database
PDF
C* Summit 2013: How Not to Use Cassandra by Axel Liljencrantz
PPT
Cassandra Data Model
PDF
Cassandra By Example: Data Modelling with CQL3
PPT
Hadoop Frameworks Panel__HadoopSummit2010
PPTX
Past Present and Future of Data Processing in Apache Hadoop
PDF
NoSQL Matters 2013 - Introduction to Map Reduce with Couchbase 2.0
KEY
MapReduce and NoSQL
KEY
Mongodb sharding
PPT
NoSQL with Cassandra
PPTX
Introduction to NoSQL & Apache Cassandra
PDF
Apache Cassandra: NoSQL in the enterprise
PDF
Cassandra and Spark
PPTX
Cassandra ppt 2
PPTX
data science toolkit 101: set up Python, Spark, & Jupyter
PDF
Introduction to Apache Spark
PPTX
Presentation of Apache Cassandra
KEY
Cassandra Basics: Indexing
PDF
Introduction to Cassandra - Denver
The Cassandra Distributed Database
C* Summit 2013: How Not to Use Cassandra by Axel Liljencrantz
Cassandra Data Model
Cassandra By Example: Data Modelling with CQL3
Hadoop Frameworks Panel__HadoopSummit2010
Past Present and Future of Data Processing in Apache Hadoop
NoSQL Matters 2013 - Introduction to Map Reduce with Couchbase 2.0
MapReduce and NoSQL
Mongodb sharding
NoSQL with Cassandra
Introduction to NoSQL & Apache Cassandra
Apache Cassandra: NoSQL in the enterprise
Cassandra and Spark
Cassandra ppt 2
data science toolkit 101: set up Python, Spark, & Jupyter
Introduction to Apache Spark
Presentation of Apache Cassandra
Cassandra Basics: Indexing
Introduction to Cassandra - Denver
Ad

Similar to Developers summit cassandraで見るNoSQL (20)

KEY
Hadoopソースコードリーディング第3回 Hadopo MR + Cassandra
PDF
第17回Cassandra勉強会: MyCassandra
PDF
Spring one2gx2010 spring-nonrelational_data
PDF
HPTS 2011: The NoSQL Ecosystem
PDF
The NoSQL Ecosystem
PPTX
Stratio big data spain
PPTX
NoSQL: Cassadra vs. HBase
PDF
Solr cloud the 'search first' nosql database extended deep dive
PPTX
NoSQL Intro with cassandra
KEY
Cassandra integrations
PPTX
Elasticity vs. State? Exploring Kafka Streams Cassandra State Store
PPTX
Navigating NoSQL in cloudy skies
KEY
KeyValue Stores
PPTX
Cassandra - A Basic Introduction Guide
PPTX
BI, Reporting and Analytics on Apache Cassandra
PDF
Using Spring with NoSQL databases (SpringOne China 2012)
PDF
A Microservices approach with Cassandra and Quarkus | DevNation Tech Talk
PDF
Cassandra 2.0 (Introduction)
KEY
Cassandra+Hadoop
PDF
High-Performance Storage Services with HailDB and Java
Hadoopソースコードリーディング第3回 Hadopo MR + Cassandra
第17回Cassandra勉強会: MyCassandra
Spring one2gx2010 spring-nonrelational_data
HPTS 2011: The NoSQL Ecosystem
The NoSQL Ecosystem
Stratio big data spain
NoSQL: Cassadra vs. HBase
Solr cloud the 'search first' nosql database extended deep dive
NoSQL Intro with cassandra
Cassandra integrations
Elasticity vs. State? Exploring Kafka Streams Cassandra State Store
Navigating NoSQL in cloudy skies
KeyValue Stores
Cassandra - A Basic Introduction Guide
BI, Reporting and Analytics on Apache Cassandra
Using Spring with NoSQL databases (SpringOne China 2012)
A Microservices approach with Cassandra and Quarkus | DevNation Tech Talk
Cassandra 2.0 (Introduction)
Cassandra+Hadoop
High-Performance Storage Services with HailDB and Java

More from Ryu Kobayashi (6)

PDF
PLAZMA TD Tech Talk 2018 at Shibuya: Hive2 as a new td hadoop core engine
PDF
Treasure Data on The YARN - Hadoop Conference Japan 2014
PDF
Huahin Framework for Hadoop, Hadoop Conference Japan 2013 Winter
KEY
Hadoop Conference Japan 2011 Fall
KEY
AWSを使ったトラッキングログ収集
KEY
Hadoopソースコードリーディング MapReduce障害時のフロー
PLAZMA TD Tech Talk 2018 at Shibuya: Hive2 as a new td hadoop core engine
Treasure Data on The YARN - Hadoop Conference Japan 2014
Huahin Framework for Hadoop, Hadoop Conference Japan 2013 Winter
Hadoop Conference Japan 2011 Fall
AWSを使ったトラッキングログ収集
Hadoopソースコードリーディング MapReduce障害時のフロー

Recently uploaded (20)

PPTX
sap open course for s4hana steps from ECC to s4
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PPTX
Cloud computing and distributed systems.
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
Electronic commerce courselecture one. Pdf
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PPTX
Spectroscopy.pptx food analysis technology
PDF
Empathic Computing: Creating Shared Understanding
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
cuic standard and advanced reporting.pdf
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
Network Security Unit 5.pdf for BCA BBA.
sap open course for s4hana steps from ECC to s4
Per capita expenditure prediction using model stacking based on satellite ima...
Advanced methodologies resolving dimensionality complications for autism neur...
20250228 LYD VKU AI Blended-Learning.pptx
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Dropbox Q2 2025 Financial Results & Investor Presentation
Cloud computing and distributed systems.
Spectral efficient network and resource selection model in 5G networks
Electronic commerce courselecture one. Pdf
MIND Revenue Release Quarter 2 2025 Press Release
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
Spectroscopy.pptx food analysis technology
Empathic Computing: Creating Shared Understanding
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
The Rise and Fall of 3GPP – Time for a Sabbatical?
Encapsulation_ Review paper, used for researhc scholars
cuic standard and advanced reporting.pdf
Digital-Transformation-Roadmap-for-Companies.pptx
Network Security Unit 5.pdf for BCA BBA.

Developers summit cassandraで見るNoSQL

Editor's Notes