elixir phoenix liveview

The Elixir Tech Stack: Every Piece and What It Replaces

Daniil Popov November 26, 2026

What is in an Elixir tech stack

I run an Elixir agency, so I'm biased. Every library claim below has a link to its own docs. Check me.

Short version: a production Elixir product is usually one Elixir application and one database. The web server, the UI, background jobs, real time updates and most of the caching live inside that one app. Everything else in the Elixir stack is optional, and you add it when a real need shows up.

Founders ask me what they actually run if they pick Elixir, and whether it works with their MySQL, their Snowflake, their AWS account. This post is the map. For the business case, read Elixir for founders. This one is the practical part.

What's the plan?

  • The base: the BEAM and OTP
  • Phoenix and LiveView, and when you still want React
  • Ecto, Oban, PubSub, Presence, Broadway
  • Nx and Bumblebee for ML, Nerves for devices
  • Desktop and mobile apps
  • Deployment and observability
  • What each piece replaces, in one table
  • Elixir vs MySQL, Snowflake and AWS, answered straight

The base: the BEAM and OTP

Elixir is a programming language. It runs on the Erlang virtual machine, the BEAM, and the Elixir site says it is "built on decades of Erlang reliability and fault-tolerance". Your code runs in a lot of small processes. The Elixir guide says they "are isolated from each other, run concurrent to one another and communicate via message passing", and "it is not uncommon to have tens or even hundreds of thousands of processes running simultaneously." One process per user connection, per job or per device is normal.

OTP is the set of libraries and design rules that ships with Erlang. The idea you need is the supervision tree. From the OTP design principles: workers do the work, and "a supervisor can restart a worker if something goes wrong." You don't build this yourself, every library below plugs into it. One part crashes, it restarts, the rest of the app keeps going. That's why the rest of this stack can stay so small.

Phoenix: the web framework

Phoenix is to Elixir what Rails is to Ruby. Routing, controllers, templates, sessions, an auth generator, JSON APIs and WebSockets. If all you need is a JSON API for a mobile app, Phoenix covers it and you can skip half of this post.

This site, 1703.lu, is a Phoenix 1.8 app with LiveView 1.1, the Bandit web server and SQLite. The post you're reading sits in that SQLite file, next to the app. There's no Node process or Redis in production, and no separate frontend.

Coming from another framework? I compared them one by one in Elixir vs Rails, Elixir vs Node.js and FastAPI vs Elixir.

LiveView, and when you still want React

This is the piece that changes team size the most. The LiveView docs put it in one line: "LiveViews are processes that receive events, update their state, and render updates to a page as diffs." The first load is plain HTML from the server, so search engines see real content. After that the browser keeps a connection open and the server sends only the parts of the page that changed.

So the React or Vue app goes away, with its state store, its build pipeline and the REST or GraphQL layer that existed only so the frontend could talk to the backend. In our accounting SaaS rebuild, 398 React component files became 3 templates and 3 JavaScript files. Numbers are in the full write-up.

LiveView gets along with JavaScript. It has client hooks, so you attach your own code to an element and it runs in the browser. My rule of thumb: I keep a frontend framework only for

  • controls that must react at frame rate, with no trip to the server. In CyanView Studio the color wheels and curves are Svelte components inside a LiveView app;
  • screens that must work offline;
  • a native mobile app, where the UI isn't HTML at all.

Elixir with React works in two ways. Drop a few React components into LiveView pages for the heavy widgets, or keep a full React app and use Phoenix as its API. What I wouldn't do is build every form and every table in React by default. That's how you end up with two codebases and a weekly meeting about JSON.

Ecto: PostgreSQL, MySQL, SQLite

Ecto is the database layer. The Repo talks to the database, schemas map rows to Elixir structs, changesets validate a change before you save it, and queries are written in Elixir. They look a lot like SQL, so you can see what will run. I prefer that to an ORM that guesses for you.

The ecto_sql adapters cover PostgreSQL (Ecto.Adapters.Postgres), MySQL (Ecto.Adapters.MyXQL) and SQL Server (Ecto.Adapters.Tds). SQLite comes from ecto_sqlite3, which this site uses.

My default for a new product is PostgreSQL. In the accounting migration we moved the data from MySQL to PostgreSQL, but you don't have to. If the company already runs MySQL, keep it.

Oban: background jobs, no Redis

Every product has work that happens outside a request: emails, imports, reports, calls to slow APIs. In Ruby that's usually Sidekiq plus Redis. In Python it's Celery plus Redis or RabbitMQ. One more server to run and patch.

