IT lexicon › Infra & Ops › Master-slave replication

Master-slave replication

Infra & Ops På svenska → Updated: 2026-11-11

A replication pattern where all writes go to a primary server and changes stream to one or more read-only replicas.

The master handles all writes; slaves receive a copy of the change stream (often from the transaction log) and replay it. Read queries can spread across multiple slaves, increasing read capacity. On master failure, a slave must be promoted manually or via automatic failover.

The pattern is simple but asymmetric — only one writer. It appeared early in Sybase and Informix and remains common in MySQL and PostgreSQL for read-heavy workloads.

← Back to the lexicon