the nosql ecosystem
play

The NoSQL Ecosystem 7-21-10 Wednesday, July 21, 2010 Executive - PowerPoint PPT Presentation

Jonathan Ellis @spyced jbellis@riptano.com The NoSQL Ecosystem 7-21-10 Wednesday, July 21, 2010 Executive summary NoSQL is about using the right tool for the job Wednesday, July 21, 2010 My bias Started working on Cassandra in 2009


  1. Jonathan Ellis @spyced jbellis@riptano.com The NoSQL Ecosystem 7-21-10 Wednesday, July 21, 2010

  2. Executive summary ✤ NoSQL is about using the right tool for the job Wednesday, July 21, 2010

  3. My bias ✤ Started working on Cassandra in 2009 after looking at the alternatives ✤ Co-founded Riptano in April 2010 Wednesday, July 21, 2010

  4. NoSQL at OSCON ✤ Introduction to MongoDB ✤ Scaling Sourceforge with MongoDB ✤ Hadoop, Pig, and Twitter* ✤ (Plus the Neo4J and Cassandra tutorials Monday and Tuesday) Wednesday, July 21, 2010

  5. Why NoSQL? 1 ✤ Relational databases don’t scale Wednesday, July 21, 2010

  6. Wednesday, July 21, 2010

  7. Wednesday, July 21, 2010

  8. Wednesday, July 21, 2010

  9. Wednesday, July 21, 2010

  10. Wednesday, July 21, 2010

  11. Wednesday, July 21, 2010

  12. Wednesday, July 21, 2010

  13. Wednesday, July 21, 2010

  14. Wednesday, July 21, 2010

  15. Wednesday, July 21, 2010

  16. Wednesday, July 21, 2010

  17. Wednesday, July 21, 2010

  18. Wednesday, July 21, 2010

  19. Wednesday, July 21, 2010

  20. Wednesday, July 21, 2010

  21. (“The eBay Architecture,” Randy Shoup and Dan Pritchett) Wednesday, July 21, 2010

  22. Wednesday, July 21, 2010

  23. Why NoSQL? 2 ✤ The relational model maps poorly to some problems ✤ Sub-category: almost all NoSQL databases are schema-free or schema-optional to some degree Wednesday, July 21, 2010

  24. Wednesday, July 21, 2010

  25. Why NoSQL? 3 ✤ Relational databases are slow Wednesday, July 21, 2010

  26. Wednesday, July 21, 2010

  27. Myth 1 ✤ “NoSQL is for people who don’t understand {SQL, denormalization, query tuning, ...}” ✤ Similarly: “Only users of [database X] are turning to NoSQL databases, because X sucks.” Wednesday, July 21, 2010

  28. eBay: NoSQL pioneer ✤ “BASE is diametrically opposed to ACID. Where ACID is pessimistic and forces consistency at the end of every operation, BASE is optimistic and accepts that the database consistency will be in a state of flux. Although this sounds impossible to cope with, in reality it is quite manageable and leads to levels of scalability that cannot be obtained with ACID.” ”BASE: An Acid Alternative,” Dan Pritchett, eBay ✤ Wednesday, July 21, 2010

  29. Scale forces tradeoffs Wednesday, July 21, 2010

  30. Myth 2 ✤ “NoSQL is nothing new because we had key/value databases like bdb years ago.” Wednesday, July 21, 2010

  31. Myth 3 ✤ “Only huge sites like Facebook and Twitter need to care about scalability.” Wednesday, July 21, 2010

  32. The downside to NoSQL-as-identifier Wednesday, July 21, 2010

  33. Evaluating NoSQL databases ✤ Data model / query language ✤ Scalability / availability ✤ Persistence Wednesday, July 21, 2010

  34. Data model ✤ Document ✤ Collections ✤ CouchDB, MongoDB, Riak ✤ Redis ✤ ColumnFamily ✤ Key/value ✤ Cassandra, HBase ✤ bdb, bitcask, Memcached, Tokyo Cabinet ✤ Graph ✤ Neo4j, AllegroGraph, Objectivity InfiniteGraph Wednesday, July 21, 2010

  35. Document queries ✤ CouchDB ✤ js map/reduce creates [materialized] views that may be queried ✤ MongoDB ✤ b-tree indexes allow querying documents by field ✤ Riak ✤ link-walking or [runtime] js map/reduce Wednesday, July 21, 2010

  36. ColumnFamily queries SELECT * FROM tweets WHERE user_id IN (SELECT follower FROM followers WHERE user_id = ?) timeline followers ? ? tweets Wednesday, July 21, 2010

  37. Persistence ✤ Classic B-tree ✤ SSTable ✤ bdb, TC, MongoDB ✤ Cassandra, HBase ✤ Append-only B-tree ✤ Memory-only ✤ CouchDB ✤ Memcached, VoltDB ✤ On-disk linked lists ✤ Memory w/checkpoint ✤ Neo4J ✤ Membase, Redis ✤ Pluggable ✤ Riak, Voldemort Wednesday, July 21, 2010

  38. Durable ✤ bdb ✤ Cassandra ✤ CouchDB ✤ Neo4J ✤ Riak*, Voldemort* Wednesday, July 21, 2010

  39. Wednesday, July 21, 2010

  40. pathExists(a, b, 4) 1 000 2 000 ms 1 000 2 ms 1 000 000 2 ms Wednesday, July 21, 2010

  41. Reader Memtable Writer Commitlog The Log-Structured Merge-Tree, Bigtable: A Distributed Storage System for Structured Data Wednesday, July 21, 2010

  42. Scalability ✤ Master-driven vs distributed replicas Wednesday, July 21, 2010

  43. Lock manager Wednesday, July 21, 2010

  44. Wednesday, July 21, 2010

  45. Wednesday, July 21, 2010

  46. CAP ✤ Consistency ✤ Availability ✤ Partition tolerance Wednesday, July 21, 2010

  47. Multi-DC with distributed Y Key K replicas A W U F T L P Wednesday, July 21, 2010

  48. CA ✤ Scalaris ✤ VoltDB Wednesday, July 21, 2010

  49. Conclusion ✤ “If you’re deploying memcache on top of your database, you’re inventing your own ad-hoc, difficult to maintain NoSQL data store” Wednesday, July 21, 2010

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend