Palestra apresentada no RuPy de Belo Horizonte em 20/08/2016. Falei sobre a história e a motivação da criação do Phoenix framework, channels, presence e plugs.
socket) do {:ok, socket} end def join("room:" <> _private_room_id, _params, _socket) do {:error, %{reason: "unauthorized"}} end def handle_in("new_msg", %{"body" => body}, socket) do broadcast! socket, "new_msg", %{body: body} {:noreply, socket} end def handle_out("new_msg", payload, socket) do push socket, "new_msg", payload {:noreply, socket} end end 24
We have 2 million webservers handling one session each.” “Because we have one web server per user we can easily make the system fault tolerant or scalable” Joe Armstrong 33
Request processing Ruby on Rails Long-running requests Java and Go Server-wide state Redis Persistable data Redis and MongoDB Background jobs Cron, Bash and Ruby Service crash recovery Upstart 35