I prefer to just throw the state into a database. Each table has their own “repository” type that knows how to save/load models and then I have “manager” types that use “repository” types to compose larger, feature-specific domain models.
I usually just use Sqlite for it’s simplicity but I’m not opposed to Postgres via Docker.
I prefer to just throw the state into a database. Each table has their own “repository” type that knows how to save/load models and then I have “manager” types that use “repository” types to compose larger, feature-specific domain models.
I usually just use Sqlite for it’s simplicity but I’m not opposed to Postgres via Docker.