AWS LAMBDA LIFECYCLE | .NET ON AWS | AWS Serverless | Amazon
HTML-код
- Опубликовано: 21 окт 2024
- ✨Happy New Year. I am back making videos after a much-needed vacation home after 3 long years. Hope you are all good and had a good New Year.
When I first started using Lambda Functions, I made a terrible mistake in my function code because I did not understand how Lambda Lifecycle works. I used an instance variable in my function code, assuming it will be reset from my constructor code - only that it didn’t.
In this video let’s understand the Lambda Lifecycle, learn the different phases, and see how it affects the code you write in your Lambda Functions.
The Lambda Lifecycle mainly consists of there phases
Init Phase
Invoke Phase
Shutdown Phase
We will explore how these different phases affect the code we write using .NET as an example.
🔗Source Code - rahulpnath.vis...
🔗AWS Doc - docs.aws.amazo...
This video is sponsored by AWS and is part of my .NET on AWS Series.
Additional Watching
📹AWS Lambda - • AWS LAMBDA For The .NE...
📹Lambda Udemy Course - bit.ly/aws-lam...
📹AWS Credential Management - • AWS CREDENTIALS: How T...
📹 ASP Series - bit.ly/asp-net...
📹AWS Series - bit.ly/aws-net...
Come say hi! ✋
🌍 Blog - rahulpnath.com/
✉ Subscribe to my Newsletter - www.rahulpnath...
🐦Twitter - / rahulpnath
📸Instagram - / rahulpnath
🛠️ Uses rahulpnath.com/...
🎥 Recording Setup and Workflow - www.rahulpnath...
#amazon #aws #dotnet #lambda
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
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!
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
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 ruclips.net/video/RYOG7W0fOK4/видео.html
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'?
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 ruclips.net/p/PL59L9XrzUa-kl89ThijziX03fgTrbZCd7&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 ?