NoSQL

 It All About NoSQL Databases 

What is NoSQL?

NoSQL is a non-relational database. It doesn’t need a schema. NoSQL stands for “Not Only SQL” or “NOT SQL”. NoSQL database is a distributed database system with large database storage and it can store structured, semi-structured, unstructured, and polymorphic data. So, it is a huge advantage for large databases such as Google, Twitter, Facebook. Because they're using terabytes of data. NoSQL can be horizontally scalable when the traffic jams can be handled by adding more servers to the database. So, this database system is very functional and operational with modern technologies. The NoSQL database is mostly open-source. So, anyone can easily use those databases.


Why NoSQL?

When we using RDBMS to handle massive data volume, system response time is very slow. It makes traffics in servers.

To resolve this problem, we need to upgrade our existing hardware. But this is an expensive process. The alternative for this problem we can distribute the database with multiple hosts when the data load is increased. In that case, we can use NoSQL. So, it can be scalable as better than RDBMS. This NoSQL scaling is known as horizontal scaling.

NoSQL can remove incompatible data structures between application memory and connection databases. In hear, database creators can integrate databases using services such as Elasticsearch.



What is Cap Theorem?

CAP theorem, also known as Brewer's theorem, is named after computer scientist Eric Brewer.

  1. Consistency - Every read receives the most recent write or an error.
  2. Availability - Every request receives a response, without a guarantee.
  3. Partition Tolerance - system continues to function despite the loss of several messages between network nodes



             


               CA: RDBMS

               AP: Riak, CouchDB, Dynamo, Voldemort

               CP: MongoDB, HBase, BigTable





Types of NoSQL Databases

NoSQL databases are classified into four main categories, those are 

  1. Key-value Pair Based
  2. Column-oriented Graph
  3. Graphs based
  4. Document-oriented

Every type has a unique attribute. So, users need to select a suitable database type for their product’s needs.


Advantages of NoSQL
  • Handles larger data volumes
  • Horizontal Scalable 
  • Store Unstructured, Semi-Structured, or Structured Data
  • Developer friendly
Disadvantages of NoSQL
  • NoSQL is fewer functionalities than SQL
  • Limited query capabilities
  • Mostly open source
Sources
  • https://en.wikipedia.org/wiki/CAP_theorem
  • https://www.mongodb.com/nosql-explained


Comments

Popular posts from this blog

Node.js

Front end with React.Js