These advanced DBMS concepts show up often in backend system design discussions.

MVCC

Multi-Version Concurrency Control lets readers and writers work concurrently by keeping multiple row versions.

Readers can see a consistent snapshot while writers update newer versions.

WAL

Write-Ahead Log records changes before applying them to data files.

If the DB crashes, WAL helps recover committed changes.

Replication

Copies data from one database node to another.

Common forms:

CAP Theorem

In a network partition, a distributed system must choose between:

Partition tolerance is unavoidable in distributed systems.

BASE

Often discussed with distributed NoSQL systems:

Connection Pooling

Opening DB connections is expensive. A pool reuses connections.

Benefits:

Redis Caching

Redis is often used for:

Hard parts:

Interview Notes