elixir-is-awesome
Share state between nodes and deployments
Hello everyone! I was wondering if you could help me try to understand how to implement a “global state” across nodes and keep this state when a new release of my application is deployed.
I already tried
-
Nebulex + libcluster
-
libcluster + horde + deltaCRDT
-
libcluster + send message using the send function
What I would like to accomplish is :
Node A writes Foo in the state
Node B sees Foo in the state
Node C joins the cluster
Node C sees Foo in the state
Node A and B crashes or in my case is shut down because of a new deployment in my k8s or swarm
Node C kept the previous state with a up to date code inside the docker image
And this process keeps happening for every new deploy of my application.
First Post!
benwilson512
Welcome!
Can you elaborate on what you found successful or unsuccessful about each of these solutions? It would also be helpful to understand what this state is and what you’re doing with it. Finally, what’s your plan if your whole K8s project goes down?








