Hacker News new | ask | show | jobs
by tomatowurst 1547 days ago
interesting that i've never heard of it, isn't this basically AWS Fargate? write your custom stuff in docker/kubernetes and it becomes serverless?

Do you mean that you could write a regular Flask/PHP app and it will automatically make it serverless? What about long running tasks that gets triggered by http?

To answer your question, its just a lot easier to use a serverless framework to fully utilize separate AWS services (authentication, message streaming, database) while with the solution you described would benefit from custom platform depenedent binary applications (getting ffmpeg/specialized version of PIL to work on aws lambda was a nightmare).

Hopefully somebody else can chip in here, I've never used Fargate or Cloud run but neverthless open to when i can use it.

1 comments

isn't this basically AWS Fargate?

It is close to Fargate. But on Fargate there's still a lot you have to manually control, like when to spawn up new instances, etc.

Cloud Run has this extremely simply concurrency model: You tell how many requests your app can handle concurrently and how many instances are allowed to run any given time.

* Do you mean that you could write a regular Flask/PHP app and it will automatically make it serverless? What about long running tasks that gets triggered by http? *

It's Docker based. So it doesn't really care. It just spawns up your docker file and expects your app to listen on $PORT.

what if a process takes like an hour or two to finish, can apprunner handle this?

Often I find myself panicking because I can't finish a task in 15 minute limit, and so I end up spinning up Lightsail server to process long running tasks, which means I need to create SQS queue to manage pending jobs, and its a wheel I seem to reinvent constantly.