An epoch batches transaction work. It does not by itself establish the safety of cross-region replication or final commit.
The roles of OCC and epochs
Optimistic concurrency control (OCC) records read versions and a write set while a transaction executes. It validates conflicts before commit and aborts if validation fails. OCC does not mean that every phase is lock-free.
The Silo paper at SOSP 2013 combines OCC and epochs in a shared-memory database. It reduces shared writes on read records and contention from centralized transaction ID allocation. Its evaluation concerns a single multicore server, not a geo-distributed database.
Epochs group transactions into short time intervals. IDs within an epoch need not encode the complete serial order, but ordering across epochs supports recovery. This connects serializable execution to the ordering needed in durable recovery logs.
Execution completion and success responses
Silo locks write-set records, validates read versions, and then installs writes. Making logs durable is separate work. A client success response is therefore not equivalent to completion of in-memory execution.
flowchart LR
A[Execute transaction] --> B[Lock write set]
B --> C{Validate read set}
C -->|Failure| X[Abort]
C -->|Success| D[Install writes and record log]
D --> E[Confirm epoch durability]
E --> F[Client success response]
Group commit spreads log persistence work across transactions. Waiting for an epoch boundary still takes time. Increasing the epoch length does not automatically reduce latency.
Additional conditions across regions
Applying single-server epochs across regions requires a replication order and a failure model. The design must specify which replica prefixes enter an epoch and who decides commit during a regional partition. Silo's single-server argument does not establish these conditions.
Spanner's OSDI 2012 paper presents a different design. It uses Paxos replication and two-phase commit for distributed transactions. TrueTime uncertainty and commit wait support external consistency, while replication and atomic commit remain necessary.
| Boundary | Required condition |
|---|---|
| Local execution | Do not expose unvalidated results as final |
| Replication | Preserve committed data against the specified failures |
| Epoch decision | Participants agree on the same boundaries and ordering |
| Success response | Complete the system's validation, replication, and durability requirements |
This table is not a new protocol combining Silo with Spanner. It separates responsibilities when reviewing an epoch-based geo-distributed design. Performance numbers from either system cannot establish the performance of that proposed design.
Costs to measure before adoption
Larger batches may reduce logging work per request while increasing waiting time. Contention increases abort and retry costs. Cross-region latency and log replay after recovery must be measured separately.
An evaluation must specify epoch length, persistence settings, transaction mix, conflict distribution, and the response boundary. In-memory execution throughput and durable commit throughput are different metrics. Neither one epoch length nor one throughput multiplier is a general recommendation.
Summary
Silo connects single-server concurrency control and recovery through OCC and epochs. Its result does not prove geo-distributed commit safety, so cross-region replication and ordering need separate designs. Execution completion, durability, and the client success response are distinct boundaries. Assess batching benefits together with commit latency, conflict costs, and recovery work.