SlideShare a Scribd company logo
1 of 93
Big Data Platforms:
      An Overview
                          C. Scyphers
                   Chief Technical Architect

Daemon Consulting, LLC
What Is “Big Data”?
• Big Data is not simply a huge pile of information

• A good starting place is the following thought:


 “Big Data describes datasets so large they become very
  difficult to manage with traditional database tools.”
What Is A Big Data Platform?




 Putting it simply, it is any platform which supports
             those kind of large datasets.
It doesn’t have to be cutting edge technology.
Lots of legacy technologies can address the problem.
If only at a sizeable cost.
SQL
Of the new technologies, the most promising are from
                the “NoSQL” family.
What Is “NoSQL”?

SQL
A family of non-relational data storage technologies
Horizontal scalability
Distributed processing
Faster throughput
Usually with less cost than more traditional approaches.
Some of these
technologies
are new and
innovative
Others have been around for decades.
NoSQL Does Not Mean “SQL Is Bad”




When the trend was just starting, “NoSQL” was coined. It’s
unfortunate, because it implies antagonism towards SQL.
NoSQL Means “Not Only SQL”
        RELATIONAL




                                  RELATIONAL
                                     NON-
NoSQL is a complement to a traditional RDBMS, not
      necessarily as a replacement of them.
Why Won’t
 SQL Do?
Scale is very hard without ridiculous expense
SQL can get very complex, very quickly
Changing a schema for a large production system is
             both risky and expensive
Throughput can be a challenge
How Does
NoSQL Do It?
Scale is achieved through a shared-nothing architecture,
                  removing bottlenecks
Schemaless design means change becomes much less
          risky and significantly cheaper
Most solutions use simple RESTful interfaces
NoSQL is based upon a better understanding
 of data storage, usually referred to as the

           “CAP Theorem”
The CAP Theorem
        Grossly simplified (with apologies to Brewer):

A database can be
• Consistent (All clients see the same data)
• Available (All clients can find some available node)
• Partition-Tolerant (the database will continue to function
   even if split into disconnected sets – e.g. a network disruption)



               Pick Any Two.
CAP In Practice
• Consistent & Available (no Partition Tolerance)
  • Either single machines or single site clusters.
  • Typically uses 2 phase commits
CAP In Practice
• Consistent & Partition Tolerant (no Availability)
  • Some data may be inaccessible, but the remainder
    is available and consistent
  • Sharding is an example of this implementation




    Customers        Customers        Customers
       A-F              G-R              S-Z
CAP In Practice
• Available & Partition Tolerant (no Consistency)
  • Some data may be inaccurate; a conflict resolution
     strategy is required.
  • DNS is an example of this, as well as standard
     master-slave replication
CAP From A Vendor POV
• C-A (no P) – this is generally how most
               RDBMS vendors operate

• C-P (no A) – this is how many RDBMS’
               attempt to address scale
               without incurring large costs

• A-P (no C) – this is how most NoSQL
               approaches solve the problem
ACID vs BASE
   Traditional Databases                        NoSQL Databases Tend
    Are ACID Compliant                          To Be BASE Compliant
Atomicity – either the entire transaction          Basically
             completes or none of it does
Consistent – any transaction will take the         Available
               database from one consistent
               state to another, with no
               broken constraints
Isolation – changes do not affect other users      Scalable
            until committed
Durability – committed transactions can be         Eventually consistent
              recovered in case of system
              failure



      Eventually consistent is the key phrase here
SQL Strengths




Very well known technology
Very mature technology
Interoperability across vendors
Large talent pool from which to choose
Ad hoc operations common, if not encouraged
NoSQL Strengths




 Built to address massive scale
Through horizontal scalability
While remaining highly available
And handling unstructured data
NoSQL Pros/Cons
       Pros                         Cons

• Schema Evolution         • Querying the data is
• Horizontal Scalability     much harder
• Simple Protocols         • Paradigm Shift
                           • Security is a big issue
                           • May or may not
                             support data types
                             (BLOBs, spatial)
                           • Generally, uniqueness
                             cannot be enforced
A Disclaimer Before We Continue
• I am not an expert on every possible Big Data
  Platform
• There are hundreds of them; these are
  the ones I consider the leaders in the field
  and recommend
• If you have a favorite, please let me know
  and I’ll update the deck for next time
• The internal details on how these systems
  work are rather complex; I would prefer to
  take those questions offline
Flavors Of NoSQL

The major four divisions of NoSQL are:

•   Key-Value
•   Document Store
•   Columnar
•   Other
Key-Value
• At a very high level, key-value works essentially
  by pairing a index token (a key) with a data
  element (a value).
• Both index token and the data value can be of
  any structure.
• Such a pairing is arbitrary and up to the
  developer of the system to determine.
A Key-Value Example

“John Smith”, “100 Century Dr. Alexandria VA 22304”


“John Doe”, “16 Kozyak Street, Lozenets District, 1408 Sofia Bulgaria”




  In both examples, the key is a name and the value is an address.
   However, the structure of the address differs between the two.
Document Store
• Document stores extend the key-value paradigm
  into values with multiple attributes.
• The document values tend to be semi-structured
  data (XML, JSON, et al) but can also be Word or
  PDF documents.
A Document Store Example
“John Smith”, “<address><street>100 Century Dr.</street>
                        <city>Alexandria</city>
                        <state>VA</state>
                        <postalCode>22304</postalCode>
               </address>”

“John Doe”, “{
              “address”: {
                             “street”: “16 Kozyak Street”
                             “district”: “Lozenets, 1408”
                             “city”: “Sofia”
                             “country”: “Bulgaria”
                         }
              }”
Columnar Family

• Usually has “rows” and “columns”
  • Or, at least, their logical equivalents
• Not a traditional, “pure” column store
  • More of a hybridized approach leveraging
     key-value pairs
