Join our Newsletter — 33% off our NHI Course
Architecture & Implementation

Erlang

← Back to Glossary
By NHI Mgmt Group Updated November 25, 2026 Domain: Architecture & Implementation

Erlang is a concurrent programming language and runtime designed for systems that need many lightweight processes and fault tolerance. It uses message passing and supervision trees to isolate failures, making it common in telecommunications, distributed services, and other highly available software.

How Erlang supports fault-tolerant systems

Erlang was built for systems that must keep running while parts fail. Its lightweight processes, message passing, and isolation model let developers structure services so failures are contained instead of cascading across the whole runtime.

That design matters most in distributed software where availability is a core requirement. Rather than trying to make every component perfect, Erlang assumes failure will happen and gives the system tools to survive it.

Message passing and concurrent process design

Erlang concurrency is based on isolated processes that communicate by sending messages, not by sharing mutable memory. That reduces the risk of one component corrupting another and makes concurrent behaviour easier to reason about under load.

This model is especially useful when many short-lived tasks must run at the same time, because the runtime can schedule them efficiently without forcing developers to manage threads directly.

Supervision trees and failure containment

Supervision trees are one of Erlang’s defining resilience mechanisms. A supervisor monitors child processes and restarts them according to policy when they crash, which turns many failures into local, recoverable events rather than system-wide outages.

For practitioners, that means the important design question is not whether failures will occur, but how they should be grouped, observed, and restarted. Good supervision boundaries are what make the language’s fault-tolerance model work in practice.

Where Erlang fits in production systems

Erlang is most often chosen where uptime, concurrency, and distributed coordination matter more than raw general-purpose flexibility. Telecom platforms, messaging systems, and other always-on services benefit from its ability to keep responding while parts of the application are replaced or recovered.

The runtime is also a strong fit for long-lived services that need predictable failure handling. Its value is less about a single language feature and more about the combined architecture of isolated processes, supervision, and recovery-oriented design.

Risk and Threat Considerations

Erlang’s resilience can be undermined when supervision is used too broadly, message paths are allowed to become congested, or operators assume the runtime will absorb every failure automatically. In a distributed system, that can turn local faults into restart storms, resource exhaustion, or partial service degradation that is harder to detect than a clean outage.

Failure mechanism: If message queues grow unchecked or supervisors restart children without addressing the underlying cause, the system can recycle failures instead of recovering from them, amplifying instability across the application.

Impact: Availability suffers first, but the longer-term effect is operational blindness, because repeated restarts and degraded nodes can mask the real fault path and delay effective remediation.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

NIST CSF 2.0 and CIS Controls v8 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
NIST CSF 2.0RC.RP-01 — Recovery Plan ExecutionErlang is chosen to keep services recoverable after failures.
PR.IR-01 — Network and Environment ResilienceErlang systems rely on resilient runtime and service design to contain failures.
Recommendation — Define and test recovery behavior for failed Erlang services. Design Erlang deployments to isolate faults and preserve service resilience.
CIS Controls v8CIS-11 — Data RecoveryFault-tolerant runtime design still needs recovery planning for service and state loss.
Recommendation — Validate recovery procedures for Erlang-based services and their dependencies.

Practitioner Guidance

Why practitioners should care: Erlang rewards disciplined fault-boundary design. The language makes recovery patterns easy to express, but it does not replace architectural decisions about process ownership, restart policy, and backpressure.

Common misunderstanding: Fault tolerance is not the same as fault elimination. Erlang helps systems survive crashes, but teams still need to define what should restart, what should fail fast, and what should be isolated from dependent components.

Practitioner takeaway: Use Erlang most effectively when you want failure to be a managed event, not a surprise. Its strength comes from designing for containment and recovery from the start.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

NHIMG Editorial Note
Reviewed and updated by the NHIMG editorial team on November 25, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org