Deploy a SpringBoot 3 API on AWS Lambda in 10 minutes

preview_player
Показать описание
SpringBoot is the most widely used application framework in Java, but did you know you can your SpringBoot 3 applications built with Java 21 on AWS Lambda in under 10 minutes.

In this video you will dive into taking a brand new SpringBoot 3 API and deploying that to AWS Lambda in under 10 minutes. Then, you will enable Lambda SnapStart to improve the performance of your SpringBoot Lambda functions at startup.

00:00 - Introduction
00:30 - Create a new SpringBoot API
01:10 - The Serverless Java Container
02:10 - Add LambdaHandler class
04:50 - Add a Controller
05:10 - Add an AWS SAM Template
06:40 - Deploy with AWS SAM

Links

Рекомендации по теме
Комментарии
Автор

Hey James!... I just subscribed, please keep sharing your knowledge in this kind of videos... really concise and easy to understand!.

woper
Автор

This is exactly the type of content I need right now. I am a little under a month with AWS and the only thing I am struggling with is connecting all the services together. Things like having a EC2 instances in private and public subnets and connecting them together. Also architecture design. I understand your mainly a severless Java channel, so I'll probably have to figure it out some other way if you can't do it.

lesedi
Автор

Hi James, this is exactly what I needed as well. Your tutorial really simplifies everything! Thank you again, and I subbed!

JohnBrosan
Автор

Hi James thanks for putting this video together. For me the next steps are to learn how to do local debugging using SAM, adding authorizers, and deploying with stages thru pipelines. Looking for more tutorials on how to do these things.

rocketbob
Автор

I liked the unedited parts of the video 😄

manrique.varela
Автор

I really enjoy your videos! In every video I learn bits and bits that leads me to be better!

oscar
Автор

Please make another one explaining how I could add multiple routes!

cristianomuniz
Автор

Love the content. Can you make a demo video but deploying this app as a GraalVM native image? If possible setting up a pipeline since we would have to use a custom runtime.

emmanuelU
Автор

will the "serverless-java-container" gracefully handle DB connection (pool) without using AWS RDS Proxy?

jhcao
Автор

Is there code to create the subnets and VPC's, instead of going thro the prompts and creating them? Looking forward to see how you have configured VpcConfig section. Do we need to setup networking outside this example or the SAM prompts create the required networking also?

pavanmadiraju
Автор

Can you please share your github URL for this demo code?

mumbaimuru
Автор

Hey James, great tutorial.. is it working only with ApiGw? Can that lambda be invoked based on SQS Message?

AlexSmirnou
Автор

Why would anyone deploy Spring Boot in AWS Lambda? What's the ideal use case for this?

AwkwardFX
Автор

Dear James, thx a lot for that video. Very helpful indeed. 👌May I ask for a big favor? 🙏🏼Would it be possible for you to lay out a springboot3 app in lambda with an api gw in front of it which does session handling in redis and maybe stores a simple object in a relational database - something like Postgres - and for the infrastructure as code I would love to see the usage of cdk instead of sam. Do you think that would be possible? Thx a lot in advance. If not in a complete video maybe some guides, hints or further links would also be highly appreciated. Regards, Mario 🎉

buma
Автор

Hi James! Thank you for the video, I was curious if you could help me troubleshoot here, I am not getting the outputs to appear but the deployment says it was succesful i just do not know how i am supposed to verify this being the case without seeing the outputs, any advice welcome! Thank you!

HayleighYoung
Автор

I believe you are using API Gateway infront of your Lambda to recieve the request and proxy the request.
Is there a way we can implement a handler class which does not use API Gateway?
I want to invoke my springboot controller method directly from my handler class without proxying the request.

kunalsaha
Автор

is aws lambda free, asking as a student for self learning

bitsforbits
Автор

Hi James, good video! I am hung up on getting the code for the first part of the template.yaml file(First 13 lines). Can you provide the code to the template.yaml file for this video? (Or just the first 13 lines?) Thanks so much!

IdaRosenthal-fu
Автор

hey @serverlessjames Thanks a lot for this tutorial i have implemented a similar this in my company just have a doubt in this, Does this support multipart file also in controller for ex( @RequestPart(value = "zipFile", required = true) MultipartFile zipFile) will this work if i add this controller and call using serverless lambda . Waiting for your reply i am stuck in this for 1 week now .

SujeetKumar-hhjz
Автор

Shut up with Double Down CTA : it's 2024 and we know what to do... so get to the point and : Earn it...

RAZR_Channel