• A key with many values attached
The Others
• Hierarchical Databases
  • LDAP, Active Directory
• Graph Databases
  • Neo4j, Flock DB, InfiniteGraph
• XML
  • MarkLogic
• Object Oriented Databases
  • Versant
• Lotus Notes
• HPCC (LexisNexis)
Key-Value Recap

 Pairing a index token (a key)
 with a data element (a value)
Key-Value Pro/Con
         Pros                                   Cons
•   Schema Evolution                •   Packing & unpacking each key
•   Horizontal Scalability          •   Keys typically are not related
•   Simple Protocols                    to each other
•   Works well for volatile data    •   The entire value must be
•   High throughput, typically          returned, not just a part of it
    optimized for reads or writes   •   Security tends to be an issue
•   Keys become meaningful          •   Hard to support reporting,
    rather than arbitrary               analytics, aggregation or
•   Application logic defines           ordered values
    object model                    •   Generally does not support
                                        updates in place
                                    •   Application logic defines
                                        object model
Where Did Key-Value
       Come From?

The concept is quite old, but most people trace the
lineage back to Amazon and the Dynamo paper.
Dynamo
Amazon devised the Dynamo engine as a way to
address their scalability issues in a reliable way.

• Communication between nodes is peer to peer
  (P2P)
• Replication occurs with the end client
  addressing conflict resolution
• Quorum Reads/Writes
• Always writable (Hinted Handoff)
• Eventually Consistent
Eventually Consistent
• Rather than expending the runtime resources
  to ensure that all nodes are aware of a change
  before continuing, Dynamo uses an eventually
  consistent model.

• In this model, a subset of nodes are changed
• Those nodes then inform their neighbors until
  all nodes are changed (grossly simplifying).
Can I Use Dynamo?

  No. It’s an Amazon only internal product.
  However, AWS S3 is largely based upon it.


Amazon did announce a DynamoDB offering for
 their AWS customers. While it’s probably the
       same, I cannot guarantee that it is.
Riak
• Riak is a key-value database largely
  modeled after the Dynamo model.
• Open source (free) with paid support
  from Basho.

• Main claims to fame:
  • Extreme reliability
  • Performance speed
Riak Pro/Con
         Pros                                   Cons
•   All nodes are equal – no       •   Not meant for small, discrete
    single point of failure            and numerous datapoints.
•   Horizontal Scalability         •   Getting data in is great;
•   Full Text Search                   getting it out, not so much
•   RESTful interface (and HTTP)   •   Security is non-existent:
•   Consistency level tunable on          “Riak assumes the internal
    each operation                         environment is trusted”
•   Secondary indexes available    •   Conflict resolution can bubble
•   Map/Reduce (JavaScript &           up to the client if not careful.
    Erlang only)                   •   Erlang is fast, but it’s got a
                                       serious learning curve.
Riak Users
Redis
• Redis is a key-value in-memory datastore.
• Open source (free) with support from the
  community.

• Main claims to fame:
  • Fast. So very, very fast.
  • Transactional support
  • Best for rapidly changing data
Redis Pro/Con
         Pros                                   Cons
•   Transactional support           •   Entirely in memory
•   Blob storage                    •   Master-slave replication
•   Support for sets, lists and         (instead of master-master)
    sorted sets                     •   Security is non-existent:
•   Support for Publish-Subscribe       designed to be used in
    (Pub-Sub) messaging                 trusted environments
•   Robust set of operators         •   Does not support encryption
                                    •   Support can be hard to find
Redis Users
Voldemort
• Voldemort is a key-value in-memory database
  built by LinkedIn.
• Open source (free) with support from the
  community

• Main claims to fame:
  • Low latency
  • Highly Available
  • Very fast reads
Voldemort Pro/Con
         Pros                                 Cons
•   Highly customizable – each    •   Versioning means lots of disk
    layer of the stack can be         space being used.
    replaced as needed            •   Does not support range
•   Data elements are versioned       queries
    during changes                •   No complex query filters
•   All nodes are independent –   •   All joins must be done in
    no single point of failure        code
•   Very, very fast reads         •   No foreign key constraints
                                  •   No triggers
                                  •   Support can be hard to find
Voldemort Users
Key/Value
        “Big Vendors”
• Microsoft Azure Table Storage
• Oracle NoSQL
• BerkleyDB (Oracle)
Document Store Recap

Document stores store an index token
with a grouping of attributes in a semi-
         structured document
Document Store Pro/Con
         Pros                                  Cons
•   Tends to support a more       •   The entire value must be
    complex data model than           returned, not just a part of it
    key/value                     •   Security tends to be an issue
•   Good at content               •   Joins are not available within
    management                        the database
•   Usually supports multiple     •   No foreign keys
    indexes                       •   Application logic defines
•   Schemaless (can be nested)        object model
•   Typically low latency reads
•   Application logic defines
    object model
CouchDB
• CouchDB is a document store database.
• Open source (free), part of the Apache
  foundation with paid support available from
  several vendors.

• Main claims to fame:
  • Simple and easy to use
  • Good read consistency
  • Master-master replication
CouchDB Pro/Con
         Pros                                 Cons
•   Very simple API for           •   The simple API for
    development                       development is somewhat
•   MVCC support for read             limited
    consistency                   •   No foreign keys
•   Full Map/Reduce support       •   Conflict resolution devolves
•   Data is versioned                 to the application
•   Secondary indexes supported   •   Versioning requires extensive
•   Some security support             disk space
•   RESTful API, JSON support     •   Versioning places large load
•   Materialized views with           on I/O channels
    incremental update support    •   Replication for performance,
                                      not availability
CouchDB Users
MongoDB
• MongoDB is a document store database.
• Open source (free) with paid support available
  from 10Gen.

• Main claims to fame:
  • Index anything
  • Ad hoc query support
  • SQL like operations
    (not SQL syntax)
