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.