Exadra37

Exadra37

Doubts about deploying a Phoenix App on Fly.io

I am considering to use Fly.io to deploy my Phoenix Apps, but reading their docs I got caught by surprise with this:

The platform works out which region an application should be running in based on the incoming connection from a client. It then starts the application in that region and completes the connection.

I read it like that my application will be put asleep when is inactive for some period of time and then awaken when it receives traffic again.

So, in my understanding this kind off Heroku behaviour or am I misunderstanding the sentence?


Another doubt that I have is if I can deploy more then 1 app per VM, because it’s not clear from their getting started docs for Elixir:

Most Liked

mrkurt

mrkurt

That blurb is describing our autoscaling feature. Most Phoenix apps don’t use that. When you enable autoscaling, we start and stop VMs for you. It’s not really magic, more like an autoscaling group on AWS.

In our environment, containers are VMs. Docker isn’t secure in multi tenant environments, so we extract containers and run them in Firecracker VMs. They still act like “containers” though.

You can run multiple processes per VM if you want. They are not like servers you SSH into and manage individually, though. You need to install a supervisor and let it start mutltiple processes.

Our Postgres clusters are Fly apps that run multiple processes per VM: GitHub - fly-apps/postgres-ha: Postgres + Stolon for HA clusters as Fly apps. · GitHub

andreaseriksson

andreaseriksson

Is there a GDPR policy in place? I couldnt find anything although I didnt look super hard.

Exadra37

Exadra37

Well, even if they have a GDPR policy, once they are a US company they can be forced by US laws to handle all the data they have about their customers, no matter which location in the world it’s stored. At least is what @lawik states in this video:

So, fundamentally if this is the case then the only way I see at a glance is for cloud providers to have completely separated companies in Europe and US, aka to be completely legal independent of each other, and then how could they provide a global service without muddling the legal waters?

Maybe would be best for @AstonJ to separate this post into a new thread, because I anticipate that it will derail this topic :slight_smile:

Where Next?

Popular in Discussions Top

jswny
I would like to better understand what the advantages/disadvantages of umbrella applications are compared to structuring your app as as s...
New
blackode
Elixir Upgrading is so Simple in Ubuntu and It worked for me Ubuntu 16.04 git clone https://github.com/elixir-lang/elixir.git cd elixir...
New
mikl
I wanted to capitalize a string, and tried using String.capitalize(). That generally works well, until you try to capitalize a word like...
New
Rustixir
Hi everyone, im working on find best language/framework/system for high concurrency, high performance and stable performance after wor...
New
AstonJ
If a newbie asked you about Phoenix Contexts, how would you explain the basics to them? Feel free to be as concise or in-depth as you li...
New
AstonJ
Are there any Elixir or Erlang libraries that help with this? I’ve been thinking how streaming services like twitch have exploded recentl...
New
ben-pr-p
In general I’ve been sticking to this community style guide GitHub - christopheradams/elixir_style_guide: A community driven style guide ...
New
100phlecs
Are there any downsides, like perf issues, to putting all functional components in CoreComponents as long as you prefix it with the conte...
New
scouten
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 ...
New
Fl4m3Ph03n1x
Background A few days ago I was listening to The future of Elixir from Elixir Talks, with Dave Thomas (@pragdave ) and Brian Mitchell. I...
New

Other popular topics Top

malloryerik
Hi, this is for people who, like me, have had some friction using .html.heex templates in VSCode. The solution seems to be, in a hyphena...
New
lastday4you
I wanted to check elixir version in phoenix because i found that my elixir is 1.5 but when i use Enum.chunk_by it said the function is un...
New
TunkShif
This post is an instruction guide to help you setup your Neovim for Elixir development from scratch. It includes general information on h...
274 41989 114
New
albydarned
Hello all! I am typing this post from my new MacBook Pro with the M1 chip. I’m loving it so far, and will probably use it as my daily dr...
New
gshaw
What is the idiomatic way of matching for not nil in Elixir? E.g., First way: defp halt_if_not_signed_in(conn, signed_in_account) when...
New
electic
Hi, I am new to Elixir. I am trying to use the DateTime component to insert a date into MySQL however the there seems to be no way to fo...
New
komlanvi
Hi everyone, I was playing with phoenix liveView but I run into an issue. I have a form and want to validate each input text when the te...
New
hariharasudhan94
Lets say I have map like this fetching from my database %{"_id" => #BSON.ObjectId<58eb1a7a9ad169198c3dXXXX>, "email" => ...
New
vegabook
I’m brand new to Phoenix and I have stripped one of the demo applications to the bone. I just want to get an svg up on the screen. Here i...
New
sergio
Kind of like when jquery came out, it was super necessary. Existing drag and drop libraries have a bunch of baggage to support old browse...
New

Latest on Elixir Forum

Elixir Forum

We're in Beta

About us Mission Statement