Hacker News new | ask | show | jobs
by Touche 3253 days ago
What do people use as a PaaS provider for Erlang/Elixir?
3 comments

Heroku is fine for development. However, it does not work with hot code swapping. There are ways around it, and some people don't believe it's a gain.

There is also https://github.com/hashrocket/gatling that promises the Git push workflow but with hot upgrading capability.

Heroku is OK as a deployment platform. Hex powers Erlang/Elixir communities on a small Heroku dyno ($7). And 99% of Elixir developers should not worry about hot code swapping anyway. Let your load balancer or your PaaS take care of it.
Hex runs on 1 small Heroku Dyno? That's amazing.
I believe that's alongside using Fastly for CDN work, which might pick up a majority of the work, I'm not sure.
Any other options? For the small team I work with managing infrastructure is not really an option.
I use docker and docker-compose for sideprojects that don't need zero downtime deploys. Installed on a tiny digital ocean droplet.

A multistage build makes it easy to compile a release on a macOS system and create a minimal alpine docker images with the unpacked .tar.gz release. (My app is an ~84MB docker images)

See above. Someone mentioned Gigalixir, and I've been having success with Clever Cloud. I had to do a ton of research before finding a workable option (Heroku is not really a good option imo), so hopefully this helps.
Using Heroku at the moment (largely because I was already familiar with its ecosystem) for a phoenix app, though they don't have support for Elixir. In the future I'm considering doing my own hot deploys to AWS, but the cost of running on Heroku is small enough that it may not be worth the time to migrate off.