Preserving GenServer State on Node Shutdown
Long running GenServers are an elegant weapon. In this post, we explore how to persist their state on node shutdown and then rehydrate it on system startup.
Practical notes on building with Elixir and the BEAM. Start with the GenServer design recipe, then explore how to preserve process state when a node shuts down.
2 articles
Long running GenServers are an elegant weapon. In this post, we explore how to persist their state on node shutdown and then rehydrate it on system startup.
Over the years and through the battle scars, I've formed several hard opinions on how to properly build GenServers positioned for success and maintainability.