newton-peixoto
Elixir and kubernetes - is it common for production apps to have their deployment processes in a container environment?
Hey everyone!
When I read articles about production elixir applications they all talk about deployment directly in ‘‘machines’’ (1 instance per machine) I’d like to understand if that is a real thing or is it common to production elixir applications have their deployment processes in a container enviroment and if this kind of deployment boosts elixir somehow once that we could have like N instances of a application distributed across Y real machines in our cluster or we don’t really have a real gain by doing that.
Marked As Solved
madclaws
Hi,
Yes it is common to deploy elixir apps with docker, especially when the app is stateless (ex CRUD apps, with a db layer). If we are making releases, then dockerzing is a recommended approach. Also if the organization is already using orchestration tools like k8s, then its good to leverage them too. If the elixir app is statefull then we can even leverage distributed elixir functionalities by clustering the k8s nodes. So overall we could get best of both worlds.
Also Liked
egze
newton-peixoto
cjbottaro
I prefer Kubernetes over OTP in some cases…
For example, I don’t bother with hot code reloading; I let Koob take care of deployments and request draining.
I also prefer things like Nats for a messaging plane instead of distributed Elixir.
I think it makes for better polyglot systems, vs some OTP things bind you to the language/VM.
Last Post!
cjbottaro
I prefer Kubernetes over OTP in some cases…
For example, I don’t bother with hot code reloading; I let Koob take care of deployments and request draining.
I also prefer things like Nats for a messaging plane instead of distributed Elixir.
I think it makes for better polyglot systems, vs some OTP things bind you to the language/VM.
Popular in Questions
Other popular topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #elixirconf-us
- #advent-of-code
- #distillery
- #processes
- #forms
- #api
- #metaprogramming
- #security
- #hex









