ExGAM.Domain.Startup (ExGAM v0.1.0)

Copy Markdown View Source

Recovers an existing Domain or atomically installs its Genesis batch.

Startup is separate from the long-lived Sequencer mailbox. It verifies host bootstrap anchors, content payload references and ambiguous first-append outcomes, then returns only a projection recovered from durable ledger state.

Summary

Functions

Loads verified durable state, bootstrapping only when no ledger exists.

Functions

load(config)

@spec load(ExGAM.Domain.Configuration.t()) ::
  {:ok, ExGAM.Domain.Projection.t()} | {:error, term()}

Loads verified durable state, bootstrapping only when no ledger exists.