State Snapshot Persistence

Use when a service holds a hot in-memory aggregate that must survive restart without a write on every mutation: dirty-set plus timed flush, a one-table JSON snapshot with idempotent DDL, bounded rehydrate, degrade-to-memory when the database is down, and deleting merged entries so they do not return as ghosts. Not for data where losing the last flush interval is losing a transaction - that is P4's ORM-managed schema.

konradcinkusz Updated 0 repo stars

File contents

konradcinkusz/architecture-standards commit cf6531ab83

Frequently asked questions

npx get-skill add konradcinkusz/state-snapshot-persistence