0Pricing
Erlang OTP: Distributed & Fault-Tolerant Systems Programming · Lesson

Hot Code Swapping & Live Upgrades

Learn how Erlang upgrades running code without stopping the system, and how OTP behaviors support stateful live upgrades.

Zero-Downtime Upgrades

One of Erlang's signature features is hot code swapping: replacing a module's code while the system keeps running, with no restart and no dropped connections.

Two Code Versions

The VM keeps up to two versions of each module: current and old. Loading a third version purges the oldest.

All lessons in this course

  1. GenStatem for State Management
  2. GenEvent for Event Handling
  3. Custom OTP Behaviors
  4. Hot Code Swapping & Live Upgrades
← Back to Erlang OTP: Distributed & Fault-Tolerant Systems Programming