Runtime write backend.
WARaft is the only supported production path. Runtime selection is fixed here so deploys and benchmarks cannot drift through config flags.
Summary
Functions
Returns the backend used by the currently running default application.
Functions
@spec running() :: :waraft | :undefined
Returns the backend used by the currently running default application.
This is intentionally separate from selected/0: default-instance runtime
routing must stay pinned to the backend that actually booted.
@spec running_or_selected() :: :waraft
@spec running_waraft?() :: boolean()
@spec selected() :: :waraft
@spec waraft?() :: boolean()
@spec write(non_neg_integer(), tuple()) :: term()
@spec write_batch(non_neg_integer(), [tuple()]) :: term()
@spec write_delete_batch(non_neg_integer(), [binary()]) :: term()
@spec write_many([{non_neg_integer(), tuple()}]) :: [term()]
@spec write_put_batch(non_neg_integer(), [{binary(), binary(), non_neg_integer()}]) :: term()