Skip to main content

Web for Elixirs

Phoenix is the main web framework for Elixir. A request flows through an endpoint and router into controllers or LiveViews, with plugs handling cross-cutting steps. LiveView renders interactive pages on the server and updates the browser over a WebSocket, and channels support real-time messaging.

Stage: Phoenix and Production · Part of the Elixir roadmap · Last reviewed 19 November 2026

What to learn in Web

Web interview questions

What is a plug?

A plug is a function or module that takes a connection struct and returns a connection, optionally halting it. Phoenix builds the request pipeline from plugs, such as parsing, session handling and authentication, so each step transforms the Plug.Conn.

How does LiveView update the page without writing JavaScript?

The server keeps a process per connected user holding state in assigns. When an event arrives or state changes, it re-renders the template, computes a minimal diff and sends only the changed parts over a WebSocket, and a small client script patches the DOM.

Where Web fits in the Elixir roadmap

Web belongs to the Phoenix and Production stage (advanced level). Ship.

Back to the full Elixir roadmap