reckon_evoq_checkpoint_store (reckon_evoq v2.0.0)
View SourcePersistent checkpoint store backed by ReckonDB snapshots.
Implements evoq_checkpoint_store using reckon-gater snapshot API. Projection checkpoints survive restarts by storing them as snapshots in a ReckonDB store.
Each projection gets a dedicated snapshot stream named "projection-checkpoint-{module_name}".
Configuration
Set the ReckonDB store to use for checkpoints: application:set_env(reckon_evoq, checkpoint_store_id, my_store).
Default: default_store
Summary
Functions
Delete the checkpoint for a projection.
Load the checkpoint for a projection.
Save a checkpoint for a projection.
Functions
Delete the checkpoint for a projection.
-spec load(atom()) -> {ok, non_neg_integer()} | {error, not_found | term()}.
Load the checkpoint for a projection.
-spec save(atom(), non_neg_integer()) -> ok | {error, term()}.
Save a checkpoint for a projection.