Skip to main content

Module foundationdb

Module foundationdb 

Source
Expand description

Implementation of Consensus backed by FoundationDB.

We’re storing the consensus data in a subspace. Each key maps to a subspace with the following structure:

  • ./keys/<key> -> () to track existing keys.
  • ./data/<key> -> <seqno> mapping to the latest seqno for the key.
  • ./data/<key>/<seqno> -> <data> mapping seqnos to data blobs.

Structs§

FdbConsensus
Implementation of Consensus over a Foundation database.
FdbConsensusConfig
Configuration to connect to a FoundationDB backed implementation of Consensus.

Enums§

FdbTransactError 🔒
An error that can occur during a FoundationDB transaction. This is either a FoundationDB error or an external error.