I understand an AWS application load balancer can have either:
Since Lambda has their own system of concurrency (which already also has provisioned concurrency) why would you need to load balance to Lambda?
If the application load balancer can be used for routing by URL to different Lambda functions then wouldn't API Gateway be the better choice?
The support of ALB for lambda is not for its concurrency. The support is to enable your lambda function to be available as a web service. Lambda function, by default, can't be invoked from the internet. To make it usable as a web application, one way is through ALB (other is API gateway).
Thus, often lambda with ALB will be used as part of your full web application, running along side your EC2 instances. But you can setup your ALB to have one its path handled by lambda function. Often such lamnda function are used as proxies, to fetch external API, or provide access which would be troublesome to implement in EC2 instances.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With