• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
NoSQL Introduction
 

NoSQL Introduction

on

  • 2,874 views

The road to infinite scalability.

The road to infinite scalability.

Statistics

Views

Total Views
2,874
Views on SlideShare
2,636
Embed Views
238

Actions

Likes
4
Downloads
157
Comments
0

8 Embeds 238

http://www.ahmedsoliman.com 129
http://www.slideshare.net 64
http://ahmedsoliman.com 19
http://www.linkedin.com 16
http://blog.ahmedsoliman.com 6
http://www.omraneya.net 2
http://www.lmodules.com 1
http://static.slidesharecdn.com 1
More...

Accessibility

Categories

Upload Details

Uploaded via as Apple Keynote

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
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />

NoSQL Introduction NoSQL Introduction Presentation Transcript

  • NoSQL introduction The road to infinite scalability Ahmed Soliman Head of Research and Development Cloud Niners Information Systems L.L.C
  • @AhmedSoliman
  • www.ahmedsoliman.com
  • SQL Databases == RDBMS* *yes, this a common convention
  • How do you scale a SQL database?
  • clustering partitioning sharding caching partitioning
  • What is a database true scalability?
  • Horizontal scale* *more servers creates more capacity
  • Transparency *business logic should be separated from concerns of scaling server resources
  • No Single Point Of Failure
  • Ok, let’s see how SQL do?
  • Vertical Scalability* * more capacity means bigger box
  • Horizontal Scalability* *aka, partitioning or sharding
  • Read-only slaves
  • So, how to solve this problem?
  • Simple! By redefining the question :)
  • Is relational databases always the right solution?
  • Relational properties* *do you mean ACID?
  • Atomicity Consistency Isolation Durability
  • Do you “really’ need that?
  • You might feel that you do
  • Trust me, you don’t
  • welcome to the web scale
  • More than 400 million active users
  • Over 160 million objects (pages, groups, etc.)
  • More than 25 billion pieces of contents* *links, videos, blog posts, notes, photos, etc.
  • SQL databases cannot handle the web scale
  • Why?
  • It costs 100,000$ to setup a SQL cluster* *think of the hardware requirements
  • Cost is not proportional to load
  • Cost is not proportional to load Although it should!
  • So, why is that?
  • This will be explained in the next presentation(s)
  • enter the world of NoSQL
  • Non Relational
  • Key-Value store
  • Key = “value”
  • Based on DHT* *distributed hash table
  • document store
  • Schema free database
  • {name: “mongo”, type:”db”}
  • PERFORMANCE
  • SQL Database It takes SQL Server 2008 160 seconds to insert 50,000 rows
  • NoSQL Database It takes MongoDB Server 5 seconds to insert the same number of records
  • Man! This is REALLY fast.
  • Built-in Map-Reduce
  • Geospatial Support
  • Conclusion
  • Google, Yahoo, Facebook, LinkedIn, Twitter, Digg, etc.
  • Horizontal scalability
  • Horizontal scalability Commodity hardware
  • Horizontal scalability Commodity hardware High performance
  • Horizontal scalability Commodity hardware High performance Fault tolerance
  • Horizontal scalability Commodity hardware High performance Fault tolerance Eventual consistency
  • Horizontal scalability Commodity hardware High performance Fault tolerance Eventual consistency *optional
  • Horizontal scalability Commodity hardware High performance Fault tolerance Eventual consistency *optional And lots more...
  • Q&A