But a general pattern is to cache the state to a DB at some interval of time? Or is it more common to persist it at a given user or system event?
I’m asking because I’m having a hard time seeing a “natural” point where I would cache the state.
I mean, if every process caches to DB I see little point in doing this. Rewriting the state of the whole app every few minutes seems like an expensive task. So would it be more natural to let supervisors cache whatever hasen’t been cached since the last cache.
There’s a lot to take in here, so sorry if the questions are not very well formulated.


















