-
Hi, nice project, it's cool to see an experiment like this. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hello @jbjuin Thanks for the feedback 😄 I think you're talking about the state of a The state of a If you need persistance, the real OTP gives you:
Yes, in the Erlang/Elixir world you don't need Redis 😉
|
Beta Was this translation helpful? Give feedback.
Hello @jbjuin
Thanks for the feedback 😄
I think you're talking about the state of a
gen_server
. In that case, no the state is not restored (same for the real OTP).The state of a
gen_server
is temporary and lives only in memory. It's very common to have a connection handle to a database as state for example. If a temporary network failure occurs, thegen_server
will crash and be restarted by the parent supervisor, creating a new connection (successfully once the temporary network failure is resolved).If you need persistance, the real OTP gives you: