Re:Serverless: slower and more expensive
by EwanToo on Monday September 23, 2019 @04:06AM
(#21046855)
Yes, it would be a much less dramatic headline if they'd used an ALB instead of an API Gateway, it shows the complexity of the AWS product offering though that someone picking up lambda for the first time didn't find this out.
They already have a classic ELB in place, so switching to an ALB wouldn't be a significant change in cost or capability (the ALB is often cheaper, though it's hard to tell in this case)
Re:Serverless: slower and more expensive
by sakopov on Monday September 23, 2019 @12:15PM
(#21050302)
I didn't know you could do this. For anyone interested here's a simple CF template that illustrates this scenario [1].
[1] https://github.com/s0enke/cloudformation-templates/blob/mast...
Re:Serverless: slower and more expensive
by einaregilsson on Monday September 23, 2019 @05:27AM
(#21047254)
Yes, ALB would have been a much better fit for us. We used API Gateway because that's what the serverless framework sets up (at least by default) and I didn't know you could use ALB in front of Lambda.
This can be done.
https://aws.amazon.com/blogs/networking-and-content-delivery...