Open tj opened 6 years ago
Exciting stuff! Will be great to finally upgrade from Node 6.10.3, the 50mb code limit, and having to keep Lambda functions warm. I feel like Lambda has always been designed for small scripts between AWS services rather than full fledged Node/Go/Python web servers. Looks like Fargate is the future!
Agreed, it's a little unfortunate that even regular FaaS with Node is difficult due to the dep sizes, but having more options for different types of apps will be great. Fargate's baseline pricing will be more expensive since you need at least one container running idle but it shouldn't be bad
Also autoscaling.
Also load balancing - if we're coming into Fargate then the load balancing options - Application vs Network become important.
One very interesting difference in particular is with regards to SSL - the Application Load Balancer handles SSL using the ACM, but because Up has a proxy anyway, it's actually possible to use the far cheaper Network load balancer and have Up do certs from Let's Encrypt using https://godoc.org/golang.org/x/crypto/acme/autocert
By having the SSL setup handled transparently in the Up proxy, it's also possible to have the system completely provider-agnostic when it comes to SSL - EC2/Fargate/GCE/Docker/Digital Ocean can all work the same way.
@sudhirj true true! I think Fargate only supports ALB though for routing no? Need to read up that a bit still – but being more portable there would definitely be great
Fargate is plain ECS, as far as I can see - it's only a managed cluster on ECS, so it saves having to run instances. Everything above the cluster level is regular ECS, so either load balancer should work. Will double check, though.
Fargate is "container native". This will be a better option for people with more predictable and sustained traffic, where API Gateway can become expensive. This enables Docker support as well of course.
https://aws.amazon.com/blogs/aws/aws-fargate/
"platform": "fargate"
CFN template used: