up icon indicating copy to clipboard operation
up copied to clipboard

ALB option to replace API Gateway

Open tj opened this issue 6 years ago • 7 comments

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

tj avatar Nov 29 '18 18:11 tj

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. ;)

kaihendry avatar Nov 30 '18 00:11 kaihendry

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 avatar Nov 30 '18 10:11 tj

@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.

youcandanch avatar May 11 '19 14:05 youcandanch

any updates?

thewillhuang avatar May 21 '19 14:05 thewillhuang

@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

tj avatar May 21 '19 15:05 tj

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 avatar Sep 23 '19 20:09 s32x

@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

tj avatar Sep 24 '19 08:09 tj