@gregoriusrippenstein/erlang-red-supervisor-node

0.3.3 • Public • Published

Erlang Supervisor Node

Note: Nodes are exclusively for Erlang-Red, not to be used with Node-RED.

Erlang has the concept of workers and Supervisors, together they build a process tree that is self-healing.

A supervisor is designed to monitor a number of child processes (either workers or fellow supervisors) and when one or more fail, the supervisor is responsible for restarting the process.

This node allows for the definition of dynamic supervisors to monitor a set of nodes (which in ErlangRED are all processes) and restart as necessary.

For more details, Erlang Documentation.

Example usage in a flow.

Erlang Module

Node for defining the code for an erlang module.

Erlang statemachine

Node for defining a state machine as a node. This uses an erlmodule node as handler, so that the state machine can be completely defined inside of Erlang-Red. Example usage in a flow.

Erlang event handler

Event handler gen_event.

Artifacts

/@gregoriusrippenstein/erlang-red-supervisor-node/

    Package Sidebar

    Install

    npm i @gregoriusrippenstein/erlang-red-supervisor-node

    Weekly Downloads

    5

    Version

    0.3.3

    License

    Don't do evil.

    Unpacked Size

    52 kB

    Total Files

    24

    Last publish

    Collaborators

    • gregoriusrippenstein