i have a phoenix server running and i’m quite pleased with the results. Base invocation time for starting elixir via escript is around 180ms, but since you can now keep something around, although frozen, for 5 minutes invoking a server on lambda makes much more sense. This saves you a ton of time and expense for lambda.
The below client/server takes between 11 and 20 ms to run with 1024MB ram lambda.
- 512MB ram seems to be a sweet spot for an app that does nothing, it performed the same as 1024.
- 256MB was wildly varying between 160 and 200 ms
- 128MB ram results in ~ 230 ms which frankly isn’t bad compared with native node.
server
def test(conn,_params) do
json conn, %{worked: :true,conn: inspect(conn)}
end
client
curl localhost:9080/test
I’ll test with a native node.js http request in a few. should be faster…






















