03. Data Persistence - SQL and NoSQL, Memory Stores, GraphDB

POJO and JSON

POJO: Plain Old JS Object. Essentially a struct.

JSON is very similar to a POJO:

SQL

ACID:

CAP Theorem: if you have a distributed system, pick two:

BASE: give up consistency and get:

A BASE transaction may act like multiple transactions in ACID.

Key-Value Stores

Don’t bother defining schemas, just plonk a key and value together.

In-memory data store (e.g. redis):

Document Database

Graph Database

Semantic web:

Labelled property graph:

Graph databases give measures of centrality such as:

Query languages available for graph databases (e.g. Cyper for neo4j).