2 ms·
hmm, its better to store state in ETS so when it does crash it can be restarted by the supervisor without losing the state.
by jleang 7y ago
hmm, its better to store state in ETS so when it does crash it can be restarted by the supervisor without losing the state.
- filmor 7y agoThis depends highly on what you are storing. Letting a process reuse "old" state after a crash can easily cause a restart loop.
- akashakya 7y agoThat depends on the usecase. Sometimes you do want to start with clean state. If the process is in some invalid state which caused the crash in the first place, restarting the process is useless in this case
- CrowFly 7y agoWell, ETS is just a process that someone write to store state.
- deleted 7y ago[deleted]