Your SlideShare is downloading. ×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

NoSQL - the Shift to a Non-Relational World

7,919
views

Published on

As more web developers strive to make their applications scalable we see a shift away from the traditional LAMP stack towards technologies built with a focus on scaling. As part of this shift, a new …

As more web developers strive to make their applications scalable we see a shift away from the traditional LAMP stack towards technologies built with a focus on scaling. As part of this shift, a new approach to data storage for the web is needed – the traditional RDBMS are not suited to many of the problems that appear in large scale web applications. Fortunately, a large number of alternatives to the RDBMS have sprung up, each with different goals and approaches to the problem of scalability.

Published in: Technology

3 Comments
36 Likes
Statistics
Notes
  • the same to Andrew. no idea about what's wrong with this download?
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • Looks like the download is trying to download a .key file not a PDF or PPTX
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • a better version of slide 2 diagram here:
    http://dmerr.tumblr.com/post/409288020/how-i-view-the-emerging-nosql-space-and-how-it
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
No Downloads
Views
Total Views
7,919
On Slideshare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
319
Comments
3
Likes
36
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide
  • Transcript

    • 1. NoSQL: The Shift to a Non-relational Dwight Merriman 10gen / MongoDB
    • 2. The database world is changing no longer one-size-fits-all RDBMS (Oracle, MySQL) Non-relational New gen. OLAP (vertica, aster, greenplum) operational stores (“NoSQL”)
    • 3. The Web Domain Distributed & Unpredictable Big data Photos, videos, huge numbers of users Not all data created equal high-value (credit cards, transactions) low-value (analytics, logs, tweets?) Nimbleness Critical agile development new programming models
    • 4. NoSQL really means: non-relational next generation operational datastores and databases
    • 5. Scaling out no joins + light transactional semantics = horizontally scalable architectures
    • 6. Scaling out - CAP pick any two A C P
    • 7. Scaling out - CAP A Amazon Dynamo Inspired (Voldemort, Cassandra, ...) C P Google BigTable / Paxos Inspired (MongoDB, Hypertable, HBase, ...)
    • 8. Scaling out distribution & query models consistent hashing range chunking order preserving scatter / gather
    • 9. Data models no joins + light transactional semantics = horizontally scalable architectures important side effect : new data models = improved ways to develop applications
    • 10. Data Models Key/Value Column-oriented / tabular Document-based
    • 11. Data Models Key/Value memcached, dynamo, voldemort, memcached Column-oriented / tabular bigtable, cassandra, hbase, hypertable Document-oriented mongodb, couchdb. JSON stores
    • 12. Case Study MongoDB at BusinessInsider.com
    • 13. MongoDB at Business Insider 600k pageviews / day 3 apache servers 1 database server at 5% MongoDB data includes posts, comments site settings real-time analytics images Ian - “We’re using LAMP - Linux, Apache, MongoDB, PHP” http://www.businessinsider.com/how-we-use-mongodb-2009-11
    • 14. Business Insider Data Model { title: ‘Too Big to Fail’, author: ‘John S’, ts: Date(“05-Nov-09 10:33”), [ comments: [ { author: 'Ian White', comment: 'Great article!' }, { author: 'Joe Smith', comment: 'But how fast is it?', replies: [ {author: 'Jane Smith', comment: 'scalable?' } ] } ] ], tags: [‘finance’, ‘economy’] }
    • 15. MongoDB Query Example cursor = db.posts.find({tags : ‘economy’}).sort({ts:-1}).limit(10); { title: ‘Too Big to Fail’, author: ‘John S’, ts: Date(“05-Nov-09 10:33”), [ comments: [ { author: 'Ian White', comment: 'Great article!' }, { author: 'Joe Smith', comment: 'But how fast is it?', replies: [ {author: 'Jane Smith', comment: 'scalable?' } ] } ] ], tags: [‘finance’, ‘economy’] }
    • 16. Advantages vs. MySQL “Schemaless” Fast writes analytics: 3-8 upserts per pageview Fast reads little caching necessary Binary storage storing images in the db itself Easy development, scalability
    • 17. Prediction within 12 months, majority of new web infrastructure projects will use a non-relational db as their primary data store
    • 18. Questions? 10gen is hiring, email dwight@10gen.com download MongoDB: www.mongodb.org