• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Xebia Knowledge Exchange (may 2010) - NoSQL : Using the right tool for the right job
 

Xebia Knowledge Exchange (may 2010) - NoSQL : Using the right tool for the right job

on

  • 2,546 views

 

Statistics

Views

Total Views
2,546
Views on SlideShare
2,541
Embed Views
5

Actions

Likes
3
Downloads
22
Comments
0

2 Embeds 5

http://www.slideshare.net 4
http://www.linkedin.com 1

Accessibility

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Xebia Knowledge Exchange (may 2010) - NoSQL : Using the right tool for the right job Xebia Knowledge Exchange (may 2010) - NoSQL : Using the right tool for the right job Presentation Transcript

    • NoSQLUsing the right tool for the right job
    • www.xebia.fr / blog.xebia.fr
      2
      No SQL
    • www.xebia.fr / blog.xebia.fr
      3
      Not
      Only
      I
      /
      I
      /
      No SQL
    • www.xebia.fr / blog.xebia.fr
      4
      Not
      Only
      I
      /
      I
      /
      /
      /
      No SQL
    • www.xebia.fr / blog.xebia.fr
      5
      Not
      Only
      I
      /
      I
      /
      /
      /
      No SQL
      Relational
    • www.xebia.fr / blog.xebia.fr
      6
      Need to store
      some data ?
      Oracle
      SQL Server
      Sybase
      DB2
      MySQL
      PostgreSQL
    • www.xebia.fr / blog.xebia.fr
      7
      RDBMS are great for relationalstorage !
    • www.xebia.fr / blog.xebia.fr
      8
      RDBMS may not befully trivial…
      …what a pity if youjustwanted
      a put / get store
    • www.xebia.fr / blog.xebia.fr
      9
      How to achieve
      scalability and
      highavailability
      with a RDMS ?
    • www.xebia.fr / blog.xebia.fr
      10
      Memcachedcan help to reduce the pressure on RDBMS
    • www.xebia.fr / blog.xebia.fr
      11
      But thiswasn’tenough for some people…
    • www.xebia.fr / blog.xebia.fr
      12
      The birth of Dynamo at Amazon.com…
      Temporal unavailability is acceptable
      Rich storage is preferred for reporting
      Write must ALWAYS be available
      Only key-value is required
    • www.xebia.fr / blog.xebia.fr
      13
      So theystarted to createtheirowndatabasethatwould match theirneeds…
    • www.xebia.fr / blog.xebia.fr
      14
      So theystarted to createtheirowndatabasethatwould match theirneeds…
    • www.xebia.fr / blog.xebia.fr
      15
      Consistent hashingspreadskeysuniformallyacross the partitions
    • www.xebia.fr / blog.xebia.fr
      16
      Shardingbringsscalability, replicationbringshighavailability
    • www.xebia.fr / blog.xebia.fr
      17
      But failuresstill have to behandledefficiently…
    • www.xebia.fr / blog.xebia.fr
      18
      In case of failure of a node, the 2 othernodes serve itsload
    • www.xebia.fr / blog.xebia.fr
      19
      In this configuration, clients know only few nodeswhichact as proxy to othernodes…
    • www.xebia.fr / blog.xebia.fr
      20
      Gossipprotocol to let everybody know node B has failed…
    • www.xebia.fr / blog.xebia.fr
      21
      Eventualconsistency…
      N = Number of replicas
      R = Number of readresponses to wait for
      W = Number of writeaknowledges to wait for
    • www.xebia.fr / blog.xebia.fr
      22
      The ratio between N, R and W makeseverything…
    • www.xebia.fr / blog.xebia.fr
      23
      The ratio between N, R and W makeseverything…
    • www.xebia.fr / blog.xebia.fr
      24
      The ratio between N, R and W makeseverything…
    • www.xebia.fr / blog.xebia.fr
      25
    • www.xebia.fr / blog.xebia.fr
      26
      Key-value stores
      are simple…
    • www.xebia.fr / blog.xebia.fr
      27
      Several competitors…
    • www.xebia.fr / blog.xebia.fr
      28
      Riak…
    • www.xebia.fr / blog.xebia.fr
      29
      Riak…
    • www.xebia.fr / blog.xebia.fr
      30
      Document orienteddatabases are an evolution of key-value stores
    • www.xebia.fr / blog.xebia.fr
      31
      MongoDBis the leader so far…
      … 10gen saidthey are the « MySQL of NoSQL »
    • www.xebia.fr / blog.xebia.fr
      32
      MongoDBis the leader so far…
    • www.xebia.fr / blog.xebia.fr
      33
      MongoDBis the leader so far…
    • www.xebia.fr / blog.xebia.fr
      34
      Graph databases are great to store… graphs !
    • www.xebia.fr / blog.xebia.fr
      35
      NeoTechnologyis the leader so far with Neo4j…
    • www.xebia.fr / blog.xebia.fr
      36
      Neo4j…
    • www.xebia.fr / blog.xebia.fr
      37
      Column-orienteddatabases have a veryparticular data model…
    • www.xebia.fr / blog.xebia.fr
      38
      Cassandra
      Vs
      HBase !
    • www.xebia.fr / blog.xebia.fr
      39
      Cassandra addsSuperColumns to this model…
    • www.xebia.fr / blog.xebia.fr
      40
      Cassandra wasdeveloppedatFacebook, to store the user messages
    • www.xebia.fr / blog.xebia.fr
      41
      Nowalsoused by Digg, Twitter, Rackspace,…
    • What a model…
      www.xebia.fr / blog.xebia.fr
      42
    • www.xebia.fr / blog.xebia.fr
      43
      An example…
    • www.xebia.fr / blog.xebia.fr
      44
      Cassandra Demo