Applications
- Applications. An OTP application is a startable unit: its supervision tree plus metadata, started as one.
- The app file. The .app file declares modules, dependencies and the start module: the manifest BEAM reads.
- Application controller. The application controller starts dependencies in order: a node as a stack of applications.
Configuration
- App env. Applications read env configuration: per-environment values outside the code.
- sys.config. sys.config configures a whole release: one file tuning every application on the node.
- Runtime reconfiguration. Configuration can change at runtime: read on use, not baked at build.
Dependencies and Releases
- rebar3. rebar3 builds Erlang projects: dependencies fetched, applications compiled, releases assembled.
- Releases. A release bundles applications plus the runtime into one deployable: the node as an artifact.
- Boot order. Releases boot applications in dependency order: a deterministic path from power-on to serving.
Before and after this level
- Before: Level 7: Supervision: Supervisors, Restart Strategies, Supervision Trees.
- Next: Level 9: State & Storage: ETS, DETS and Mnesia Concepts, Concurrent State Design.
In the app each of these ideas is taught and then asked back, and the level ends with a checkpoint and flashcards. See Checkpoints and flashcards.
Frequently asked questions
What does Erlang Level 8: OTP Applications cover?
Applications, Configuration, Dependencies and Releases: 3 lessons and 9 ideas.
What should I know before this level?
The level before it, Level 7: Supervision, which covers Supervisors, Restart Strategies, Supervision Trees.