Streaming and logical replication compared.
SQL Replication: streaming and logical replication compared
shape data so reads and writes stay honest
Synchronous replicas zero data loss but slow writes.
Streaming replication ships the write-ahead log (WAL) byte-for-byte to replicas. Logical replication ships row-level changes for chosen tables, useful for selective sync, cross-version, or cross-vendor.
Streaming: same-version, identical schema, fast and bulky.
Logical: subset of tables, version-mismatched, can transform.
Failover risks: split-brain (two primaries) — prevent with fencing or consensus (e.g., Patroni).
Promote a replica during a primary outage.