3 ms·
Amazing, now I don't have to pay API Gateway to do just an HTTP routing.
by rmbyrro 5y ago
Amazing, now I don't have to pay API Gateway to do just an HTTP routing.
- k__ 5y agoAs far as I know, you can call the Lambda via the AWS SDK.
- throwaway2016a 5y agoYou can but that has security + protocol implications and is not as useful for general web consumers. This seems better IMHO.
- nhoughto 5y agoYeah you need an aws iam identity to call lambda invoke, for public consumer this is better.
- websap 5y agoYou could always use an ALB? ALB has some nice extensions as well.
- giaour 5y agoDon't ALBs have a minimum hourly cost? Last time I looked into this, you couldn't run an ALB for less than ~$17/month. Definitely cheaper than API gateways for even a moderate amount of traffic, but API gateway costs scale down to zero for unused or rarely used endpoints.
- coredog64 5y agoWhat ALBs don’t have is a maximum payload size. :) Note: The “official” way to work around this is to write your large payload to S3 and then create a pre-signed S3 URL that you return to the caller instead.
- scarface74 5y agoThere are limits all the way down. ALB with Lambda - 1MB Lambda - 6MB
- pugz 5y agoGiven that we're talking about ALBs with Lambda targets, their limit is actually quite a bit lower than API Gateway: 1MB https://docs.aws.amazon.com/elasticloadbalancing/latest/application/lambda-functions.html https://docs.aws.amazon.com/elasticloadbalancing/latest/appl...
- boyter 5y agoUsing an ALB in front of a lambda, while neat is a pretty expensive way to do it. Something like $15 a month.
- yuppie_scum 5y agoThat’s not expensive if you have a money making app.
- sofixa 5y agoOne way to keep your money making all profitable is to not waste money, for instance on cloud services that can be workarounded for cheaper.