up
up copied to clipboard
ALB option to replace API Gateway
This was just announced, and sounds great if you don't use any of the API Gateway features — Up by default does not really utilize any.
Notes:
- Waiting for CloudFormation support
ALB is pretty pricey right? Billed by the hour? https://aws.amazon.com/elasticloadbalancing/pricing/
Does seem like a weird feature addition, considering the serverless dream. ;)
generally it'll be more expensive, but if you're doing something like ingesting logs/metrics for your app it should be a lot more cost effective than API GW once you pass that threshold. Even 50 requests/second is around $700/mo for API GW :D gets crazy
@tj CloudFormation support's available now, just FYI.
@kaihendry API Gateway is great for small requests loads, but the minute you start doing anything high throughput, it gets insanely expensive. We switched from APIGW to ALB for one of our services and ended up saving something like 75 bucks a day.
Also, API Gateway's got some limitations ALB doesn't, namely around timeouts. APIGW is a 30s max timeout, while lambdas can run for up to 15m. ALB's got no limitation around timeouts, so for services that may have long running processes, it's a better candidate.
any updates?
@thewillhuang not yet but if the cloudformation portion is ready I should be able to add it next week, I'll post updates here if it doesn't work out for some reason
Is there any easy way for us to accomplish this ourselves? I'd really love to see this feature implemented as I don't really need API gateway either.
@s32x it should be possible, but I can't provide guidance for that since it's out of the project scope right now. Of course some features like the domain mapping won't automatically work, you'd have to do that yourself