Expand description
Which process is the single writer for a given stream.
Standalone uses SelfOwnsAll: one process owns every stream, so the lease
is a no-op. The clustered LeasedOwnership (a Postgres lease row + reaper)
drops in behind the same trait in a later phase — see the topology design
spec §3.3. The epoch on Lease exists now so control-fencing can be
added later without a wire change.
Structs§
- Lease
- A claim on a stream’s single-writer role.
epochis a monotonic fencing token (always 0 underSelfOwnsAll). - Self
Owns All - Standalone ownership: this process owns every stream unconditionally.
Traits§
- Ownership
- Single-writer ownership of streams.