Link to video
What are ACID properties in a database?
SQL vs NoSQL
Advantages of NoSQL :
- Easier insertion and retrieval
- More flexible. Schema is changeable.
- Horizonatally partition already there.
- Build for metrics, analytics, aggregation.
Disadvantages of NoSQL :
- Not good for updates.
- ACID not guaranteed. Hence, financial systems do not use NoSQL.
- Joins are hard as you need to run through every block. Joins are manual.
Cassandra
Architecture in brief
Cassandra Architeture
Gives us two properties :
- Load Balancing
- Redundancy/ Replication
Distributed consensus
- Quorum - Multiple nodes who are related to a particular query accept a particular value or they come upon or decide on a particular value.