The OTP Design Principles is a set of principles for how to structure Erlang code in terms of processes, modules and directories.
OTPの設計原則はErlangコードのプロセス、モジュール、ディレクトリといった項目の構築原則のセットです。
OTPの設計原則はErlangコードのプロセス、モジュール、ディレクトリといった項目の構築原則のセットです。
1.Supervision Trees
supervisionツリー
A basic concept in Erlang/OTP is the supervision tree. This is a process structuring model based on the idea of workers and supervisors.
Erlang/OTPの基本的なコンセプトはsupervisionツリーです。これはworkerとsupervisiorのアイディアモデルベースのプロセス構築です。
Erlang/OTPの基本的なコンセプトはsupervisionツリーです。これはworkerとsupervisiorのアイディアモデルベースのプロセス構築です。
- Workers are processes which perform computations, that is, they do the actual work.
ワーカは、計算指示を実際の動作に変換するプロセスです。
- Supervisors are processes which monitor the behaviour of workers. A supervisor can restart a worker if something goes wrong.
Supervisiorsはworkerビヘイビアのモニターをするプロセスです。supervisiorは、想定外の事が起こった場合にワーカーを再起動できます。
- The supervision tree is a hierarchical arrangement of code into supervisors and workers, making it possible to design and program fault-tolerant software.
supervisionツリーはコード内にsupervisorsとworkerの階層的引数を持ち、障害耐性の高いソフトウェアの設計とプログラムを可能にします。