Building OTP Applications & Releases
Package your GenServers and supervisors into a proper OTP application and bundle it into a deployable release.
What Is an OTP Application?
An OTP application is a reusable component with a defined lifecycle: it starts, runs a supervision tree, and stops cleanly. It is the standard unit of packaging in Erlang.
The .app Resource File
Every application has an .app file describing its metadata: name, modules, dependencies, and the callback module that starts it.
{application, myapp,
[{description, "My App"},
{vsn, "1.0.0"},
{modules, [myapp_app, myapp_sup]},
{applications, [kernel, stdlib]},
{mod, {myapp_app, []}}]}.All lessons in this course
- Understanding OTP & Behaviors
- Implementing GenServer Behavior
- Introduction to Supervisors
- Building OTP Applications & Releases