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

File contents

konradcinkusz/architecture-standards/tree/main/plugins/services-and-clients/skills/state-snapshot-persistence commit cf6531ab83

Frequently asked questions

npx skillmds@latest add konradcinkusz/state-snapshot-persistence