1 Answer
- Newest
- Most votes
- Most comments
1
Hi,
No, you cannot control how to balance traffic natively with lambda.
I have seen cases where for instance, an API Gateway would have an Application Load balancer behind it. Then the ALB would have target groups pointing to lambdas, but at least you can have ALB deciding the load (round robin, https://docs.aws.amazon.com/elasticloadbalancing/latest/userguide/how-elastic-load-balancing-works.html).
With that approach you get some kinda of control, thought at subnet level lambda May still select randomly the subnet.
Hope it helps ;)
Relevant content
- Accepted Answerasked 7 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago
Even if you use an ALB, when ALB invokes the Lambda function, the Lambda service will choose the subnet and you have no control over that.