Oban keeps jobs in the database you already have, "PostgreSQL, MySQL, or SQLite3". You get retries with backoff, scheduled jobs, unique jobs, priorities, cancellation and cron-like schedules. A job is a row, so you can insert it in the same transaction as the data it works on. Transaction rolls back, the job never existed. I've chased enough "the job ran but the record isn't there" bugs to care about this a lot.

In the accounting migration Oban replaced a Java workflow engine, its monitoring UI and the Elasticsearch instance that was there only because the engine needed a data exporter. Three services out, one library in.

PubSub and Presence

Phoenix.PubSub sends messages between processes and between servers. The default adapter "uses Distributed Elixir, directly exchanging notifications between servers." An Oban job finishes and broadcasts an event, and every open LiveView page that cares updates itself. No polling, no Pusher, no extra socket server. There's a Redis adapter for setups where your nodes can't reach each other. Most teams never need it.

Phoenix Presence tracks who is online and where. The Phoenix guide says it "has no single point of failure, no single source of truth, relies entirely on the standard library with no operational dependencies and self-heals." That's your "3 people are looking at this invoice" feature.

Broadway: data pipelines

Broadway is "a concurrent, multi-stage tool for building data ingestion and data processing pipelines." It reads from Amazon SQS, Apache Kafka, Google Cloud Pub/Sub, RabbitMQ and others, and handles back-pressure, batching, acknowledgements, rate limiting and graceful shutdown. Use it when data arrives from a queue at high volume. For jobs your own app creates, Oban is simpler.

Nx and Bumblebee: ML inside the app

Nx is numerical computing for Elixir: tensors, plus compilers like EXLA that run the code on the CPU or GPU. Bumblebee loads models from the Hugging Face Hub and runs them as servings that "automatically batch requests from multiple clients".

Honest take. To run a known model inside your product (embeddings, classification, transcription), this saves you a separate Python inference service. For research and training new models the Python world is much bigger, and I'd keep that part in Python. Most products today call an LLM API anyway, and that's a plain HTTP call. In our accounting app we rewired the LLM and OCR integrations and moved the workflows to Oban jobs.

Nerves: Elixir on devices

Nerves is an "open-source platform that combines the rock-solid BEAM virtual machine" with the Elixir ecosystem for embedded systems. It builds a small Linux firmware image, and the firmware is "immutable so you know exactly what software is running."

The BEAM fits hardware because a crashed process restarts without taking the device down.

Elixir desktop and mobile apps

The part of the stack people know least. Also the part where we have the most scars. At CyanView, which makes camera control systems for live production, one Phoenix codebase runs on their control panel hardware and as a desktop app on the operator's laptop. One codebase, two build targets.

Option How it works Where we used it
LiveView in a native shell Phoenix app packed into one binary with Burrito, shown in a Tauri window CyanView Studio, macOS and Windows
elixir-desktop LiveView apps for Windows, macOS, Linux, iOS and Android, native desktop windows through wxWidgets Not in production with us
Native or React Native app plus Elixir backend The phone app talks to Elixir over the network CyanCamera, iOS and Android

Burrito bundles "the required ERTS for your project", so the user installs one app and never hears the word Erlang. CyanCamera speaks the wire format of the Elixir control system, so to the network the phone is just another camera.

A note on LiveView Native, which still shows up in older articles: its GitHub repository was archived by the owner on February 10, 2026. I wouldn't start a new product on it.

Deployment: any cloud, or no cloud

Elixir ships as a release. The Mix docs say releases "do not even require Erlang or Elixir in your servers, as it includes the Erlang VM and its runtime by default." Catch: you build it on the same OS and architecture as the target. In practice you build it inside Docker and forget about it. So it runs wherever Linux runs:

  • On AWS it goes on EC2, ECS, Fargate or Kubernetes like any container. ExAws talks to S3 and DynamoDB, and Broadway reads from SQS.
  • Fly.io has Elixir docs for launching a Phoenix app and running an Elixir cluster across regions.
  • On one VPS or bare metal it just runs. This site deploys with Docker Compose on one server, and a small shell script keeps the previous image around for rollback.

You don't need Kubernetes for high availability. Two or three nodes connected with Distributed Elixir already share PubSub and Presence.

Observability

Phoenix, Ecto, LiveView and Oban all emit telemetry events: request times, query times, LiveView mounts, job durations (see the LiveDashboard metrics guide and the LiveView telemetry events). Phoenix LiveDashboard turns them into live charts, next to request logs, a searchable list of running processes, ETS tables, OS data and Ecto stats, inside your own app.

