Serverless ASP.NET Core Web API with AWS Lambda | Super Affordable .NET Hosting

Поделиться
HTML-код
  • Опубликовано: 3 авг 2024
  • Get $25 FREE AWS Credit from bit.ly/aws-mukesh
    Hosting ASP.NET Core WebAPI in AWS Lambda is way more powerful than you might think. Superior Performance, Auto Scaling Resources, and Super Affordable Pricing. In fact, you get almost 1 Million FREE Requests per month with AWS Lambda. In this video, we will explore and learn this approach.
    Chapters ⌚
    0:00 - Introduction
    1:07 - Prerequisites
    1:51 - Building a .NET 8 Web API
    3:10 - Installing the Lambda Hosting Package
    4:35 - Deploying ASP.NET Core Web API to AWS Lambda with CLI
    6:33 - Function URLs
    8:18 - Environment Variables
    9:31 - Loading Configurations from JSON
    12:20 - Products API
    17:39 - When to deploy ASP.NET Core Web API to AWS Lambda
    20:05 - Outro
    This video is sponsored by AWS and is a part of my ongoing .NET on AWS series: • .NET on AWS
    Read the text version of this video here: codewithmukesh.com/blog/hosti...
    Get your free AWS Account from here - aws.amazon.com/free
    🚀 .NET on AWS Series GitHub Repository: github.com/iammukeshm/dotnet-...
    ⭐ Support my Work:
    www.buymeacoffee.com/codewith...
    ✉️ Join my .NET newsletter:
    codewithmukesh.com/subscribe-...
    Let's Connect!
    😎 My Blog: codewithmukesh.com/
    🔥 LinkedIn: / iammukeshm
    🎫 X: / iammukeshm
    🐦 Facebook: / codewithmukesh
    📸 Instagram: / iammukeshm
    #dotnet #aws #serverless
  • НаукаНаука

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

  • @MatthewThirteenFourtyFour
    @MatthewThirteenFourtyFour 4 месяца назад

    great video, thanks Mukesh, really clear explanation. What a cool feature.

  • @caseyspaulding
    @caseyspaulding 3 месяца назад

    Thanks Mukesh!

  • @sphazwelakhe2784
    @sphazwelakhe2784 5 месяцев назад

    Thank you for this Tutorial

  • @AvinashSatyavratJoshi
    @AvinashSatyavratJoshi 5 месяцев назад

    Hey Mukesh, nice presentation 😊

  • @frankieyeung7064
    @frankieyeung7064 4 месяца назад +2

    Great tutorial, but I got internal server error after deployed, in cloud watch it said some dll not found, please help

  • @ganeshgm7
    @ganeshgm7 4 месяца назад

    Nice walkthrough. Will Web API (Native AOT( supports this deployment. Please provide guide on that.

  • @softveda9956
    @softveda9956 5 месяцев назад +2

    I enjoyed your tutorial, condensed and to the point. Just a request, the background music is very distracting and I couldn't concentrate, didn't work well when speeding up the video, you can check with other's opinion but I haven't come across any learning sites (udemy, pluralsight, linkedin etc,.) that adds background music to coding tutorials.

    • @codewithmukesh
      @codewithmukesh  5 месяцев назад +1

      Thanks a lot for the feedback. Yes I too realized that it might be a bit distracting. Will sort this out in the next video.

    • @softveda9956
      @softveda9956 5 месяцев назад

      @codewithmukesh thanks for replying. A lot of people with hearing difficulties and some kind of autism will also have problems with background music. Perhaps you can do a few seconds of music at start and then remove it.

  • @imashar
    @imashar 5 месяцев назад

    Awesome 💯

  • @promant6458
    @promant6458 2 месяца назад +2

    Jesus, at first when you said about the 1mln requests, I thought that you ment 0.2$ per EACH additional request, not per each milion. I almost died from heart attack when i heard this 🤯 But yeah, 1 mln requests for 0.2$ does seam affordable.

  • @yagnikpatel1494
    @yagnikpatel1494 3 месяца назад

    Good tutorial, i have a question regarding ideal mode application
    How do I avoid going for the ideal mode application? is there any solution to avoid this

  • @philipperapin8515
    @philipperapin8515 21 день назад

    Hello Mukesh, nice tutorial. I am running into an error when publishing with the CLI from Visual Studio Code at 5:27 on your video. It seems I cannot get the AIM security credentials: Error retrieving configuration for function whosaroundbackend: Unable to get IAM security credentials from EC2 Instance Metadata Service.
    Any ideas?

  • @jimshadrick479
    @jimshadrick479 5 месяцев назад

    Nice video. One of the first I have seen on .NET 8. Being new to AWS Lambda what are you using to test your functions locally? From what I understand the SAM CLI tool only supports .NET 6 still. Any guidance or suggestions would be much appreciated.

    • @codewithmukesh
      @codewithmukesh  5 месяцев назад

      SAM CLI supports .NET 8 too. Please refer - aws.amazon.com/blogs/compute/introducing-the-net-8-runtime-for-aws-lambda/
      To test the lambda locally, you can use the Amazon.Lambda Mock Tool. github.com/aws/aws-lambda-dotnet/tree/master/Tools/LambdaTestTool This is more than enough to test your Lambdas.

  • @loganathansiva95
    @loganathansiva95 5 месяцев назад

    Good 👍

  • @marjukerazi1089
    @marjukerazi1089 5 месяцев назад

    Good solution thank you so much bhai. I have a question, i had to deploy frontend what should i do?

    • @codewithmukesh
      @codewithmukesh  5 месяцев назад

      Thanks! What kind of frontend are you trying to deploy. You have several solutions ranging from S3 Static Uploads, Dockerized Apps, AWS Amplify. Totally depends on your use case.

    • @marjukerazi1089
      @marjukerazi1089 5 месяцев назад

      @@codewithmukesh simple frontend for live api monitoring..which can be developed in angular.

  • @vivekgowda1576
    @vivekgowda1576 3 месяца назад

    Can we create a lambda at each controller level?

  • @user-rn9vv9hf4n
    @user-rn9vv9hf4n 2 месяца назад

    can i use .NET 7?

  • @user-yp7mb8wp7k
    @user-yp7mb8wp7k 4 месяца назад

    this is good for minimal api. how to deploy and run api for controllers and multiple api endpoints
    ?

    • @codewithmukesh
      @codewithmukesh  4 месяца назад

      The same is applicable for controllers too.

  • @m.f.mfazrin8720
    @m.f.mfazrin8720 4 месяца назад +2

    Please avoid background music it is really annoying

    • @codewithmukesh
      @codewithmukesh  4 месяца назад

      Yes, will fix this in the next video. Thanks for the feedback.

  • @arunthiyagarajan27
    @arunthiyagarajan27 5 месяцев назад

    👌

  • @engineer.01
    @engineer.01 3 месяца назад

    .NET 8 series chalu hua kya nhi?

  • @manjumurugan7832
    @manjumurugan7832 5 месяцев назад

    🙌

  • @csilipo
    @csilipo 3 месяца назад

    How do you get an AWS account. I’ve tried 3 times with 3 different emails. Still no luck! Keeps asking for a code to login in with - no code just an Email with a link. I’ve given up. Carlo