You'd still need a mechanism for persisting separately, or you'd end up with a broken image/"data layer" due to post-crash persists.
It's common to do something similar by writing most of an application as functions over a database and static files, and using scaffolding tools to reinitialise the database when things break.
Comments
You'd still need a mechanism for persisting separately, or you'd end up with a broken image/"data layer" due to post-crash persists.
It's common to do something similar by writing most of an application as functions over a database and static files, and using scaffolding tools to reinitialise the database when things break.