scouten

scouten

Low-cost, no-fuss Elixir app hosting?

I’m looking for a host for the server part of a small (personal) side project that I’m working on. It’s currently written in Node.js and hosted on Heroku. I’m now rewriting that server in Elixir and looking for a suitable host.

The “server” is a daemon that periodically reads some public API data (local transit schedules) and remixes them into a format that is more suitable for a mobile client application I’m writing and places that data into a database. (The database will be hosted by Cloudant and is not part of this server.) The process is pretty lightweight.

I might take an occasional HTTP request, but that is about it.

Can you recommend a good host for such a service?

First 7 of 7 Posts! Switch mode

AstonJ

AstonJ

I would always recommend a dedicated server if your budget can stretch to it - you just get so much more for your money.

Here are some other threads on the topic you might find interesting:

scouten

scouten

Dedicated hosting is serious overkill for the app I’m building. I’m surprised by the frequent references to Heroku; thought Elixir wasn’t supported there.

yurko

yurko

DO all the way, a simple app can be hosted on a 5usd droplet which is the price of a cheap shared host :slight_smile:

DavidAntaramian

DavidAntaramian

@scouten I don’t know how you got the opinion that Elixir wasn’t supported on Heroku. The Heroku platform is highly extensible through the use of buildpacks. The most common Elixir buildpack is the HashNuke distribution. Both at my previous company and my current company, we used this to deploy production-grade Elixir applications via the Heroku ecosystem.

Overall, there are reasons to not run a long-term production Elixir application on Heroku due to certain limitations of the infrastructure (like < 24 hour uptime guarantees, inviability of clustering, etc.), I recommend it for people who are looking to get off the ground with their first Elixir application. The limitations of Heroku need to be weighed against the requirements of the application. If you already have the NodeJS application running on the Heroku ecosystem, most likely it will meet the requirements of the Elixir version.

ibgib

ibgib

By periodically, do you mean that it is an option to stop/start the server on some kind of schedule? If so, then perhaps this page for starting/stopping ec2 instances might be good for you. That page uses the CloudWatch events to trigger the start/stop of the ec2 instance, and it mentions a data pipeline method which is described in detail here.

I’ve never done this personally with AWS. :smile: I do know, however, that if you need something that has a static IP address, then the reserved IP costs money even if the instance is not running (since it’s being reserved). It sounds like you’re only making an occasional outbound request, so that may not be relevant.

dom

dom

Heroku should do the job just fine for your use case. The big limitation is that you can’t use distributed Erlang on it (since the dynos can’t connect directly to each other), but for a small app running on a single dyno, it doesn’t matter.

AstonJ

AstonJ

This Phoenix guide might also help:

http://www.phoenixframework.org/docs/heroku

Where Next?

Trending in Discussions Top

AstonJ
As the title says, please share what you’ve been up to with Elixir. Whether that’s been learning it, looking into it, making stuff with i...
2976 91332 914
New
f0rest8
Hi everyone :waving_hand: Posting here to showcase and announce that Metamorphic is now officially live on a public-facing domain at htt...
New
byu
@chrismccord : I just saw the Extract AGENTS.md from Phoenix.new into phx.new generator commit to the phoenix project. My initial shotgu...
New
arcanemachine
I was working on an Ecto migration and I needed a timestamp. So, for the nth time, I looked up the different data types for timestamps, a...
New
AstonJ
Just a general thread to post chat/news/info relating to AI/ML stuff that may be relevant for Nx now or in the future. Got anything to sh...
New
type1fool
I just stumbled on a newly redesigned elixir-lang.org. :tada: It looks like @Software_Mansion did the work, and I think it is generally a...
New
juhalehtonen
There has been a thread to discuss the Stack Overflow Developer Survey on this forum every year since 2018, so here’s yet another one for...
New

Other Trending Topics Top

JesseHerrick
Hey, I’m Jesse and I’m the main contributor behind Dexter, a full-featured, lightning-fast Elixir LSP optimized for large codebases. It s...
New
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Damirados
Hello everyone. After busy few months I am happy to announce v0.1.0 of Emerge &amp; Solve. They are GUI (Emerge) and State management (S...
New
ausimian
Emily is an Elixir library that runs Nx computations on Apple’s MLX. Install it as the default Nx backend and Nx, defn, Axon, Nx.Serving,...
New
akoutmos
@hugobarauna and I (Alex Koutmos) have been hard at work on writing a book on Nerves that takes you from simply blinking LEDs to building...
New
zachdaniel
Introducing AshStorage! Attachment and file management that slots directly into your resources :smiling_face_with_sunglasses: I had hope...
New

We're in Beta

About us Mission Statement