Haha I made the same "terrible mistake" a few weeks ago and couldn't sleep for 2 days trying to understand what was actually going on. This is a really surprising/non-obvious behavior of AWS Lambda, especially for someone coming from a non-serverless background. I'm glad to see you spreading awareness on this topic.
Haha yes, it's a very easy mistake to make I guess, esp when coming from Azure Functions land. If I remember it creates a new instance there every time. Thank you for the comment and have a good day!
Thank you - Yes I’m from India. How did you find me ? Hope you liked the video - Checkout the AWS Series for more videos th-cam.com/play/PL59L9XrzUa-kl89ThijziX03fgTrbZCd7.html&si=SyidqFj7I5HBG70w
Haha I made the same "terrible mistake" a few weeks ago and couldn't sleep for 2 days trying to understand what was actually going on. This is a really surprising/non-obvious behavior of AWS Lambda, especially for someone coming from a non-serverless background. I'm glad to see you spreading awareness on this topic.
Haha yes, it's a very easy mistake to make I guess, esp when coming from Azure Functions land. If I remember it creates a new instance there every time.
Thank you for the comment and have a good day!
Glad to see your videos after a while! 😀👍
Thank you Aby. More to come! Was on vacation to India 😀
Thanks for the info, this will actually let me optimize some code.
Glad I could help!! The full AWS seires is here bit.ly/aws-net-series
Hi Rahul, this is excellent explanation of AWS Lambda Lifecycle. Thanks
It would be interesting if you can make a video on Lambda layering.
Glad you liked it Keval. Sure I will add it to my list. Anything in particular you would like to see with Layers?
Great job buddy! Hope you are doing good!
Thanks! You too! and great hearing from you
HI Rahul, is it recommended to create a database connection in the constructor of an AWS Lambda function code?
Hey Anoop, yes for connections it still makes sense to be in the ctor since they are stateless and does not affect if the same instance is reused.
This is wonderful. Thanks for making these videos. Could you please create one video on AMQ trigger on Lambda function?
Yes, soon have added to my list! Hope you are liking the full series bit.ly/aws-net-series
Hi Rahul,can you make a video on AWS Step functions.
Added to my list. Sure will do! hope you are enjoying the AWS Series bit.ly/aws-net-series
Rahul Bhai can you make video on async await and on using
thank you for the suggestion Digvijay. What would you like to see around 'using'?
one question we have to buy aws service as beginner to learn aws service
No you can use AWS Free Tier aws.amazon.com/free
I do talk about this set up in my video here th-cam.com/video/RYOG7W0fOK4/w-d-xo.html
Hi. This is first time I am watching your video.
Hello from Vietnam. Are you Indian?
Thank you - Yes I’m from India. How did you find me ? Hope you liked the video - Checkout the AWS Series for more videos th-cam.com/play/PL59L9XrzUa-kl89ThijziX03fgTrbZCd7.html&si=SyidqFj7I5HBG70w
@@RahulNath I searched AWS Lambda in youtube.
Your video is very helpful.
Glad you liked it! Hope you are enjoying the other videos in the series. I also have a course on Udemy bit.ly/aws-lambda-udemy
@@RahulNath Do you have AWS course step by step?
@@longhoang4768Yes Udemy course on Lambda linked above. What are you looking for ?