Slide 27
Slide 27 text
Erlang &
Distributed
Systems
Sean Cribbs
Motivation
Erlang
Basics
OTP Runtime
Erlang in DistSys
Use-Cases
Open Source
Services and Proprietary
Pattern: Survey
-module(survey_fsm).
-behaviour(gen_fsm).
-record(state, {caller, nodes=[], workers=[], replies=[]}).
start_link(Nodes) ->
gen_fsm:start_link(?MODULE, [self(), Nodes], []).
init([Caller, Nodes]) ->
{ok, distribute, #state{caller=Caller, nodes=Nodes}, 0}.