DEV Community


Discussion on: Hot Code Reloading in Elixir

rhymes profile image

Thank you Jeff, all this stuff is amazing. Love that the final version is more functional, passing the state in the recursive function.

I'll have to learn Elixir at some point.

You inadvertently reminded me of NGINX's own upgrade functionality, in which it spawns a new master process which in turn spawns a new set of workers and then tells the old ones to finish up what they are doing and then die.

Another thing you reminded me is that Go from 1.11 supports loading third party modules in different versions in the same application/binary. I guess someone will come up with hot module reloading for that feature too creating a pluggable system.

It's awesome that all of this is "free" in Elixir/Erlang.