Hacker News new | ask | show | jobs
by obenn 602 days ago
The AWS equivalent to Cloud Run and Container Apps is called Fargate, https://aws.amazon.com/fargate/
1 comments

Neither Fargate nor App Runner scale to zero (unless something changed). So there is always a baseline cost of a few dollars.
Lambda container would be the closest equivalent with that functionality, https://docs.aws.amazon.com/lambda/latest/dg/images-create.h...
Agreed. I ran a small GPT chatbot on Lambda through API Gateway with a dynamodb storage backend and don't recall incurring any cost (or if I did, was just pennies per month).
But if you’re constantly pinging the container (as suggested above), it will never scale to zero.
It "scales to zero" as soon as the request stops as far as billing is concerned.

However, the image remains "warm" and incurs zero cost once the last request ends. So I usually have a `/heartbeat` endpoint for this purpose and point a Cloud Scheduler job at it.

I haven't read the docs to figure out the exact heuristics of when it becomes "cold" again.