Hot code upgrades

Dynamic updates

Erlang was built for systems that must run for years without a reboot. The secret is the code replacement mechanism: you can compile a new version of a module and load it into a running system.

1> code:load_file(my_module).

ok

2> my_module:old_function().

old_behaviour

3> my_module:function().

new_behaviour

Next: Erlang course homepage

Article author: Arthur Isaev