Never having worked with Erlang, my mind is telling me this might be an alternative for https://github.com/temporalio (database-backed functions) or AWS Step functions.
replies(1):
It’s a deliberate decision but very easy with the BEAM.
(I can also tell you from personal experience Mnesia isn't a "durable storage" solution. Rather the opposite, honestly.)
But yes, you do have to determine state and recovery patterns. Depends entirely on the situation but things like making sure your data will survive a process crash is straightforward.