Skip to content

Latest commit

 

History

History
36 lines (25 loc) · 1.95 KB

nosql_db.md

File metadata and controls

36 lines (25 loc) · 1.95 KB

NoSQL databases

NoSQL database types

  • Column-oriented database: Cassandra, HBase, Hypertable, BigTable
  • Key-value stores: Redis, Voldemort, Riak, and Amazon’s Dynamo
  • Document stores: MongoDB and CouchDB
  • Graph database: Neo4j

Cassandra

  • Cassandra is de-centralized, which means all nodes are the same (its called server-symmetry). There is no leader-follower structure, all the nodes follows P2P (peer to peer) gossip protocol, so its highly available
  • Cassandra is highly scalable, new node will automatically be discovered and there is no reboot needed

Cassandra vs MongoDB

Difference Cassandra MongoDB
DB structure Unstructured data JSON-like documents
Index Primary Key, but no secondary indexes supported Index, if no index then each file is searched which could slow down read times
Query CQL (like SQL) More like programming
Replication leader-leader leader-follower with auto-election

Reference