4 ms·
One thing I didn't see covered that I'm currently trying to understand with Elixir is the relationship between process state and disk-backed state. (For example
by gfodor 9y ago
One thing I didn't see covered that I'm currently trying to understand with Elixir is the relationship between process state and disk-backed state. (For example fetched via Ecto.) Does the role of a traditional RDBMS change in an elixir system? What are the durability guarantees of process state? Etc. Any real world experience would be super helpful to hear about.
- pdimitar 9y agoIf you don't do a `kill -9 <your_app_pid>` then any of your processes inside will be restarted with last-known good state which the Erlang VM (BEAM) keeps internally. It's not backed by disk state. It's a VM-wide guarantee, so to speak. The official Elixir tutorial has an OTP chapter in which you are encouraged to actively kill processes and observe them being restarted with good state in real time: https://elixir-lang.org/getting-started/mix-otp/dynamic-supervisor.html https://elixir-lang.org/getting-started/mix-otp/dynamic-supe...