Cotal TypeScript packages
    Preparing search index...

    Interface JournalStore

    Where a journal entry goes to survive the process that wrote it.

    The interpreter owns WHAT is recorded and WHEN; a store owns only durability, and it is handed whole entries rather than deltas so it never has to reconstruct one. append must resolve only once the entry is somewhere a resume on another host will find it — the pending half is awaited before the handler runs, so a store that resolves early hands back exactly the crash window the two-phase write exists to close.

    A run with no store is in-memory, which is what the simulator, the dry run and every test want: durability is a property of where a run is hosted, not of what a program means.

    interface JournalStore {
        append(entry: JournalEntry): Promise<void>;
    }

    Implemented by

    Index