CAP THEOREM NOSQL

All databases should ideally provide the following features:

CONSISTENCY

Consistency is when an end user must be able to see the latest data at all times.

AVAILABILITY

Availability is when every database request must be responded by the server.

PARTITION TOLERANCE 

When two systems cannot talk to each other in a network, it is called network partition. Our DB system should continue to function even if there is a network partition.

ConsistencyAvailability and Partition Tolerance is usually abbreviated as CAP.


CAP THEOREM'S DEFINITION

This theorem is stated by Eric Brewer. According to this theorem it is impossible for a distributed system to guarantee all three (Consistency, Availability and Partition Tolerance).

NoSQL databases are partition tolerant. In case of a network partition, there is a tradeoff between consistency and availability – some NoSQL systems give importance to Consistency while others give importance to Availability.


CAP THEOREM
Oracle (it is SQL database) offers Consistency and Availability.

Cassandra (a NoSQL database) offers Availability and Partition Tolerance.

MongoDB, Neo4 (a NoSQL database) offers Consistency and Partition Tolerance

Thanks for reading.

Comment your views guys!!!

Comments

Popular posts from this blog

TYPES OF NOSQL DATABASE