newton-peixoto

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

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

egze

This talk is quite useful: https://youtube.com/watch?v=nLApFANtkHs

newton-peixoto

newton-peixoto

Thanks, definitely gonna watch it!

cjbottaro

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

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.

Where Next?

Popular in Questions Top

rms.mrcs
Hi, I need to transform a list of numbers into a map where the keys are the indexes and the values are the original values of the list. ...
New
electic
Hi, I am new to Elixir. I am trying to use the DateTime component to insert a date into MySQL however the there seems to be no way to fo...
New
minhajuddin
I have seen a lot of code which picks the first element from a list using Enum.at(0) instead of List.first. Is there a reason why people ...
New
Brian
What is the proper way to load a module from a file in to IEX? In the python world, doing something like this pretty standard: from ....
New
openscript
Hello! Sorry for this astonishing simple question, but I’m really stuck. I try to set up the intellij-elixir plugin, but I don’t know ho...
New
Fl4m3Ph03n1x
About me? ( if you have nothing better to do than reading about some random guy in the internet :stuck_out_tongue: ) Hello all, this is ...
New
WestKeys
Currently suffering from paralysis by [HTTP client] analysis. This is rather unusual in Elixirland as there tends to be consensus on the ...
New

Other popular topics Top

KronicDeth
Elixir plugin for JetBrain’s IntelliJ Platform (including Rubymine) This is a plugin that adds support for Elixir to JetBrains IntelliJ...
289 36654 110
New
aadeshere1
I have a another noob question about loop. Since elixir is immutable, while loop is not directly possible. total = 10 while total != 0 ...
New
chrismccord
Phoenix 1.4.0 released Phoenix 1.4 is out! This release ships with exciting new features, most notably with HTTP2 support, improved deve...
688 31494 112
New
WestKeys
Currently suffering from paralysis by [HTTP client] analysis. This is rather unusual in Elixirland as there tends to be consensus on the ...
New
romenigld
I am trying to run a deploy with docker and I successfully runned with this command: docker build -t romenigld/blog-prod . but when I t...
New
sergio
Kind of like when jquery came out, it was super necessary. Existing drag and drop libraries have a bunch of baggage to support old browse...
New

We're in Beta

About us Mission Statement