WAL Streaming Replication with Quorum-Based Split-Brain Detection for Embedded Databases

We present a high-availability replication system for embedded databases (SQLite-class deployment model) implementing warm standby architecture with WAL streaming, automatic failover, quorum-based split-brain prevention using fencing tokens and epoch-based leadership, multi-phase controlled switchover coordination, and logical replication for selective table sync. The split-brain module uses observer (witness) nodes for quorum: a 3-node cluster (1 primary + 2 standby) requires quorum of2; a 2-node + 1-observer configuration also achieves quorum of 2. Fencing tokens ensure that write operations from a stale primary are rejected by standbys that have accepted a higher epoch. While WAL-based replication is standard in server databases (PostgreSQL, MySQL), no embedded database (SQLite, DuckDB, LevelDB, RocksDB) provides built-in replication with split-brain detection, fencing tokens, role management, and controlled switchover.

Authors

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2026-03-27
DOI
https://doi.org/10.5281/zenodo.19244373
Primary Topic
Distributed systems and fault tolerance
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

WAL Streaming Replication with Quorum-Based Split-Brain Detection for Embedded Databases

Daniel Moya Vaca
Zenodo (CERN European Organization for Nuclear Research)
Distributed systems and fault tolerance
article

WAL Streaming Replication with Quorum-Based Split-Brain Detection for Embedded Databases

Daniel Moya Vaca
article en

Abstract

We present a high-availability replication system for embedded databases (SQLite-class deployment model) implementing warm standby architecture with WAL streaming, automatic failover, quorum-based split-brain prevention using fencing tokens and epoch-based leadership, multi-phase controlled switchover coordination, and logical replication for selective table sync. The split-brain module uses observer (witness) nodes for quorum: a 3-node cluster (1 primary + 2 standby) requires quorum of2; a 2-node + 1-observer configuration also achieves quorum of 2. Fencing tokens ensure that write operations from a stale primary are rejected by standbys that have accepted a higher epoch. While WAL-based replication is standard in server databases (PostgreSQL, MySQL), no embedded database (SQLite, DuckDB, LevelDB, RocksDB) provides built-in replication with split-brain detection, fencing tokens, role management, and controlled switchover.

Zenodo (CERN European Organization for Nuclear Research)
Openalex Percentile: Top 4%
Distributed systems and fault tolerance
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.