Skip to content

Latest commit

 

History

History
86 lines (57 loc) · 2.63 KB

fly-phoenix-setup.md

File metadata and controls

86 lines (57 loc) · 2.63 KB

Fly.io

fly.io is a new type of Platform-as-a-Service (PaaS) for deploying web Apps/APIs closer to the people using them. Much like a Content Delivery Network (CDN) where there are copies of your static content stored on "edge" nodes close to the people (devices) consuming the content, Fly.io replicates your Application so that it is closer to the people using it.

Why?

On the surface it looks like a great way to deploy Elixir/Phoenix Apps and they are committed to making the experience great.

What?

A new way of deploying Elixir/Phoenix apps that will continue to get better because they hired Chris McCord (creator of Phoenix!!)

Pricing?

Pricing seems "fair", or at least comparable to AWS. See: [learn-devops/issues/72][#72 (comment)]

Venture Capital (VC) Funding?

Fly.io are funded by YCombinator and a few others ... Obviously, we would prefer if they were independent, but we totally understand that building this kind of service requires considerable capital investment in the form of both infrastructure and engineers.

I suspect they are piggy-backing on AWS/GCP/etc rather than running their own servers. But they still have the job of making it all seamless.


How?

Following the "Hands on with Fly" (getting started guide): https://fly.io/docs/hands-on/start/

Instal flyctl CLI

https://fly.io/docs/hands-on/installing/

I'm using homebrew on mac so:

brew install superfly/tap/flyctl

Deploy an App

Followed: https://fly.io/docs/getting-started/elixir/
Created the PR for deploying Hits to Fly.io: dwyl/hits#128 (detailed log in the PR)

The process for deploying a Phoenix App was a bit long ... ⏳ (lots of steps...)
But the docs were good and when I got stuck their forum was useful.

Metrics UI

The Fly.io web interface is still very basic: https://fly.io/apps/hits/metrics?range=172800 fly-hits-app-metrics-http

fly-hits-app-metrics-etc

Conclusion

Fly.io seems to be good so far. My plan is to check-in with the Hits App on Fly on a weekly basis and see how it's doing. Right now I'm just stoked that it's working and has fast response times.