Skip to content

Instantly share code, notes, and snippets.

@reedip
Last active February 23, 2022 06:39
Show Gist options
  • Save reedip/1b4ab2d4e78b9ae4a686b3a6aae23fe4 to your computer and use it in GitHub Desktop.
Save reedip/1b4ab2d4e78b9ae4a686b3a6aae23fe4 to your computer and use it in GitHub Desktop.
SNo. MySQL ( RDBMS) NoSQL
1 Most RDBMS scale Vertically, by increasing the H/W specs ( MariaDB is an exception, so is CloudSpanner) NoSQL scales horizontally by adding more nodes to the system
2 Flexible , support for easier query language Predictable performance
3 Latency issues on a distributed system. Better performance than RDBMS over a distributed geographical region
4 Do not support replication of Data internally, need external tools which process this in batches ( or async ) Supports Data replication and thus provides resiliency and HA..Support is provided as Multi-master mode,master-Slave ( mongodb )& Masterless
5 Data friendly ( data entities are considered first) Application friendly ( Use Case is considered first)
6 Data models have relations and are ‘joined’ together. This provides uniformity to the data Data can be non-uniform and maybe unstructured in a way
7 Data is more Consistent ( provides CP fom CAP ) NOTE: P= partition tolerance Data is more Available ( provides AP from CAP )
8 RDBMS provides the rigid ACID property ( Atomic, Consistent, Isolation, Durability) NoSQL provides more lenient BASE property (Basic Availaibility, Soft state [ no relation between entities ], Eventual Consistency )
9 Useful when we have well structured data Schemaless DB, so no structure required
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment