Nicolas RuflinNicolas Ruflin
NoSQL or not NoSQL? 8. December 2010
About Me
• Nicolas Ruflin @ruflin
• Head Developer useKit
• Master Thesis: Adequate storage of social data
• Elastica: ElasticSearch PHP client
Nicolas RuflinNicolas Ruflin
NoSQL or not NoSQL? 8. December 2010
NoSQL: Not only SQL• Point being - when I rant about the suitability
of NoSQL solutions, I’m mainly complaining that in many cases it seems to me that they’re using them because they’re popular or trendy and not because they are or are not actually suited to the task at hand. ~Monty Taylor
• RDBMS was used in some many cases just because it was around for such a long time. ~Alex Popescu
Nicolas RuflinNicolas Ruflin
NoSQL or not NoSQL? 8. December 2010
Why NoSQL?
http://gigaom.com/cloud/sensor-networks-top-social-networks-for-big-data-2/
Nicolas RuflinNicolas Ruflin
NoSQL or not NoSQL? 8. December 2010
Why NoSQL?
• What is the problem with SQL?
• Semi structured data
• Horizontal scalability (read & write)
• Thousands of nodes
• ...
Nicolas RuflinNicolas Ruflin
NoSQL or not NoSQL? 8. December 2010
NoSQL Data Models
http://blogs.neotechnology.com/emil/2009/11/nosql-scaling-to-size-and-scaling-to-complexity.html
Nicolas RuflinNicolas Ruflin
NoSQL or not NoSQL? 8. December 2010
NoSQL vs. SQL
Data model Query language
SQL solutions Structured(normalized)
SQL
NoSQL solutions Semi structured MapReduce, ...
Nicolas RuflinNicolas Ruflin
NoSQL or not NoSQL? 8. December 2010
NoSQL Challenges
• Complexity
• Setup
• Queries (MapReduce)
• Data models
• Maturity
Nicolas RuflinNicolas Ruflin
NoSQL or not NoSQL? 8. December 2010
Where to use NoSQL• Social data
• Data processing (Hadoop)
• Search (Lucene)
• Caching (Memcache, ...)
• Data Warehousing
• Logging
• ...
Nicolas RuflinNicolas Ruflin
NoSQL or not NoSQL? 8. December 2010
NoSQL or SQL?
• Wrong question
• What is your problem?
• Transactions
• Amount of data
• Data structure
Nicolas RuflinNicolas Ruflin
NoSQL or not NoSQL? 8. December 2010
NoSQL Getting Started
• Blogs
• http://nosql.mypopescu.com/
• http://highscalability.com/
• Papers
• Dynamo (Amazon)
• BigTable (Google)
Nicolas RuflinNicolas Ruflin
NoSQL or not NoSQL? 8. December 2010
CAP Theorem
http://blog.nahurst.com/visual-guide-to-nosql-systems