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

Комментарии • 26

  • @AbyTJoseph
    @AbyTJoseph Год назад

    Glad to see your videos after a while! 😀👍

    • @RahulNath
      @RahulNath  Год назад +1

      Thank you Aby. More to come! Was on vacation to India 😀

  • @TheDeckerFamily
    @TheDeckerFamily Год назад

    Thanks for the info, this will actually let me optimize some code.

    • @RahulNath
      @RahulNath  Год назад

      Glad I could help!! The full AWS seires is here bit.ly/aws-net-series

  • @kevalpatel5809
    @kevalpatel5809 Год назад +1

    Hi Rahul, this is excellent explanation of AWS Lambda Lifecycle. Thanks
    It would be interesting if you can make a video on Lambda layering.

    • @RahulNath
      @RahulNath  Год назад

      Glad you liked it Keval. Sure I will add it to my list. Anything in particular you would like to see with Layers?

  • @sai-sampreeth-madireddy
    @sai-sampreeth-madireddy Год назад

    Great job buddy! Hope you are doing good!

    • @RahulNath
      @RahulNath  Год назад

      Thanks! You too! and great hearing from you

  • @sydsharma
    @sydsharma Год назад

    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.

    • @RahulNath
      @RahulNath  Год назад

      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!

  • @anoopdattathreya3517
    @anoopdattathreya3517 Год назад +1

    HI Rahul, is it recommended to create a database connection in the constructor of an AWS Lambda function code?

    • @RahulNath
      @RahulNath  Год назад

      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.

  • @rameshbabukollu7026
    @rameshbabukollu7026 Год назад

    This is wonderful. Thanks for making these videos. Could you please create one video on AMQ trigger on Lambda function?

    • @RahulNath
      @RahulNath  Год назад +1

      Yes, soon have added to my list! Hope you are liking the full series bit.ly/aws-net-series

  • @vssrikanthgarnepudi5952
    @vssrikanthgarnepudi5952 Год назад

    Hi Rahul,can you make a video on AWS Step functions.

    • @RahulNath
      @RahulNath  Год назад

      Added to my list. Sure will do! hope you are enjoying the AWS Series bit.ly/aws-net-series

  • @aamirali8114
    @aamirali8114 Год назад +1

    one question we have to buy aws service as beginner to learn aws service

    • @RahulNath
      @RahulNath  Год назад

      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

  • @DigvijaySingh-se2ll
    @DigvijaySingh-se2ll Год назад

    Rahul Bhai can you make video on async await and on using

    • @RahulNath
      @RahulNath  Год назад

      thank you for the suggestion Digvijay. What would you like to see around 'using'?

  • @longhoang4768
    @longhoang4768 7 месяцев назад

    Hi. This is first time I am watching your video.
    Hello from Vietnam. Are you Indian?

    • @RahulNath
      @RahulNath  7 месяцев назад +1

      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

    • @longhoang4768
      @longhoang4768 7 месяцев назад

      @@RahulNath I searched AWS Lambda in youtube.
      Your video is very helpful.

    • @RahulNath
      @RahulNath  7 месяцев назад

      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

    • @longhoang4768
      @longhoang4768 7 месяцев назад

      @@RahulNath Do you have AWS course step by step?

    • @RahulNath
      @RahulNath  7 месяцев назад

      @@longhoang4768Yes Udemy course on Lambda linked above. What are you looking for ?