-
Notifications
You must be signed in to change notification settings - Fork 8
Implement Lambda warmer #2
base: netcore-22-runtime-upgrade
Are you sure you want to change the base?
Conversation
Hey @michaeldimoudis, what if you were to use the |
Hi @bsthomsen I'm not sure sorry as I haven't had to do this before. I'm guessing it should be possible though? However if you are using an ALB, why not make the health check your Lambda so you won't need a warmer then? |
Ended up resolving it like this, for ApplicationLoadBalancer: |
Thanks @bsthomsen!! I’ll try it out! |
I got your code to work but somehow cannot get a response correctly from the modified Lambda although routing and methods fire. Method: [HttpGet("get")] Logs: I am trying to fire through the ApplicationGateway vs the ALB but thought methods should return anyways. |
@richardkeller411 if you use the ApiGateway you should use the code in this pull request instead. The code I wrote is for when you're using ApplicationLoadBalancer. |
I’m using ALB but can’t seem to get response to return although I have the method firing and see it in the Post Method overloads that I have logging. The APIGateway message is part of the SDK logging from the ALB method |
@richardkeller411 you need to update your LambdaEntryPoint to reflect the other class I posted, I've added it to the gist so you can see how I did it: |
I did that already. |
For anyone else looking at ALB... You need to make sure security groups account for HTTP Traffic Inbound and if you method connects to a Database or External HTTP call you need to have your VPC setup right with NAT Gateway and DB Internal Ports. |
No description provided.