Type of NoSQL databases

Connect with

The NoSQL (not only SQL) databases are primarily categorized on the basis of how the data is stored. They are optimized for insert and retrieve operations on a large scale with built-in capabilities, key feature as Performance, horizontal Scalability, replication, clustering.

Types of NoSQL databases

There are 4 basic types of NOSQL databases as:

  1. Key-Value Store: It has a Big Hash Table of keys & values e.g. Redis, Riak, Amazon S3. It is straight forward key value pair , used for fully baked content primarily for caching mechanism. you can query on key , not on value in order to get the value extremely faster.
  2. Document-based Store: It stores documents made up of tagged elements. e.g mongoDB, CouchDB,
  3. Column-based Store: Each storage block contains data from only one column e.g. HBase, Cassandra
  4. Graph-based: A network database that uses edges and nodes to represent and store data e.g. Neo4J

1. Key Value Store NoSQL Database

There is no complexity around the Key Value Store database model. The key value type store, uses a hash table in which there exists a unique key and a pointer to a particular item of data. A bucket is a logical group of keys – but they don’t physically group the data. There can be identical keys in different buckets.

Performance enhanced to a great degree because of the cache mechanisms. To read a value you need to know both the key and the bucket because the real key is a hash.

If you referring CAP theorem, it is quite clear, key value stores are around the Availability and Partition but definitely lack of Consistency.

Query (to pull the data for the key) can be on only key not on value, this is the disadvantage of key-value store.

Few examples of Key Value store NoSQL

Although there are a number of key-value store but few famous as: Amazon’s DynamoDB , Redis, Riak , memcacheDB

  1. DynamoDB
  2. MemcacheDB
  3. Redis
  4. Voldemort
  5. Riak

Redis:
– written in C with approx 13 k+ lines of code
– socket API : redis-cli, client library for all major languages
– In memory based key-value database.
– Features:
– high read & write throughput e.g. 50 K to 1 Lac ops/second
– interesting data structure: list, hashes, sorted set, atomic operation.
– strong consistency
– in-memory database: appended-only log on disk with virtual memory.
– support master-slave replication.
– “Memory is the new , disk is the new tape” – Jim Gray

References

http://nosql-database.org/
Wiki: Key-Value Store
Amazon’s Dynamo Paper


Connect with

1 thought on “Type of NoSQL databases

  1. Pingback: swat

Leave a Reply

Your email address will not be published. Required fields are marked *