Deploy a Spring Boot Application to AWS Lambda with an API Gateway

Поделиться
HTML-код
  • Опубликовано: 27 янв 2025

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

  • @Jaksteroide
    @Jaksteroide 8 месяцев назад +1

    I came from the "Spring Boot y Java en español" Facebook community... And I have to say that It was a very useful video to give me a brief idea of how aws lambda and spring boot deployment process works. New sub here!

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

    Very helpful video! I couldn't run the Lambda function for a long time. I followed the recommendations from the video, and everything started working.

  • @bollywood90ssongs65
    @bollywood90ssongs65 Месяц назад

    Hi @Bro - your tutorials are great but can you please explain how to integrate the and develop microservices architecture and also manage the properties files using lambda function. that would be great. Thanks

    • @TheDevWorldbySergioLema
      @TheDevWorldbySergioLema  Месяц назад +1

      About the microservices, I've created a playlist some time ago: ruclips.net/video/iwq0rc-PYNQ/видео.html.
      About the properties file using Lambda, as you use Spring Boot, it's actually the same.

  • @fipabrate
    @fipabrate 8 месяцев назад

    awesome video!

    • @TheDevWorldbySergioLema
      @TheDevWorldbySergioLema  8 месяцев назад

      Thank you!

    • @fipabrate
      @fipabrate 8 месяцев назад

      @@TheDevWorldbySergioLema i don't know why i get build.gradle when i create maven archtype project :/ Currently I'm trying to test my app with aws toolkit plugin before deploying it. Don;t know what i am doing but here goes nothing 🥲

  • @JohnBrosan
    @JohnBrosan 8 месяцев назад

    Great video! I am wondering if you have the template file for AWS SAM do you need to create and upload the lambda? SAM should do that for you. I am currently working on a DynamoDB trigger and would like to have the Spring features you mentioned along with AWS SAM to deploy. SAM init, uses the old AWS SDK for Java and not AWS SDK for Java 2.x unless there is something I am doing wrong.

    • @TheDevWorldbySergioLema
      @TheDevWorldbySergioLema  8 месяцев назад +1

      The SAM template is available in the Github repository of the project.
      I didn't use it because I wanted to explain step by step all the services used.

    • @JohnBrosan
      @JohnBrosan 8 месяцев назад +1

      @@TheDevWorldbySergioLema Fantastic! Thank you! I look forward to more of your content. :-D

  • @johncerpa3782
    @johncerpa3782 8 месяцев назад

    Great video

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

    Can i deploy my springboot app which is image form to lambda? Do you have any link for it

    • @TheDevWorldbySergioLema
      @TheDevWorldbySergioLema  Месяц назад

      You have the available project in my Github repository: github.com/serlesen/java-lambda

    • @abdulmuyeez
      @abdulmuyeez Месяц назад

      @@TheDevWorldbySergioLema thank you.. you are so kind.

  • @perek3226
    @perek3226 8 месяцев назад

    Hi man, great video! I have a question, you've created a maven archetype project and using ready dependencies. What if I already have ready Spring Boot project? I don't want recreate whole project with a lot of dependencies, connected DB and other. What I need to do then? Thank you

    • @TheDevWorldbySergioLema
      @TheDevWorldbySergioLema  8 месяцев назад +1

      Hi, you need to create the main method according the my project, add the StreamLambdaHandler, and the Maven dependencies to build the JAR or ZIP file

    • @perek3226
      @perek3226 8 месяцев назад

      @@TheDevWorldbySergioLema will it work if I am using Gradle as my building system?

    • @TheDevWorldbySergioLema
      @TheDevWorldbySergioLema  8 месяцев назад +1

      Yes, using Gradle or Maven changes nothing about the application nor the packaging. What you must change is the way the plugins and dependencies are fetch. I remember when building the archetype that both the pom.xml and gradle.build are available.

  • @darshanmestry9343
    @darshanmestry9343 6 месяцев назад

    How to run this project locally to test the APIs?

    • @TheDevWorldbySergioLema
      @TheDevWorldbySergioLema  6 месяцев назад

      It's hard to do it, because, by default, you exclude the Tomcat webserver from Spring Boot.
      This means that you can't run it in your laptop.
      What I do, create unit tests that request the endpoints.

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

    How do you make a single API Gateway use multiple Spring Boot lambda functions?

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

      When configuring the api gateway, you can choose the path and the target. Here, choose as target different lambdas

  • @daribo1
    @daribo1 8 месяцев назад

    How do you deal with coldstart? Normally the instance is being shutdown after apporox. 5-7 minutes. Is it possible to keep it alive for not having long responses in between?

    • @TheDevWorldbySergioLema
      @TheDevWorldbySergioLema  8 месяцев назад

      I haven't found a solution for that.

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

      First of all, SnapStart has been a thing for quite some time now which heavily reduces cold start. But yes, you can keep your lambdas warm by simply creating a cron job that would fire a request every minute or two or use CloudWatch Timers.

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

    If I deploy telegram bot using spring boot, the process is the same?

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

    Cool