3 ms·
It's super frustrating that AWS has no equivalent to GCP's Cloud Run which offers fast startup, scales to zero but offers the flexibility and simply exposing HT
by laurencerowe 5y ago
It's super frustrating that AWS has no equivalent to GCP's Cloud Run which offers fast startup, scales to zero but offers the flexibility and simply exposing HTTP to the container it runs.
Lambda has scale to zero and fast startup but its custom RPC interface (presumably an outgrowth of its batch processing origins) does not support streaming responses, has awkward response size limits, and prevents multiple requests from being executed concurrently on the same instance (so caches cannot be shared.)
Fargate provides the flexibility from simply running an HTTP server inside a container but at the cost of slower startup and no ability to scale to zero.
- recuter 5y agoFargate is what, 3 cents an hour? And of course it can scale to zero, it uses standard autoscaling groups. It will scale however you want, heck use custom scaling logic with your control plane running in Lambda :) https://docs.aws.amazon.com/autoscaling/application/userguide/application-auto-scaling-step-scaling-policies.html https://docs.aws.amazon.com/autoscaling/application/userguid...
- suprfsat 5y agoFor 3 cents a _month_ Cloud Run can store over a gigabyte of containers and run them on-demand.
- laurencerowe 5y agoMy understanding was that you would get error responses from the load balancer if you set Fargate to scale all the way down to zero: https://serverfault.com/a/951440 https://serverfault.com/a/951440
- wahnfrieden 5y agoscale to zero means without downtime
- otterley 5y agoThe closest analogous service that runs containers in the simplest manner possible would be AWS App Runner: https://aws.amazon.com/apprunner/ https://aws.amazon.com/apprunner/ It scales almost to zero (minimum cost is the memory dedicated to a single task).
- laurencerowe 5y agoLast time I looked apprunner was unable to access RDS databases but I see this was recently added which makes it a viable option for me now! https://aws.amazon.com/about-aws/whats-new/2022/02/aws-app-runner-amazon-vpc/ https://aws.amazon.com/about-aws/whats-new/2022/02/aws-app-r...
- laurencerowe 5y agoThough with memory limited to just 4gb (vs 10gb for lambda and 16gb for cloud run) it may not be viable for my app. Somewhat frustrating that the ephemeral storage mentioned in the documentation provides no clue as to the amount available. https://github.com/aws/apprunner-roadmap/issues/112 https://github.com/aws/apprunner-roadmap/issues/112
- vosper 5y agoDo you know how App Runner compares to Elastic Beanstalk? There are so many AWS services these days I have no idea what to use half the time…
- mhoad 5y agoWorse still because Cloud Run is basically just managed KNative it’s not some crazy proprietary technology that Amazon would have to develop in house.
- harpratap 5y agoIt's not managed KNative - https://ahmet.im/blog/cloud-run-is-a-knative/index.html https://ahmet.im/blog/cloud-run-is-a-knative/index.html It's implementing KNative API but on GCP Infra