StatifierPersistence. Serialization. AdapterLock
(StatifierPersistence v0.12.0)
Copy Markdown
View Source
The default StatifierPersistence.Serialization strategy (ADR-0004
decision 5): per-execution ordering as the storage adapter's own lock.
Its config is the StatifierPersistence.Storage handle itself.
with_execution/3 delegates to the adapter's optional
StatifierPersistence.Storage.Adapter.lock_execution/3 when the adapter
exports it, and refuses with {:error, {:serialization, :not_supported}}
when it does not - an adapter without a lock provides no ordering, and
a silent fallback here would be the loop pretending otherwise.