Skip to main content

Module ownership

Module ownership 

Source
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. epoch is a monotonic fencing token (always 0 under SelfOwnsAll).
SelfOwnsAll
Standalone ownership: this process owns every stream unconditionally.

Traits§

Ownership
Single-writer ownership of streams.