For simple deployments, we can install Erlang and Elixir from binary packages. Instead of using the packages that come with the OS, which are generally out of date, you should use the packages from Erlang Solutions.
One disadvantage of the OS packages is that we can only have one version …
When your app is acting as a proxy to back end servers, it it may need to do a DNS lookup to convert the host name of the server into an IP hundreds of times a second. DNS can become the bottleneck for requests. It also puts heavy load on …
Here are the slides for the presentation on Elixir and embedded programming I gave to the Elixir LA user's group.
It introduces embedded programming and how Elixir is a good match for a new generation of embedded systems.
I have been looking into the best way to deploy Elixir in the cloud. As part of that, I have been building various AMIs with only the minimum needed to run an Elixir app.
Nerves is a framework for building embedded systems in Elixir. Instead of running a general purpose …
The goal of benchmarking is to understand the performance of our system and how to improve it. When we are making benchmarks, we need to make sure that they match real world usage.
In my post on Benchmarking Phoenix on Digital Ocean, changing the concurrent connections and network latency had …
This is a gentle introduction to getting your Phoenix app up and running on a $5/month server at Digital Ocean. It starts from zero, assuming minimal experience with servers.
GenServers are the standard way to create services in Elixir. At it's heart, a GenServer is a separate process (thread) that receives messages, does some work, manages state, and sends responses back. If that's what you want, great. It's important to recognize, though, that a GenServer only handles one request …
Figuring out how to deploy your Elixir app can be confusing, as it's a bit different from other languages. This post describes how we deploy apps with the reasons behind our decisions.
We have created a working example template which puts all the pieces together to get you started quickly …
Database migrations are used to automatically keep the database in sync with the code that uses it. Elixir apps should be deployed as releases, supervised by systemd. Here is an example of how to run migrations when deploying Elixir releases.
It's tempting to automatically run database migrations when the app …
- db migrations
- functional programming
- graphical design
- know your customer
- rate limiting
- static assets
- user experience
- user stories