---
title: "Elixir Development: Fault-Tolerant Services | VulCode"
description: "Elixir on the Erlang VM: the request router on hosting platform nodes and a cache layer on OTP actors. Projects, screens and when we choose it."
url: "https://vulcode.com/en/technologies/elixir"
lang: "en"
---

[Home](https://vulcode.com/en) [Work](https://vulcode.com/en/work) [Technologies](https://vulcode.com/en/technologies)

# Elixir Development: Fault-Tolerant Services

We pick Elixir on the Erlang virtual machine for processes that must survive a neighbour's failure: request routers, streaming connections and caches.

[Free quote](https://vulcode.com/en/quote) [Full pricing](https://vulcode.com/en/services/pricing)

## The projects we write in Elixir

Projects from the portfolio and the case studies, each with a short note on what this language does in it.

- [**Flaem: per-node request router** The command stream from the core, a job queue and node reports, Elixir and OTP.See the project](https://vulcode.com/en/work/case-studies/flaem)

- [**excache** A cache layer on the OTP actor model.See the project](https://vulcode.com/en/portfolio/other/excache)

## When we choose it, and when we do not

Where we use it

- ### A command router on a node
  The Flaem router on every node holds the command stream from the core, the job queue and the reports. A slow Proxmox call runs in a separate task, so it does not block the rest of the node.

- ### Recovering from failure
  A supervisor from OTP (Erlang's toolkit for fault-tolerant services) restarts a process that crashed while the rest of the system keeps running. A closed stream to the core ends in a reconnect, not in a service failure.

- ### A report on what really runs
  When the core asks, the node lists the machines that exist in Proxmox and the game servers it hosts. An error while gathering ends in an error report, not in a stopped command stream.

- ### Local node state
  The node keeps its servers, assigned addresses, tunnels and SFTP credentials in SQLite through Ecto. A process restart does not lose what the node knows about itself.

- ### A Redis-compatible cache
  excache speaks the RESP protocol, so ordinary Redis clients connect to it. The keys are split between supervised processes, and each process handles its own keys in turn, with no locks.

- ### Every connection in its own process
  Erlang VM processes are light, so in excache every client connection gets its own. A stuck or dropped client does not block the others.

When we choose something else

- ### Interfaces and sites
  The Flaem panel is in React and TypeScript, while Elixir works on the nodes, where there is no screen at all. An interface in TypeScript is easier to hand to the next team.

- ### Heavy computation
  The Erlang virtual machine is built for input and output, not for number crunching. We write numeric computation and cryptography in Rust.

- ### An agent in a client's machine
  An Elixir release carries its own ERTS runtime. An agent inside a client's VPS should be one small binary, so we write it in Go.

- ### A billing core
  Elixir checks types mostly at run time, so a wrong shape of data shows up only when the code runs. Billing and KSeF (Poland's national e-invoicing system) in the Flaem core are in Rust, where the compiler checks them.

- ### A service for a team without Erlang
  There are fewer Elixir developers than Go or TypeScript ones. When the client's team will take the service over and supervision is not central, we pick Go.

- ### Scripts and automation
  A one-off script or a bot needs no supervisors and no releases. Python is on every Linux box and gets it done sooner.

## Elixir or something else

A technology has to fit the place the code will run and the team that will take it over. The final choice is made in the quote, together with you.

| Service | Elixir | Go |
| --- | --- | --- |
| Thousands of connections and supervision | built into OTP | written by hand |
| A single binary | a release with its own ERTS | yes |
| Developer availability | lower | higher |
| One part failing | the supervisor restarts just that part | an unhandled panic ends the whole program |
| A hanging external call | a separate process, the rest keeps answering | a separate goroutine with a timeout |
| Types | checked mostly at run time | static, checked at compile time |
| Heavy computation | a weak spot of the Erlang VM | faster machine code |

## The libraries these projects stand on

From the dependency files of [our repositories](https://vulcode.com/en/opensource). With each, one sentence on what we use it for.

- `grpc and protobuf` the command stream from the core

- `Bandit and Plug` the node's local API

- `Ecto and SQLite` local node state

- `Joken` access tokens

## Services we build in Elixir

Each has a starting price and a free quote.

- ### [Web platforms](https://vulcode.com/en/services/web-platforms)
  Platforms with many concurrent connections, from PLN 8,999.

- ### [Integrations and automation](https://vulcode.com/en/services/api-integrations)
  Services that sit between systems, from PLN 999.

## Frequently asked questions

Answers about Elixir and our projects.

- **How much does an Elixir service cost and how long does it take?**: A service that sits between systems starts at PLN 999 (about EUR 220), while a platform with many concurrent connections starts at PLN 8,999 (about EUR 2,020) and usually takes 2-4 months. We give the figure for your scope in a free quote.
- **Is Elixir not too niche?**: It is rarer than Go or TypeScript, so we use it only where OTP gives something other languages lack out of the box: process supervision and recovery from failure.
- **When Elixir and when Go?**: Elixir when a service holds thousands of connections and has to recover from failure by itself: process supervision is built into OTP. Go when you need one small binary, heavy computation or developers who are easier to find.

## Other technologies we write in

Each has its own page with projects and a comparison with the alternatives.

- ### [Rust](https://vulcode.com/en/technologies/rust)
  We write Rust where a bug costs the most: a hosting platform's core, a messenger's cryptography, a licence server and tools that run for years on other people's machines.

- ### [Go](https://vulcode.com/en/technologies/go)
  We pick Go for services that run on many machines and should need as little attention as possible: node agents, telemetry, messenger servers and networked games.

- ### [TypeScript, React and Node](https://vulcode.com/en/technologies/typescript-react-and-node)
  TypeScript is our default for everything you see in a browser: websites, client panels, stores and web apps, with Node and Next.js for their back ends.

- ### [C# and .NET](https://vulcode.com/en/technologies/csharp-and-dotnet)
  C# with Avalonia is our pick for native desktop apps on Windows, macOS and Linux, and .NET for libraries, emulators and plugins for Unity-based games.

- ### [Kotlin](https://vulcode.com/en/technologies/kotlin)
  We write native Android apps in Kotlin with Jetpack Compose, and use Kotlin away from phones too: in a database engine and a language interpreter.

- ### [Swift](https://vulcode.com/en/technologies/swift)
  We write native iPhone apps in Swift: the interface in SwiftUI, widgets in WidgetKit and notifications through APNs that arrive even when the app is closed.

- ### [Python](https://vulcode.com/en/technologies/python)
  Python is our language for Discord bots, ops scripts, monitoring and data sync: wherever writing quickly and fixing easily matter most.

- ### [PHP](https://vulcode.com/en/technologies/php)
  We write PHP where hosting runs: WHMCS modules, Pterodactyl themes, WordPress and WooCommerce plugins, small sites without a framework and APIs that must run on any server.

- ### [Java](https://vulcode.com/en/technologies/java)
  We write Java mainly for Minecraft plugins on Paper, Purpur and Folia.

## Tell us what you want to build.

A free quote comes back within an hour during working hours. You talk to the person who writes the code.

[Free quote](https://vulcode.com/en/quote) [Free consultation](https://vulcode.com/en/consultation)

- [hello@vulcode.com](mailto:hello@vulcode.com)

- [+48 576 043 920](tel:+48576043920)

- [discord.gg/vulcode](https://discord.gg/vulcode)