MongoDB Pro/Con
         Pros                                   Cons
•   Auto-sharding                   •   Does not support JSON: BSON
•   Auto-failover                       instead
•   Update in place                 •   Master-slave replication
•   Spatial index support           •   Has had some growing pains
•   Ad hoc query support                (e.g. Foursquare outage)
•   Any field in Mongo can be       •   Not RESTful by default
    indexed                         •   Failures require a manual
•   Very, very popular (lots of         database repair operation
    production deployments)             (similar to MySQL)
•   Very easy transition from SQL   •   Replication for availability,
                                        not performance
MongoDB Users
Document Store
        “Big Vendors”
• Lotus Domino
Columnar Family Recap

• A key with many values attached
• Usually presenting as “rows” and “columns”
  • Or, at least, their logical equivalents
Columnar Pro/Con
         Pros                                  Cons
•   Tend to have some level of     •   Is much less efficient when
    rudimentary security support       processing many columns
•   Usually include a degree of        simultaneously
    versioning                     •   Joins tend to not be
•   Can be more efficient than         supported
    row databases when             •   Referential integrity not
    processing a limited number        available
    of columns over a large
    amount of rows
Where Did Columnar
      Come From?

The concept has been around for a while, but most
 people trace the NoSQL lineage back to Google.
BigTable
Google devised the BigTable engine as a way to
address their search related scalability issues in a
reliable way.
• Data is organized through a set of keys:
  •   Row             • Column          • Timestamp
• A hybrid row/column store with a single master
• Versioning is handled through the time key
• Tablets are a dynamic partition of a sequence of
  rows – supports very efficient range scans
• Columns can be grouped into column families
• Column families can have access control
Can I Use BigTable?

No. It’s a Google only internal product. However,
 quite a few open source products are built upon
                  the concepts.
Cassandra
• Cassandra is a hybrid of Big Table built on
  Dynamo infrastructure
• Open source (free), built by Facebook with paid
  support available from several vendors.

• Main claims to fame:
  • An Apache project
  • Very, very fast writes
  • Spans multiple datacenters
Cassandra Pro/Con
         Pros                                      Cons
•   Designed to span multiple         •   No joins
    datacenters                       •   No referential integrity
•   Peer to peer communication        •   Written in Java – quite
    between nodes                         complex to administer
•   No single point of failure            and configure
•   Always writeable                  •   Last update wins
•   Consistency level is tunable at
    run time
•   Supports secondary indexes
•   Supports Map/Reduce
•   Supports range queries
Cassandra Users
HBase
• Hbase is a columnar database built on top of the
  Hadoop environment.
• Open source (free) with paid support from
  numerous vendors

• Main claims to fame:
  • Ad hoc type abilities
  • Easy integration with
    Map/Reduce
HBase Pro/Con
         Pros                                  Cons
•   Map/Reduce support             •   Secondary indexes generally
•   More of a CA approach and          not supported
    an AP                          •   Security is non-existent
•   Supports predicate push        •   Requires a Hadoop
    down for performance gains         infrastructure to function
•   Automatic partitioning and
    rebalancing of regions
•   Data is stored in a sorted
    order (not indexed)
•   RESTful API
•   Strong and vibrant ecosystem
HBase Users
Hadoop
• Hadoop is not a columnar store as such.
• Rather, Hadoop is a massively parallel data
  processing engine

• Main claims to fame:
  • Specializes in unstructured data
  • Very flexible and popular
Hadoop Pro/Con
         Pros                                   Cons
•   While written in Java, almost   •   Large amounts of disk space
    any language can leverage           and bandwidth required
    Hadoop                          •   Paradigm shift for IT staff
•   Runs on commodity servers       •   Quality talent is highly in
•   Horizontally scalable               demand and expensive
•   Very fast and powerful          •   Security is non-existent
•   Where Map/Reduce                •   Name node is a single point
    originated                          of failure
•   Ample support from vendors      •   More or less only supporting
•   “Helper” languages like Hive        batch processing
    and Pig                         •   Not user friendly to anyone
•   Strong and vibrant ecosystem        other than developers
Hadoop Users




         Plus lots, lots more
Columnar “Big Vendor”

• EMC Greenplum
• Teradata Aster


 In so far as both of these solutions are grafting
Map/Reduce into a (more or less) SQL environment
Which One Do
            I Use Where?
•   Key-Value for (relatively) simple, volitile data
•   Document store for more complex data
•   Columnar for analytical processing
•   RBDMS for traditional processing – particularly
    where a lazy consistency is not acceptable
    • Point Of Sale, for example
Questions?
@scyphers


            Additional Information At
http://www.daemonconsulting.net/BDC-FOSE-2012


Daemon Consulting, LLC
     http://www.daemonconsulting.net/

      Specializing In The Hard Stuff

More Related Content

What's hot

Data Catalogs Are the Answer – What is the Question?
Data Catalogs Are the Answer – What is the Question?Data Catalogs Are the Answer – What is the Question?
Data Catalogs Are the Answer – What is the Question?DATAVERSITY
 
Business Intelligence Overview
Business Intelligence OverviewBusiness Intelligence Overview
Business Intelligence Overviewnetpeachteam
 
CRISP-DM: a data science project methodology
CRISP-DM: a data science project methodologyCRISP-DM: a data science project methodology
CRISP-DM: a data science project methodologySergey Shelpuk
 
Data warehouse architecture
Data warehouse architectureData warehouse architecture
Data warehouse architecturepcherukumalla
 
Best Practices in Metadata Management
Best Practices in Metadata ManagementBest Practices in Metadata Management
Best Practices in Metadata ManagementDATAVERSITY
 
Data Architecture, Solution Architecture, Platform Architecture — What’s the ...
Data Architecture, Solution Architecture, Platform Architecture — What’s the ...Data Architecture, Solution Architecture, Platform Architecture — What’s the ...
Data Architecture, Solution Architecture, Platform Architecture — What’s the ...DATAVERSITY
 
