jonnify·bcs /bcs/elixir-core/otp-application

B2 · module 1 of 6 · A System Is an OTP Application

A system is an OTP application.

A module whose export list is its boundary, a process that owns its state in a :private table, and a supervisor that owns the process’s existence but deliberately not its data.

Six dives: three take the shape apart — boundary, supervision tree, ownership — and three walk the real code, application.ex, supervisor.ex, and the whole of property_store.ex.

A one_for_one supervisor over two property-store processes, each owning a private table. Select a part.
EchoData.Bcs.Supervisorone_for_one over named stores PropertyStore (orders):private :ordered_setPropertyStore (players):private :ordered_set a callerput/get/window — the export list
readout · Select a part. EchoData.Bcs.Supervisor is one_for_one over PropertyStore processes; each owns a :private :ordered_set table; a caller crosses the export list with an id and a message.
§1

The six dives

three on the shape, three on the source

The first three dives take the shape apart; the last three walk the committed code — application.ex, supervisor.ex, and the whole of property_store.ex.

§2

The module, in one law

echo_data · bcs/property_store.ex, supervisor.ex

B2.1 reads OTP as architecture, then reads the architecture in source. A BCS system is an OTP application: a module whose export list is its boundary, a process that owns its state in a :private table, and a supervisor that owns the process’s existence but not its data. The first three dives take the shape apart; the last three walk the real code that implements it — application.ex, supervisor.ex, and the whole of property_store.ex — and point each line at the room Codemojex will supervise.

§4

The doors

the sibling courses
§4

References

sources · related

Sources

Related