Skip to main content

Crate corium_peer

Crate corium_peer 

Source
Expand description

Peer library: remote connection to a transactor, tx-report handling, local database values, sync, and the segment cache (see docs/architecture.md and docs/design/protocol.md).

A Connection subscribes to the transactor’s tx-report stream and folds every report into an immutable Db value locally; queries never block on the transactor. On disconnect it reconnects and resubscribes from its basis, and the server backfills the gap from the durable log.

Modules§

metrics
Peer-server Prometheus metrics.
segment
Direct blob-store segment access for peers.
server
Peer server: hosts a peer for thin clients over the public PeerServerService gRPC surface (see docs/design/protocol.md).

Structs§

Admin
Catalog (admin) client for a transactor endpoint.
ConnectConfig
Connection configuration.
Connection
A live peer connection to a transactor-hosted database.
PeerReport
One transaction applied to the peer’s local database value.
TxResult
Result of a transaction submitted through a peer.

Enums§

PeerError
Peer failure.