This is a conceptual single-key distributed database, not an implementation of Raft, Paxos, Cassandra, or any production system.
CAP consistency means linearizability: successful reads do not go backward behind completed writes.
CP uses a simplified majority-quorum leader with committed state. A reachable majority responds; minority components reject requests.
AP permits local operations on every functioning replica and uses deterministic Last-Write-Wins resolution with logical timestamps and tombstones. It can lose an acknowledged update in a conflict.
CA uses an illustrative fixed single primary, similar to an asynchronous primary/standby configuration. A reachable primary continues read/write operations during a partition; isolated followers reject strong requests. Automatic failover is disabled. This preserves consistency for served requests but does not guarantee CAP availability across the partition.
Leaders are architectural choices, not CAP categories. CA shows a primary; CP shows a quorum-elected leader; AP uses independent peers in this lab. SQL Server appears as an asynchronous single-primary teaching model under CA and as an Always On AG synchronous configuration under CP. Actual SQL Server WSFC quorum/failover rules are more complex than this classroom simulation.
Real-world database examples illustrate particular deployments, read/write guarantees, or consistency settings. A product is not permanently CA, CP, or AP in all modes. Local single-server databases avoid distributed CAP trade-offs rather than overcoming partitions.
Server vs. service are different: an online CP minority replica is running, but cannot serve an eligible strongly consistent request.
Network uses a chain of bidirectional links; an offline intermediate node breaks paths. Messages traverse real map edges with geography-weighted, deliberately slowed teaching delays. No measured Internet latency is implied. Replicas remain stale until updates arrive.