yolo007wizard

yolo007wizard

Phoenix as a Serverless replacement?

This ElixirConf talk blew my mind. Wanted to learn more and see if anyone else have had experiences like this? How does fly.io free tier scaling compare to azure / aws free tier? How many requests a month could it roughly handle assuming 1kb in and 1kb out, 2 seconds for each req?

Personally I’m a big serverless fan. I use Azure functions extensively at work for event driven webhook handling. Cold starts are not a big deal for our usecase but I understand its limitations for flows involving waiting users.

For Phoenix to hit feature parody imo it would need a mix generator for quick endpoint setup. The mix task would also need options for token auth via url query or body params. Bad or missing tokens return 403.

Example:
$ mix phx.gen.serverless -name your_serverless_func -auth url_query
would generate https://localhost/your_serverless_func?token=123 endpoint plus all the router / controller setup etc. All thats left to do is handle the plug from the controller and return response.

Where Next?

Popular in Discussions Top

pillaiindu
In django there is a cache framework backed by memcached. Rails also puts a lot of emphasis on caching, and even the idea of russian-doll...
New
rms.mrcs
A couple of days ago I was discussing with a friend about different approaches to write microservices. He said that if he was going to w...
New
jer
I’ve been using umbrellas for a while, and generally started off (on greenfield projects at least) by isolating subapps based on clearly ...
New
Fl4m3Ph03n1x
Background This question comes mainly from my ignorance. Today is Black Friday, one of my favorite days of the year to buy books. One boo...
New
marciol
Please, let me know if this kind of discussion already took place in another topic . Hi all, how do you consider if is better to build ...
New
AngeloChecked
What learn first? Rust or Elixir Hi Elixir community! I’m here because i want learn a new language. I’m a junior developer and mainly i ...
New
paulanthonywilson
I like Umbrella projects and pretty much always use them for personal Elixir stuff, especially Nerves things. But I don’t think this is ...
New

Other popular topics Top

rms.mrcs
Hi, I need to transform a list of numbers into a map where the keys are the indexes and the values are the original values of the list. ...
New
JeremM34
Hello, how can I check the Phoenix version ? Thanks !
New
JakeBecker
TL;DR: I’ve just released an implementation of Microsoft’s IDE-independent Language Server Protocol for Elixir. It adds language support ...
1144 54996 245
New
siddhant3030
Hi, I have to write a raw query for one of my project. But till now I have used ecto queries and don’t have much experience writing raw ...
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 42576 114
New
senggen
Erlang/OTP 25 [erts-13.2.2] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] 15:22:35.803 [error] gen_event {lager_file_backend...
New

We're in Beta

About us Mission Statement