Introduction to Data Visualization
Introduction to Data VisualizationIntroduction to Data Visualization
Introduction to Data VisualizationStephen Tracy
 
DATA MART APPROCHES TO ARCHITECTURE
DATA MART APPROCHES TO ARCHITECTUREDATA MART APPROCHES TO ARCHITECTURE
DATA MART APPROCHES TO ARCHITECTURESachin Batham
 
Data Science Training | Data Science Tutorial | Data Science Certification | ...
Data Science Training | Data Science Tutorial | Data Science Certification | ...Data Science Training | Data Science Tutorial | Data Science Certification | ...
Data Science Training | Data Science Tutorial | Data Science Certification | ...Edureka!
 
Business Intelligence (BI) and Data Management Basics
Business Intelligence (BI) and Data Management  Basics Business Intelligence (BI) and Data Management  Basics
Business Intelligence (BI) and Data Management Basics amorshed
 
Modern Data architecture Design
Modern Data architecture DesignModern Data architecture Design
Modern Data architecture DesignKujambu Murugesan
 
Analytics, Business Intelligence, and Data Science - What's the Progression?
Analytics, Business Intelligence, and Data Science - What's the Progression?Analytics, Business Intelligence, and Data Science - What's the Progression?
Analytics, Business Intelligence, and Data Science - What's the Progression?DATAVERSITY
 
Data Mining Technique - CRISP-DM
Data Mining Technique - CRISP-DMData Mining Technique - CRISP-DM
Data Mining Technique - CRISP-DMAshish Chandra Jha
 
Exploratory data analysis
Exploratory data analysis Exploratory data analysis
Exploratory data analysis Peter Reimann
 
Enterprise Architecture vs. Data Architecture
Enterprise Architecture vs. Data ArchitectureEnterprise Architecture vs. Data Architecture
Enterprise Architecture vs. Data ArchitectureDATAVERSITY
 

What's hot (20)

Data Warehouse 101
Data Warehouse 101Data Warehouse 101
Data Warehouse 101
 
Introduction to ETL and Data Integration
Introduction to ETL and Data IntegrationIntroduction to ETL and Data Integration
Introduction to ETL and Data Integration
 
Data Catalogs Are the Answer – What is the Question?
Data Catalogs Are the Answer – What is the Question?Data Catalogs Are the Answer – What is the Question?
Data Catalogs Are the Answer – What is the Question?
 
Business Intelligence Overview
Business Intelligence OverviewBusiness Intelligence Overview
Business Intelligence Overview
 
CRISP-DM: a data science project methodology
CRISP-DM: a data science project methodologyCRISP-DM: a data science project methodology
CRISP-DM: a data science project methodology
 
Data warehouse architecture
Data warehouse architectureData warehouse architecture
Data warehouse architecture
 
Best Practices in Metadata Management
Best Practices in Metadata ManagementBest Practices in Metadata Management
Best Practices in Metadata Management
 
Data Architecture, Solution Architecture, Platform Architecture — What’s the ...
Data Architecture, Solution Architecture, Platform Architecture — What’s the ...Data Architecture, Solution Architecture, Platform Architecture — What’s the ...
Data Architecture, Solution Architecture, Platform Architecture — What’s the ...
 
Introduction to Data Visualization
Introduction to Data VisualizationIntroduction to Data Visualization
Introduction to Data Visualization
 
DATA MART APPROCHES TO ARCHITECTURE
DATA MART APPROCHES TO ARCHITECTUREDATA MART APPROCHES TO ARCHITECTURE
DATA MART APPROCHES TO ARCHITECTURE
 
Data Science Training | Data Science Tutorial | Data Science Certification | ...
Data Science Training | Data Science Tutorial | Data Science Certification | ...Data Science Training | Data Science Tutorial | Data Science Certification | ...
Data Science Training | Data Science Tutorial | Data Science Certification | ...
 
Business Intelligence (BI) and Data Management Basics
Business Intelligence (BI) and Data Management  Basics Business Intelligence (BI) and Data Management  Basics
Business Intelligence (BI) and Data Management Basics
 
Snowflake Overview
Snowflake OverviewSnowflake Overview
Snowflake Overview
 
Modern Data architecture Design
Modern Data architecture DesignModern Data architecture Design
Modern Data architecture Design
 
Analytics, Business Intelligence, and Data Science - What's the Progression?
Analytics, Business Intelligence, and Data Science - What's the Progression?Analytics, Business Intelligence, and Data Science - What's the Progression?
Analytics, Business Intelligence, and Data Science - What's the Progression?
 
Data Mining Technique - CRISP-DM
Data Mining Technique - CRISP-DMData Mining Technique - CRISP-DM
Data Mining Technique - CRISP-DM
 
Exploratory data analysis
Exploratory data analysis Exploratory data analysis
Exploratory data analysis
 
Data Analytics Life Cycle
Data Analytics Life CycleData Analytics Life Cycle
Data Analytics Life Cycle
 
Tableau Prep.pptx
Tableau Prep.pptxTableau Prep.pptx
Tableau Prep.pptx
 
Enterprise Architecture vs. Data Architecture
Enterprise Architecture vs. Data ArchitectureEnterprise Architecture vs. Data Architecture
Enterprise Architecture vs. Data Architecture
 

Viewers also liked

Top 5 Considerations for a Big Data Solution
Top 5 Considerations for a Big Data SolutionTop 5 Considerations for a Big Data Solution
Top 5 Considerations for a Big Data SolutionDataStax
 
Science of culture? Computational analysis and visualization of cultural imag...
Science of culture? Computational analysis and visualization of cultural imag...Science of culture? Computational analysis and visualization of cultural imag...
Science of culture? Computational analysis and visualization of cultural imag...Lev Manovich
 
