database

Saturday, March 29, 2025 • edited Saturday, April 12, 2025

Relational database

Sql (structured query language): Mysql, postgresql

The format of relational database is table

Non-relational database

There are 4 types of non-relational database

  1. key-value [eg. Redis]
  2. column-based [eg. Amazon Redshift, google bigquery, etc]
  3. graph-based [eg. Neo4j]
  4. document-based [eg. Mongodb] —> Json format for storing data

ACID properties of database systems

  1. Atomicity —> All or nothing
  2. Consistency —> No violation of integrity
  3. Isolation —> Concurrent changes invisible => serializable
  4. Durability —> Committed updates persist

CAP theroem for distributed system

  1. Consistency —> All data on the cluster has same copies.
  2. Availability —> Cluster always accepts reads and writes
  3. Partition tolerance —> Guaranteed properties are maintained even when network failures prevent some machines from communicating with others.
Database

Kubernetes

Hugo usage

Hugo Music Player
⋮⋮ NOW PLAYING
Awesome Track
Great Artist
0:00 3:24
🔊