Erlang - sgml/signature GitHub Wiki

Tutorials

Examples

Glossary

Fault Tolerant: We create a single actor for each functional task, and each actor or thread has it's own supervisor thread. If an actor fails to execute it's task, it suspends itself and all of its children and sends an exception to its supervisor. The supervisor can then work on a recovery strategy. Actors and supervisors fail gracefully, and all the failures can be ultimately managed by the Elixir/Erlang virtual machine (called BEAM).

Scalable: Because the system has a set of dedicated actors for each functional module and the actors have very little overhead associated with them, it is easy to spawn new actors with an increase in the workload for any specific module. The number of actors is only limited by the resources available on the physical machine.

Supervisor: a process that supervises other processes called child processes. A child process can either be another supervisor or a worker process. Worker processes are normally implemented using one of the gen_event, gen_server, or gen_statem behaviors.

Exceptions: A process will crash and restart after an unhandled exception. Processes can monitor other processes and detect process terminations. A run-time error can also be emulated by calling erlang:error(Reason) or erlang:error(Reason, Args).

BIF: Built-in Function

A Built-in Function(BIF) is the opposite of a User Defined Function (UDF)

Macros

Macros are global flags. For example, erlc -DNOASSERT=true *.erl disables assertions

OTP: Open Telecom Platform

References

Open Source Integrations