|
|
|
|
|
by mungobungo
1323 days ago
|
|
Practical question here. How are Elixir/Erlang apps being deployed nowadays? My understanding is that BEAM is designed for long running setups where hot reload of the code makes sense, and reboots are not happening that often thanks to the supervision trees. But practically speaking how does it work under k8s env? When pod is being destroyed, what happens to all the messages sitting there?
Pushing state out of actors is a possibility, but isn’t it ruin the whole idea of stateful actors ? |
|
If you do write a stateful app, and run it in k8s, you can have state handover to a newly created pod. It works pretty well.