Big Data
Big DataBig Data
Big DataNGDATA
 
Big Data - 25 Amazing Facts Everyone Should Know
Big Data - 25 Amazing Facts Everyone Should KnowBig Data - 25 Amazing Facts Everyone Should Know
Big Data - 25 Amazing Facts Everyone Should KnowBernard Marr
 

Viewers also liked (6)

Top 5 Considerations for a Big Data Solution
Top 5 Considerations for a Big Data SolutionTop 5 Considerations for a Big Data Solution
Top 5 Considerations for a Big Data Solution
 
Science of culture? Computational analysis and visualization of cultural imag...
Science of culture? Computational analysis and visualization of cultural imag...Science of culture? Computational analysis and visualization of cultural imag...
Science of culture? Computational analysis and visualization of cultural imag...
 
Big Data
Big DataBig Data
Big Data
 
Big Data - 25 Amazing Facts Everyone Should Know
Big Data - 25 Amazing Facts Everyone Should KnowBig Data - 25 Amazing Facts Everyone Should Know
Big Data - 25 Amazing Facts Everyone Should Know
 
Big data ppt
Big data pptBig data ppt
Big data ppt
 
Big data ppt
Big  data pptBig  data ppt
Big data ppt
 

Similar to Big Data Platforms: An Overview

UNIT I Introduction to NoSQL.pptx
UNIT I Introduction to NoSQL.pptxUNIT I Introduction to NoSQL.pptx
UNIT I Introduction to NoSQL.pptxRahul Borate
 
UNIT I Introduction to NoSQL.pptx
UNIT I Introduction to NoSQL.pptxUNIT I Introduction to NoSQL.pptx
UNIT I Introduction to NoSQL.pptxRahul Borate
 
Big Data (NJ SQL Server User Group)
Big Data (NJ SQL Server User Group)Big Data (NJ SQL Server User Group)
Big Data (NJ SQL Server User Group)Don Demcsak
 
Relational and non relational database 7
Relational and non relational database 7Relational and non relational database 7
Relational and non relational database 7abdulrahmanhelan
 
Oracle Week 2016 - Modern Data Architecture
Oracle Week 2016 - Modern Data ArchitectureOracle Week 2016 - Modern Data Architecture
Oracle Week 2016 - Modern Data ArchitectureArthur Gimpel
 
Big iron 2 (published)
Big iron 2 (published)Big iron 2 (published)
Big iron 2 (published)Ben Stopford
 
NoSQLDatabases
NoSQLDatabasesNoSQLDatabases
NoSQLDatabasesAdi Challa
 
Relational databases vs Non-relational databases
Relational databases vs Non-relational databasesRelational databases vs Non-relational databases
Relational databases vs Non-relational databasesJames Serra
 
Jay Kreps on Project Voldemort Scaling Simple Storage At LinkedIn
Jay Kreps on Project Voldemort Scaling Simple Storage At LinkedInJay Kreps on Project Voldemort Scaling Simple Storage At LinkedIn
Jay Kreps on Project Voldemort Scaling Simple Storage At LinkedInLinkedIn
 
SQL, NoSQL, BigData in Data Architecture
SQL, NoSQL, BigData in Data ArchitectureSQL, NoSQL, BigData in Data Architecture
SQL, NoSQL, BigData in Data ArchitectureVenu Anuganti
 
Solr cloud the 'search first' nosql database extended deep dive
Solr cloud the 'search first' nosql database   extended deep diveSolr cloud the 'search first' nosql database   extended deep dive
Solr cloud the 'search first' nosql database extended deep divelucenerevolution
 
