1

At AWS’ 2018 re:invent, AWS announced that Lambda functions can now be the target of Application Load Balancers (documentation here).

I just want to ensure that I understand AWS previous offerings (e.g., my current setup) correctly — that is, if AWS API Gateway is setup to proxy to an AWS Lambda function, AWS already spins up / balances requests, correct?

Dan
  • 113
  • 4

1 Answers1

3

That's correct - technically API gateway handles all of the load balancing for you against any newly provisoned or warm lambda functions. But many people (ourselves included) wanted to use ALB's for lambda as we could perform the following routing:

if request.url ~ /node-app:
  use nodejs-application target group
else if request.url ~ /lambda-app:
  use lambda function target group

So we can now mix and mingle both EC2 and Lambda based microservices across the same hostname, whereas previously they had to be on seperate hostnames (one pointing to ALB, other to API Gateway)

Brennen Smith
  • 1,742
  • 8
  • 11