concept web server in category elixir

appears as: web servers, web server
Elixir in Action

This is an excerpt from Manning's book Elixir in Action.

It’s important to notice that Erlang tools aren’t always full-blown alternatives to mainstream solutions, such as web servers like Nginx, database servers like Riak, and in-memory key/value stores like Redis. But Erlang gives you options, making it possible to implement an initial solution using exclusively Erlang and resorting to alternative technologies when an Erlang solution isn’t sufficient. This makes the entire system more homogeneous and therefore easier to develop and maintain.

Our focus won’t be so much on the details and finesse of web servers. Instead, my aim is to demonstrate how you can work with OTP applications and to show you how everything connects in a simplistic simulation of a real-world system.

Listing 11.8 External dependencies for the web server (todo_web/mix.exs)
defmodule Todo.Mixfile do
  ...

  defp deps do
    [
      {:poolboy, "~> 1.5"},
 {:cowboy, "~> 1.1"},    #1  
 {:plug, "~> 1.4"},    #1  
    ]
  end
end

#1   New dependencies
Elixir in Action

This is an excerpt from Manning's book Elixir in Action.

It’s important to notice that Erlang tools aren’t always full-blown alternatives to mainstream solutions, such as web servers like Nginx, database servers like Riak, and in-memory key-value stores like Redis. But Erlang gives you options, making it possible to implement an initial solution using exclusively Erlang and resort to alternative technologies when an Erlang solution isn’t sufficient. This makes the entire system more homogeneous and therefore easier to develop and maintain.

Listing 11.6. External dependencies for the web server (todo_web/mix.exs)

The focus won’t be so much on the details and finesse of web servers. Instead, my aim is to demonstrate how to work with OTP applications and present how everything connects in a simplistic simulation of a real-world system.