Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Elixir & OTP: Microservices Without Pain

Elixir & OTP: Microservices Without Pain

Elixir is a complete modernization of the robust language and ecosystem of Erlang. We’ll learn the basics of Elixir syntax and tooling, deep dive into the actor model and how processes communicate, and build the beginnings of a microservices architecture.

Justin Campbell

August 06, 2015
Tweet

More Decks by Justin Campbell

Other Decks in Programming

Transcript

  1. OTP 4 Erlang 4 protocol for communication between nodes 4

    request broker 4 Dialyzer (static analysis) 4 Mnesia (distributed database server) 4 standard lib
  2. GenServer handle_call(message, {from, ref}, state) handle_cast(message, state) {:reply, reply, state}

    {:reply, reply, state, timeout} {:reply, reply, state, :hibernate} {:noreply, state} {:noreply, state, timeout} {:noreply, state, :hibernate} {:stop, reason, reply, state} {:stop, reason, state}
  3. Services Decision 4 Start with a monolith, move to microservices

    as needed. 4 Start with a monolith, stay as a monolith. 4 Start with microservices. snowsuit.io/issue07.html