Top Banner
What is NoSQL and CAP Theorem June 2014 NoSQL Meetup Rahul Jain @rahuldausa
15

What is NoSQL and CAP Theorem

May 07, 2015

Download

Technology

Rahul Jain

A short presentation for beginners on NoSQL, its major goals, types of NoSQL DBs and CAP Theorem.
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: What is NoSQL and CAP Theorem

What is NoSQL and CAP Theorem

June 2014 NoSQL Meetup

Rahul Jain

@rahuldausa

Page 2: What is NoSQL and CAP Theorem

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

Page 3: What is NoSQL and CAP Theorem

3

Agenda

• What is NoSQL

• CAP Theorem

Page 4: What is NoSQL and CAP Theorem

NoSQL Not SQLdoes not mean

Page 5: What is NoSQL and CAP Theorem

NoSQL Not Only SQL ORNot Relational DatabaseIt means

Page 6: What is NoSQL and CAP Theorem

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

Page 7: What is NoSQL and CAP Theorem

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.

Page 8: What is NoSQL and CAP Theorem

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

Page 9: What is NoSQL and CAP Theorem

CAP Theorem

Page 10: What is NoSQL and CAP Theorem

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..

Page 12: What is NoSQL and CAP Theorem

Choosing AP

Credit: https://foundationdb.com/key-value-store/white-papers/the-cap-theorem

Page 13: What is NoSQL and CAP Theorem

Choosing CP

Credit: https://foundationdb.com/key-value-store/white-papers/the-cap-theorem

Replication allows to

add Availability

Page 14: What is NoSQL and CAP Theorem

Finally …

SQL Works great, but can’t fit for large dataset

NoSQL Works great, but can’t fit for all Use-cases

SQL + NoSQL

Page 15: What is NoSQL and CAP Theorem

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/