News for hackers. Stuff that matters.
Re:Serverless at Scale: Lessons from 200M Lambda Invocations by timenova on Sunday November 12, 2023 @01:17PM (#38242681)
A reasonably priced serverless (kinda) setup is possible on Fly.io.

Fly charges for a VM by the second, and when a VM is off, RAM and CPU are not charged (storage is still charged). They also allow you to easily configure shutting down machines when there are no active requests (right from their config file `fly.toml`), and support a more advanced method which involves your application essentially terminating itself when there's no work remaining, which kills the VM. When a new request arrives, it starts back up.

Here are the docs [0]. And here's a blog post on how to terminate the VM from inside a Phoenix app for example [1].

So essentially, you can write an app which processes multiple requests on the same VM (so not really serverless), but also saves costs when its not in use (essentially the promise of serverless).

[0] https://fly.io/docs/apps/autostart-stop/

[1] https://fly.io/phoenix-files/shut-down-idle-phoenix-app/

Re:Serverless at Scale: Lessons from 200M Lambda Invocations by cyanf on Sunday November 12, 2023 @01:27PM (#38242782)
That’s an on-demand server, not serverless.