News for hackers. Stuff that matters.
Re:Storing state in Erlang with processes (2014) by jleang on Friday May 31, 2019 @08:12AM (#20060121)
hmm, its better to store state in ETS so when it does crash it can be restarted by the supervisor without losing the state.
Re:Storing state in Erlang with processes (2014) by filmor on Friday May 31, 2019 @08:44AM (#20060331)
This depends highly on what you are storing. Letting a process reuse "old" state after a crash can easily cause a restart loop.
Re:Storing state in Erlang with processes (2014) by akashakya on Friday May 31, 2019 @08:46AM (#20060350)
That 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