1. HBase :
This model is used to provide random access to large amount of structured data. It build on the top of the hadoop file system and column-oriented in nature. It used to store the data in HDFS. It is open source database that provide the data replication.
2. MongoDB :
MongoDB is document oriented and does not need the row and column format of data. It give high performance and is dynamic in nature where we don’t need to predefined a schema like in conventional RDBMS. MongoDB stores data in JSON format which allows you to send the data in any form you want. It is the cross platform database which works with almost every plafrom like windows, linux etc.
Difference between HBase and MongoDB :
|It is column oriented.||It is document oriented.|
|Developed by Apache software foundation.||Developed by MongoBD Inc.|
|It has triggers.||It also has triggers.|
|It has no secondary indexes.||It has secondary indexes.|
|Uses a selectable replication factor.||Uses a master-slave replication factor.|
|Data are stored in form of key/value pair.||Data are not stored in form of key/value pair.|
|HBase has high latency operations.||MongoDB has low latency operations.|
|HBase is used to store structured data.||MongoDB is used to store any kind of data.|
|It has distributed database.||It has decentralized database.|
|HBase is less complex than MongoDB.||It is more complex than HBase.|
Attention reader! Don’t stop learning now. Get hold of all the important CS Theory concepts for SDE interviews with the CS Theory Course at a student-friendly price and become industry ready.