3 ms·
If I were avoiding heroku because of cost and had a need to scale horizontally, I'd use Fargate with spot instances. Manage it with CDK or terraform. As long a
by phamilton 6y ago
If I were avoiding heroku because of cost and had a need to scale horizontally, I'd use Fargate with spot instances.
Manage it with CDK or terraform. As long as you have enough containers running, spot ends up being a non issue.
- asaddhamani 6y agoMy application is actually pretty bandwidth heavy, which removes AWS and other major cloud operators from the equation. But I’ll keep it in mind for non bandwidth intensive workloads.
- qbasic_forever 6y agoIt's even simpler now, lambda supports running docker images as of a couple months ago: https://aws.amazon.com/blogs/aws/new-for-aws-lambda-container-image-support/ https://aws.amazon.com/blogs/aws/new-for-aws-lambda-containe...
- jamesmishra 6y agoI also recommend this path, but I found it really hard to write all of the required Terraform for the VPC, security groups, load balancers, and Fargate configuration. So I put together an open-source Terraform super-module to automatically set all of that up in a few lines of code. https://provose.com/ https://provose.com/
- phamilton 6y agoCDK has `ecs-patterns` https://github.com/aws/aws-cdk/tree/master/packages/%40aws-cdk/aws-ecs-patterns https://github.com/aws/aws-cdk/tree/master/packages/%40aws-c... I'm a pretty big fan of CDK if you are willing to make cloudformation and AWS your lingua franca. I use it for most of my personal projects, but professionally bias towards terraform.