Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
What is NoSQL and
CAP Theorem
June 2014 NoSQL Meetup
Rahul Jain
@rahuldausa
Who am I ?
 Software Engineer
 7 years of software development experience
 Areas of expertise/interest
 High traffic w...
Agenda
• What is NoSQL
• CAP Theorem
3
NoSQL Not SQL
does not mean
NoSQL Not Only SQL
OR
Not Relational DatabaseIt means
Why NoSQL
• Large Volume of Data
• Dynamic Schemas
• Auto-sharding
• Replication
• Horizontally Scalable
* Some Operations...
Major NoSQL Categories
• Document databases
• pair each key with a complex data structure
known as a document.
• MongoDB
•...
Major NoSQL Categories
• Key-Value stores
• Every single item in the database is stored as an
attribute name (or "key"),
•...
CAP Theorem
CAP Theorem
• Consistency
– All the servers in the system will have the same data
so anyone using the system will get the ...
Credit: http://architects.dzone.com/articles/better-explaining-cap-theorem
Choosing AP
Credit: https://foundationdb.com/key-value-store/white-papers/the-cap-theorem
Choosing CP
Credit: https://foundationdb.com/key-value-store/white-papers/the-cap-theorem
Replication allows to
add Availa...
Finally …
SQL
Works great, but can’t fit for large dataset
NoSQL
Works great, but can’t fit for all Use-cases
SQL + NoSQL
Thanks!
@rahuldausa on twitter and slideshare
http://www.linkedin.com/in/rahuldausa
Interested in Search/Information Retri...
Upcoming SlideShare
Loading in …5
×

What is NoSQL and CAP Theorem

19,152 views

Published on

A short presentation for beginners on NoSQL, its major goals, types of NoSQL DBs and CAP Theorem.

Published in: Technology, Education
  • Be the first to comment

What is NoSQL and CAP Theorem

  1. 1. What is NoSQL and CAP Theorem June 2014 NoSQL Meetup Rahul Jain @rahuldausa
  2. 2. Who am I ?  Software Engineer  7 years of software development experience  Areas of expertise/interest  High traffic web applications  JAVA/J2EE  Big data, NoSQL  Information-Retrieval, Machine learning 2
  3. 3. Agenda • What is NoSQL • CAP Theorem 3
  4. 4. NoSQL Not SQL does not mean
  5. 5. NoSQL Not Only SQL OR Not Relational DatabaseIt means
  6. 6. Why NoSQL • Large Volume of Data • Dynamic Schemas • Auto-sharding • Replication • Horizontally Scalable * Some Operations can be achieved by Enterprise class RDBMS software but with very High cost
  7. 7. Major NoSQL Categories • Document databases • pair each key with a complex data structure known as a document. • MongoDB • Graph databases • store information about networks, such as social connections • Neo4j Contd.
  8. 8. Major NoSQL Categories • Key-Value stores • Every single item in the database is stored as an attribute name (or "key"), • Riak , Voldemort, Redis • Wide-column stores • store data in columns together, instead of row • Google’s Bigtable, Cassandra and HBase
  9. 9. CAP Theorem
  10. 10. CAP Theorem • Consistency – All the servers in the system will have the same data so anyone using the system will get the same copy regardless of which server answers their request. • Availability – The system will always respond to a request (even if it's not the latest data or consistent across the system or just a message saying the system isn't working) • Partition Tolerance – The system continues to operate as a whole even if individual servers fail or can't be reached..
  11. 11. Credit: http://architects.dzone.com/articles/better-explaining-cap-theorem
  12. 12. Choosing AP Credit: https://foundationdb.com/key-value-store/white-papers/the-cap-theorem
  13. 13. Choosing CP Credit: https://foundationdb.com/key-value-store/white-papers/the-cap-theorem Replication allows to add Availability
  14. 14. Finally … SQL Works great, but can’t fit for large dataset NoSQL Works great, but can’t fit for all Use-cases SQL + NoSQL
  15. 15. Thanks! @rahuldausa on twitter and slideshare http://www.linkedin.com/in/rahuldausa Interested in Search/Information Retrieval ? Join us @ http://www.meetup.com/Hyderabad-Apache-Solr-Lucene-Group/ 15

×