Introducing NoSQL and MongoDB to complement Relational Databases (AMIS SIG 14...
Introducing NoSQL and MongoDB to complement Relational Databases (AMIS SIG 14...Introducing NoSQL and MongoDB to complement Relational Databases (AMIS SIG 14...
Introducing NoSQL and MongoDB to complement Relational Databases (AMIS SIG 14...Lucas Jellema
 
Dropping ACID: Wrapping Your Mind Around NoSQL Databases
Dropping ACID: Wrapping Your Mind Around NoSQL DatabasesDropping ACID: Wrapping Your Mind Around NoSQL Databases
Dropping ACID: Wrapping Your Mind Around NoSQL DatabasesKyle Banerjee
 

Similar to Big Data Platforms: An Overview (20)

UNIT I Introduction to NoSQL.pptx
UNIT I Introduction to NoSQL.pptxUNIT I Introduction to NoSQL.pptx
UNIT I Introduction to NoSQL.pptx
 
UNIT I Introduction to NoSQL.pptx
UNIT I Introduction to NoSQL.pptxUNIT I Introduction to NoSQL.pptx
UNIT I Introduction to NoSQL.pptx
 
NoSQL.pptx
NoSQL.pptxNoSQL.pptx
NoSQL.pptx
 
Big Data (NJ SQL Server User Group)
Big Data (NJ SQL Server User Group)Big Data (NJ SQL Server User Group)
Big Data (NJ SQL Server User Group)
 
Relational and non relational database 7
Relational and non relational database 7Relational and non relational database 7
Relational and non relational database 7
 
No SQL
No SQLNo SQL
No SQL
 
6269441.ppt
6269441.ppt6269441.ppt
6269441.ppt
 
Oracle Week 2016 - Modern Data Architecture
Oracle Week 2016 - Modern Data ArchitectureOracle Week 2016 - Modern Data Architecture
Oracle Week 2016 - Modern Data Architecture
 
Big iron 2 (published)
Big iron 2 (published)Big iron 2 (published)
Big iron 2 (published)
 
NOsql Presentation.pdf
NOsql Presentation.pdfNOsql Presentation.pdf
NOsql Presentation.pdf
 
NoSQLDatabases
NoSQLDatabasesNoSQLDatabases
NoSQLDatabases
 
Relational databases vs Non-relational databases
Relational databases vs Non-relational databasesRelational databases vs Non-relational databases
Relational databases vs Non-relational databases
 
Jay Kreps on Project Voldemort Scaling Simple Storage At LinkedIn
Jay Kreps on Project Voldemort Scaling Simple Storage At LinkedInJay Kreps on Project Voldemort Scaling Simple Storage At LinkedIn
Jay Kreps on Project Voldemort Scaling Simple Storage At LinkedIn
 
SQL, NoSQL, BigData in Data Architecture
SQL, NoSQL, BigData in Data ArchitectureSQL, NoSQL, BigData in Data Architecture
SQL, NoSQL, BigData in Data Architecture
 
Solr cloud the 'search first' nosql database extended deep dive
Solr cloud the 'search first' nosql database   extended deep diveSolr cloud the 'search first' nosql database   extended deep dive
Solr cloud the 'search first' nosql database extended deep dive
 
Database Technologies
Database TechnologiesDatabase Technologies
Database Technologies
 
BigData, NoSQL & ElasticSearch
BigData, NoSQL & ElasticSearchBigData, NoSQL & ElasticSearch
BigData, NoSQL & ElasticSearch
 
Introducing NoSQL and MongoDB to complement Relational Databases (AMIS SIG 14...
Introducing NoSQL and MongoDB to complement Relational Databases (AMIS SIG 14...Introducing NoSQL and MongoDB to complement Relational Databases (AMIS SIG 14...
Introducing NoSQL and MongoDB to complement Relational Databases (AMIS SIG 14...
 
No sql
No sqlNo sql
No sql
 
Dropping ACID: Wrapping Your Mind Around NoSQL Databases
Dropping ACID: Wrapping Your Mind Around NoSQL DatabasesDropping ACID: Wrapping Your Mind Around NoSQL Databases
Dropping ACID: Wrapping Your Mind Around NoSQL Databases
 

Recently uploaded

"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek SchlawackFwdays
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024Lorenzo Miniero
 
The Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdfThe Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdfSeasiaInfotech2
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxNavinnSomaal
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
Vector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector DatabasesVector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector DatabasesZilliz
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024The Digital Insurer
 
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfRankYa
 
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostLeverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostZilliz
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsMiki Katsuragi
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyAlfredo García Lavilla
 
Training state-of-the-art general text embedding
Training state-of-the-art general text embeddingTraining state-of-the-art general text embedding
Training state-of-the-art general text embeddingZilliz
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Mark Simos
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 

Recently uploaded (20)

"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
 
The Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdfThe Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdf
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptx
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
Vector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector DatabasesVector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector Databases
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024
 
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdf
 
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostLeverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering Tips
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easy
 
Training state-of-the-art general text embedding
Training state-of-the-art general text embeddingTraining state-of-the-art general text embedding
Training state-of-the-art general text embedding
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 

Big Data Platforms: An Overview

  • 1. Big Data Platforms: An Overview C. Scyphers Chief Technical Architect Daemon Consulting, LLC
  • 2. What Is “Big Data”? • Big Data is not simply a huge pile of information • A good starting place is the following thought: “Big Data describes datasets so large they become very difficult to manage with traditional database tools.”
  • 3. What Is A Big Data Platform? Putting it simply, it is any platform which supports those kind of large datasets.
  • 4. It doesn’t have to be cutting edge technology.
  • 5. Lots of legacy technologies can address the problem.
  • 6. If only at a sizeable cost.
  • 7. SQL Of the new technologies, the most promising are from the “NoSQL” family.
  • 8. What Is “NoSQL”? SQL A family of non-relational data storage technologies
  • 12. Usually with less cost than more traditional approaches.
  • 13. Some of these technologies are new and innovative
  • 14. Others have been around for decades.
  • 15. NoSQL Does Not Mean “SQL Is Bad” When the trend was just starting, “NoSQL” was coined. It’s unfortunate, because it implies antagonism towards SQL.
  • 16. NoSQL Means “Not Only SQL” RELATIONAL RELATIONAL NON- NoSQL is a complement to a traditional RDBMS, not necessarily as a replacement of them.
  • 18. Scale is very hard without ridiculous expense
  • 19. SQL can get very complex, very quickly
  • 20. Changing a schema for a large production system is both risky and expensive
  • 21. Throughput can be a challenge
  • 23. Scale is achieved through a shared-nothing architecture, removing bottlenecks
  • 24. Schemaless design means change becomes much less risky and significantly cheaper
  • 25. Most solutions use simple RESTful interfaces
  • 26. NoSQL is based upon a better understanding of data storage, usually referred to as the “CAP Theorem”
  • 27. The CAP Theorem Grossly simplified (with apologies to Brewer): A database can be • Consistent (All clients see the same data) • Available (All clients can find some available node) • Partition-Tolerant (the database will continue to function even if split into disconnected sets – e.g. a network disruption) Pick Any Two.
  • 28. CAP In Practice • Consistent & Available (no Partition Tolerance) • Either single machines or single site clusters. • Typically uses 2 phase commits
  • 29. CAP In Practice • Consistent & Partition Tolerant (no Availability) • Some data may be inaccessible, but the remainder is available and consistent • Sharding is an example of this implementation Customers Customers Customers A-F G-R S-Z
  • 30. CAP In Practice • Available & Partition Tolerant (no Consistency) • Some data may be inaccurate; a conflict resolution strategy is required. • DNS is an example of this, as well as standard master-slave replication
  • 31. CAP From A Vendor POV • C-A (no P) – this is generally how most RDBMS vendors operate • C-P (no A) – this is how many RDBMS’ attempt to address scale without incurring large costs • A-P (no C) – this is how most NoSQL approaches solve the problem
  • 32. ACID vs BASE Traditional Databases NoSQL Databases Tend Are ACID Compliant To Be BASE Compliant Atomicity – either the entire transaction Basically completes or none of it does Consistent – any transaction will take the Available database from one consistent state to another, with no broken constraints Isolation – changes do not affect other users Scalable until committed Durability – committed transactions can be Eventually consistent recovered in case of system failure Eventually consistent is the key phrase here
  • 33. SQL Strengths Very well known technology
  • 36. Large talent pool from which to choose
  • 37. Ad hoc operations common, if not encouraged
  • 38. NoSQL Strengths Built to address massive scale
  • 42. NoSQL Pros/Cons Pros Cons • Schema Evolution • Querying the data is • Horizontal Scalability much harder • Simple Protocols • Paradigm Shift • Security is a big issue • May or may not support data types (BLOBs, spatial) • Generally, uniqueness cannot be enforced
  • 43. A Disclaimer Before We Continue • I am not an expert on every possible Big Data Platform • There are hundreds of them; these are the ones I consider the leaders in the field and recommend • If you have a favorite, please let me know and I’ll update the deck for next time • The internal details on how these systems work are rather complex; I would prefer to take those questions offline
  • 44. Flavors Of NoSQL The major four divisions of NoSQL are: • Key-Value • Document Store • Columnar • Other
  • 45. Key-Value • At a very high level, key-value works essentially by pairing a index token (a key) with a data element (a value). • Both index token and the data value can be of any structure. • Such a pairing is arbitrary and up to the developer of the system to determine.
  • 46. A Key-Value Example “John Smith”, “100 Century Dr. Alexandria VA 22304” “John Doe”, “16 Kozyak Street, Lozenets District, 1408 Sofia Bulgaria” In both examples, the key is a name and the value is an address. However, the structure of the address differs between the two.
  • 47. Document Store • Document stores extend the key-value paradigm into values with multiple attributes. • The document values tend to be semi-structured data (XML, JSON, et al) but can also be Word or PDF documents.
  • 48. A Document Store Example “John Smith”, “<address><street>100 Century Dr.</street> <city>Alexandria</city> <state>VA</state> <postalCode>22304</postalCode> </address>” “John Doe”, “{ “address”: { “street”: “16 Kozyak Street” “district”: “Lozenets, 1408” “city”: “Sofia” “country”: “Bulgaria” } }”
  • 49. Columnar Family • Usually has “rows” and “columns” • Or, at least, their logical equivalents • Not a traditional, “pure” column store • More of a hybridized approach leveraging key-value pairs • A key with many values attached
  • 50. The Others • Hierarchical Databases • LDAP, Active Directory • Graph Databases • Neo4j, Flock DB, InfiniteGraph • XML • MarkLogic • Object Oriented Databases • Versant • Lotus Notes • HPCC (LexisNexis)
  • 51. Key-Value Recap Pairing a index token (a key) with a data element (a value)
  • 52. Key-Value Pro/Con Pros Cons • Schema Evolution • Packing & unpacking each key • Horizontal Scalability • Keys typically are not related • Simple Protocols to each other • Works well for volatile data • The entire value must be • High throughput, typically returned, not just a part of it optimized for reads or writes • Security tends to be an issue • Keys become meaningful • Hard to support reporting, rather than arbitrary analytics, aggregation or • Application logic defines ordered values object model • Generally does not support updates in place • Application logic defines object model
  • 53. Where Did Key-Value Come From? The concept is quite old, but most people trace the lineage back to Amazon and the Dynamo paper.
  • 54. Dynamo Amazon devised the Dynamo engine as a way to address their scalability issues in a reliable way. • Communication between nodes is peer to peer (P2P) • Replication occurs with the end client addressing conflict resolution • Quorum Reads/Writes • Always writable (Hinted Handoff) • Eventually Consistent
  • 55. Eventually Consistent • Rather than expending the runtime resources to ensure that all nodes are aware of a change before continuing, Dynamo uses an eventually consistent model. • In this model, a subset of nodes are changed • Those nodes then inform their neighbors until all nodes are changed (grossly simplifying).
  • 56. Can I Use Dynamo? No. It’s an Amazon only internal product. However, AWS S3 is largely based upon it. Amazon did announce a DynamoDB offering for their AWS customers. While it’s probably the same, I cannot guarantee that it is.
  • 57. Riak • Riak is a key-value database largely modeled after the Dynamo model. • Open source (free) with paid support from Basho. • Main claims to fame: • Extreme reliability • Performance speed
  • 58. Riak Pro/Con Pros Cons • All nodes are equal – no • Not meant for small, discrete single point of failure and numerous datapoints. • Horizontal Scalability • Getting data in is great; • Full Text Search getting it out, not so much • RESTful interface (and HTTP) • Security is non-existent: • Consistency level tunable on “Riak assumes the internal each operation environment is trusted” • Secondary indexes available • Conflict resolution can bubble • Map/Reduce (JavaScript & up to the client if not careful. Erlang only) • Erlang is fast, but it’s got a serious learning curve.
  • 60. Redis • Redis is a key-value in-memory datastore. • Open source (free) with support from the community. • Main claims to fame: • Fast. So very, very fast. • Transactional support • Best for rapidly changing data
  • 61. Redis Pro/Con Pros Cons • Transactional support • Entirely in memory • Blob storage • Master-slave replication • Support for sets, lists and (instead of master-master) sorted sets • Security is non-existent: • Support for Publish-Subscribe designed to be used in (Pub-Sub) messaging trusted environments • Robust set of operators • Does not support encryption • Support can be hard to find
  • 63. Voldemort • Voldemort is a key-value in-memory database built by LinkedIn. • Open source (free) with support from the community • Main claims to fame: • Low latency • Highly Available • Very fast reads
  • 64. Voldemort Pro/Con Pros Cons • Highly customizable – each • Versioning means lots of disk layer of the stack can be space being used. replaced as needed • Does not support range • Data elements are versioned queries during changes • No complex query filters • All nodes are independent – • All joins must be done in no single point of failure code • Very, very fast reads • No foreign key constraints • No triggers • Support can be hard to find
  • 66. Key/Value “Big Vendors” • Microsoft Azure Table Storage • Oracle NoSQL • BerkleyDB (Oracle)
  • 67. Document Store Recap Document stores store an index token with a grouping of attributes in a semi- structured document
  • 68. Document Store Pro/Con Pros Cons • Tends to support a more • The entire value must be complex data model than returned, not just a part of it key/value • Security tends to be an issue • Good at content • Joins are not available within management the database • Usually supports multiple • No foreign keys indexes • Application logic defines • Schemaless (can be nested) object model • Typically low latency reads • Application logic defines object model
  • 69. CouchDB • CouchDB is a document store database. • Open source (free), part of the Apache foundation with paid support available from several vendors. • Main claims to fame: • Simple and easy to use • Good read consistency • Master-master replication
  • 70. CouchDB Pro/Con Pros Cons • Very simple API for • The simple API for development development is somewhat • MVCC support for read limited consistency • No foreign keys • Full Map/Reduce support • Conflict resolution devolves • Data is versioned to the application • Secondary indexes supported • Versioning requires extensive • Some security support disk space • RESTful API, JSON support • Versioning places large load • Materialized views with on I/O channels incremental update support • Replication for performance, not availability
  • 72. MongoDB • MongoDB is a document store database. • Open source (free) with paid support available from 10Gen. • Main claims to fame: • Index anything • Ad hoc query support • SQL like operations (not SQL syntax)
  • 73. MongoDB Pro/Con Pros Cons • Auto-sharding • Does not support JSON: BSON • Auto-failover instead • Update in place • Master-slave replication • Spatial index support • Has had some growing pains • Ad hoc query support (e.g. Foursquare outage) • Any field in Mongo can be • Not RESTful by default indexed • Failures require a manual • Very, very popular (lots of database repair operation production deployments) (similar to MySQL) • Very easy transition from SQL • Replication for availability, not performance
  • 75. Document Store “Big Vendors” • Lotus Domino
  • 76. Columnar Family Recap • A key with many values attached • Usually presenting as “rows” and “columns” • Or, at least, their logical equivalents
  • 77. Columnar Pro/Con Pros Cons • Tend to have some level of • Is much less efficient when rudimentary security support processing many columns • Usually include a degree of simultaneously versioning • Joins tend to not be • Can be more efficient than supported row databases when • Referential integrity not processing a limited number available of columns over a large amount of rows
  • 78. Where Did Columnar Come From? The concept has been around for a while, but most people trace the NoSQL lineage back to Google.
  • 79. BigTable Google devised the BigTable engine as a way to address their search related scalability issues in a reliable way. • Data is organized through a set of keys: • Row • Column • Timestamp • A hybrid row/column store with a single master • Versioning is handled through the time key • Tablets are a dynamic partition of a sequence of rows – supports very efficient range scans • Columns can be grouped into column families • Column families can have access control
  • 80. Can I Use BigTable? No. It’s a Google only internal product. However, quite a few open source products are built upon the concepts.
  • 81. Cassandra • Cassandra is a hybrid of Big Table built on Dynamo infrastructure • Open source (free), built by Facebook with paid support available from several vendors. • Main claims to fame: • An Apache project • Very, very fast writes • Spans multiple datacenters
  • 82. Cassandra Pro/Con Pros Cons • Designed to span multiple • No joins datacenters • No referential integrity • Peer to peer communication • Written in Java – quite between nodes complex to administer • No single point of failure and configure • Always writeable • Last update wins • Consistency level is tunable at run time • Supports secondary indexes • Supports Map/Reduce • Supports range queries
  • 84. HBase • Hbase is a columnar database built on top of the Hadoop environment. • Open source (free) with paid support from numerous vendors • Main claims to fame: • Ad hoc type abilities • Easy integration with Map/Reduce
  • 85. HBase Pro/Con Pros Cons • Map/Reduce support • Secondary indexes generally • More of a CA approach and not supported an AP • Security is non-existent • Supports predicate push • Requires a Hadoop down for performance gains infrastructure to function • Automatic partitioning and rebalancing of regions • Data is stored in a sorted order (not indexed) • RESTful API • Strong and vibrant ecosystem
  • 87. Hadoop • Hadoop is not a columnar store as such. • Rather, Hadoop is a massively parallel data processing engine • Main claims to fame: • Specializes in unstructured data • Very flexible and popular
  • 88. Hadoop Pro/Con Pros Cons • While written in Java, almost • Large amounts of disk space any language can leverage and bandwidth required Hadoop • Paradigm shift for IT staff • Runs on commodity servers • Quality talent is highly in • Horizontally scalable demand and expensive • Very fast and powerful • Security is non-existent • Where Map/Reduce • Name node is a single point originated of failure • Ample support from vendors • More or less only supporting • “Helper” languages like Hive batch processing and Pig • Not user friendly to anyone • Strong and vibrant ecosystem other than developers
  • 89. Hadoop Users Plus lots, lots more
  • 90. Columnar “Big Vendor” • EMC Greenplum • Teradata Aster In so far as both of these solutions are grafting Map/Reduce into a (more or less) SQL environment
  • 91. Which One Do I Use Where? • Key-Value for (relatively) simple, volitile data • Document store for more complex data • Columnar for analytical processing • RBDMS for traditional processing – particularly where a lazy consistency is not acceptable • Point Of Sale, for example
  • 93. @scyphers Additional Information At http://www.daemonconsulting.net/BDC-FOSE-2012 Daemon Consulting, LLC http://www.daemonconsulting.net/ Specializing In The Hard Stuff