OpenTelemetry for Erlang and Elixir marks tracing as stable and has instrumentation libraries for Phoenix and Ecto. Metrics and logs are still marked as in development there. Logs go to stdout like any other app, so Datadog, Grafana or CloudWatch keep working.

What each piece replaces

Elixir piece What it does What it usually replaces
BEAM + OTP Runs many isolated processes and restarts failed ones Hand written restart and recovery code
Phoenix Web framework, APIs, WebSockets Rails, Django, Express, FastAPI
LiveView Interactive UI rendered on the server A separate React or Vue app plus the API it needs
Ecto Queries, schemas, validation, migrations Active Record, SQLAlchemy, Prisma
Oban Background jobs in your SQL database Sidekiq or Celery plus Redis
PubSub + Presence Real time messages and who is online Redis pub/sub, Pusher, a separate socket server
Broadway Pipelines from SQS, Kafka, RabbitMQ Hand written queue consumers
Nx + Bumblebee Runs ML models inside the app A separate Python inference service
Nerves Firmware for embedded Linux devices A custom embedded Linux image with a C or Python app
Release + Burrito + Tauri A self-contained server build, or one desktop app A runtime on every server, or Electron with a bundled backend

Most products need the first six rows. The rest you add when you hit the problem.

Elixir vs MySQL, Snowflake or AWS?

I see these searches in our Search Console every week, so here's the straight answer: they compare things on different layers. Elixir is a programming language, you write your application in it. MySQL is a database. Snowflake is a data warehouse. AWS is a cloud provider that rents you servers and services. A normal setup uses several of them at once.

Search What it is How Elixir uses it
MySQL vs Elixir MySQL is a database Ecto's MyXQL adapter. Oban can keep jobs in MySQL too.
Snowflake vs Elixir Snowflake is a data warehouse The ADBC library ships a Snowflake driver that "provides access to Snowflake Database Warehouses". Your app keeps its normal database and reads or writes Snowflake for analytics.
AWS vs Elixir AWS is a cloud A release is a Linux program. It runs on EC2, ECS or Kubernetes, uses S3 through ExAws and reads SQS through Broadway.

The real question behind "AWS vs Elixir" is usually money: will Elixir make my AWS bill smaller? It can, because you run fewer services on fewer servers. That argument, with numbers, is in Elixir for founders.

What this site actually runs

The main dependencies of 1703.lu, copied from our mix.exs. A SaaS would usually add Oban, swap SQLite for PostgreSQL and run the auth generator.

{@code}

That's backend, frontend and blog. esbuild and Tailwind run at build time only. Day to day Elixir development here is one mix phx.server and a browser tab.

If you go the same way

  • Start with Phoenix, LiveView, Ecto on PostgreSQL and Oban. That's a complete day one stack.
  • Keep the database you have. Ecto and Oban both speak MySQL.
  • Add Broadway, Nx or Nerves when a real problem asks for it.
  • Already on another stack? Move one piece first: the job queue, the real time part, or one heavy admin screen.

For planning a move off an older system, see the legacy modernization guide and how we run migrations. Past projects are on the work page.

FAQ

Is Elixir a good choice for a new product?

For web products with real time features, many users at once, background work or devices, yes. It's a weaker choice if the product is mostly ML research, or if you need to hire twenty developers who already know the language next month.

Can I use Elixir with React?

Yes, either as React components inside LiveView pages or as a full React app with Phoenix as its API. Most teams need less React than they expect.

Can Elixir build desktop apps?

Yes. We shipped CyanView Studio for macOS and Windows as a Phoenix LiveView app inside a Tauri window, packed with Burrito. elixir-desktop is another option and also targets Linux, iOS and Android.

Do I still need Redis with Elixir?

Usually not. Oban keeps jobs in your SQL database, PubSub works across nodes without Redis, and the BEAM has built in memory tables (ETS) for caching. In our accounting migration Redis was deleted.

Which database should I use with Elixir?

PostgreSQL is the default and the best supported. MySQL and SQL Server work through Ecto adapters. SQLite is fine for small apps on one server, this site runs on it.

Does Elixir run on AWS?

Yes. AWS, Google Cloud, Azure, Fly.io or your own servers. Elixir is a language, so the only question is where you put the release.

Want to see your stack drawn in Elixir?

We start every engagement with a paid technical assessment. We look at what you run today, draw the Elixir version of it, and mark which parts you can delete and which you keep.

Share