Deploy Spring Boot Serverless CRUD API to AWS Lambda 🔥 | API Gateway |

  Рет қаралды 24,538

Java Techie

Java Techie

Күн бұрын

#JavaTechie #DistributedMessaging #SpringBoot #ApachePulsar
👉 In this tutorial I will guide on deploying Spring Boot applications to AWS Lambda. This tutorial covers everything you need to know, including the benefits of serverless computing and a step-by-step deployment guide.
What You Will Learn:
👉 What is AWS Lambda?
👉 What is serverless Programming?
👉 Deploy CRUD REST API to AWS Lambda ?
👉 Access Lambda through API GATEWAY
🧨 Hurry-up & Register today itself!🧨
Devops for Developers course (Live class ) 🔥🔥:
javatechie.ong...
COUPON CODE : NEW24
Spring boot microservice Premium course lunched with 70% off 🚀 🚀
COURSE LINK : Spring boot microservice course link :
javatechie.ong...
PROMO CODE : SPRING50
GitHub:
github.com/Jav...
Blogs:
/ javatechie4u
Facebook:
/ javatechie
Join this channel to get access to perks:
www.youtube.co...
🔔 Guys, if you like this video, please do subscribe now and press the bell icon to not miss any update from Java Techie.
Disclaimer/Policy:
📄 Note: All uploaded content in this channel is mine and it's not copied from any community, you are free to use source code from the above-mentioned GitHub account.

Пікірлер: 75
@amaradhipadmaja9232
@amaradhipadmaja9232 3 ай бұрын
What a beautiful example, I tried each step and Absolutely worked, and created Employee API deployed using API Gateway and Lambda function. Thank you Basant ji :)
@MuayViaura
@MuayViaura Ай бұрын
Great lecture! Simple and obious!! Thank you very much!!
@hunterxdk
@hunterxdk 3 ай бұрын
Thanks sir, much needed.❤
@MohaideenA
@MohaideenA 26 күн бұрын
But why deploy as .zip file instead of jar?
@Francisco-co3lb
@Francisco-co3lb Ай бұрын
Hello. I managed to create a jar file, put it on an S3 Bucket an uploaded to the lambda function with success. However, when I try to call any test i get the error Class not found: com.project.cr01.StreamLambdaHandler. The handler configurations has the full path, as in "com.project.cr01.StreamLambdaHandler::handleRequest". I did not create a zip as I was having a lot of errors with those libs, but the lambda accepts the jar, and I see it has all the needed files (i see them also when i download it from the lambda). Any ideas why it's not finding the StreamLambdaHandler class? Thank you so much
@Javatechie
@Javatechie Ай бұрын
No buddy uploading jar won't work you need to create thin jar using zip and play with it . I am not sure why this restrictions
@surajjoshi6640
@surajjoshi6640 2 ай бұрын
What if our spring boot application has log4j2 integrated...How do we ensure it is able to log our custom message to the log file??.
@universal4334
@universal4334 3 ай бұрын
I'm not sure my question is vaild or not, but the spring boot app should be running in tomcat inorder to accept request right ? Will lambda keep on running ? I know that it only startup when request hit lambda, will tomcat start when it get request or it keep on running ? If yes lambda only run for 15 mins right ?
@Jitendra-cl7ru
@Jitendra-cl7ru 2 ай бұрын
Sir I Have hit the end point using post but response is value is null, Status code is Ok like 201, plz sir help me where is my mistake
@Javatechie
@Javatechie 2 ай бұрын
Can you check it in your local first
@Jitendra-cl7ru
@Jitendra-cl7ru 2 ай бұрын
@@Javatechie okay I will check and thank u so much sir for reply me
@Javatechie
@Javatechie 2 ай бұрын
@@Jitendra-cl7ru no problem please check and let me know if issue still persists
@onkarkatkar2582
@onkarkatkar2582 3 ай бұрын
Can i join your devops course now??
@Javatechie
@Javatechie 3 ай бұрын
Yes you can join but I will not suggest you to join now as the course will be completed within next 15 days. So it's good to purchase this with half price I will announce that shortly 😀
@onkarkatkar2582
@onkarkatkar2582 3 ай бұрын
Sure thank you
@aditipai7289
@aditipai7289 9 күн бұрын
This is so well explained! Keep up with the good work
@faixan13
@faixan13 3 ай бұрын
another day another unique content :) Please ask everyone to delete the instance of lambda and api gateway in the end :D otherwise on free account also will get charge after consuming enough hours. I have faced this in the past.
@theshivrajofficial8444
@theshivrajofficial8444 3 ай бұрын
same here bro...2 years ago i followed his tutorial and forgot to delete the resourse. then i got huge bill with free tire
@Javatechie
@Javatechie 3 ай бұрын
Yes it's good point somehow I missed to update at end of the video . But I Don't think it will charge more as it's a lambda function and you need to only pay as used .
@tejach3087
@tejach3087 2 ай бұрын
Can you help me with below question like what are the steps need to be done My use case is for example I have to write cloud watch trigger which triggers the lambda and I want to hit only get API only So I want to hit the get api continuously using lambda and cloudwatch trigger
@Javatechie
@Javatechie 2 ай бұрын
No idea need to check this buddy
@tejach3087
@tejach3087 2 ай бұрын
@@Javatechie Ok sir, if there is any update please post here. Thanks 😊
@rahulkharapkar2716
@rahulkharapkar2716 3 ай бұрын
how can we deploy it for free, just for resumes for showcasing recruiters
@Javatechie
@Javatechie 3 ай бұрын
Lambda won't charge more . You will pay only when you used it . Regarding free will check and update
@2RAJ21
@2RAJ21 2 ай бұрын
thank u for your guide about AWSLambda and Api gateway. how to remove this services after use??
@Javatechie
@Javatechie 2 ай бұрын
Just delete the function
@2RAJ21
@2RAJ21 2 ай бұрын
@@Javatechie thank you.
@dineshkm7832
@dineshkm7832 Ай бұрын
I have a ELB url which have 3 node of app server in differenr AZ ... How and where we can implement lambda here .. please help .. How can we implement Lambda for ELB ( this ELB redirecting to direct to 3 app server and doing Load balancing )
@MohaideenA
@MohaideenA 26 күн бұрын
How to use Springboot features like JPA and stuffs for S3event instead of APIGateway ?
@deepakmishra169
@deepakmishra169 3 ай бұрын
I did this 5 years ago and faced a lot of cold start problems then shifted to node.js at last 😢 is the cold start issue resolved now these days ?
@itsnarahari
@itsnarahari 3 ай бұрын
😂
@tofuyam7361
@tofuyam7361 3 ай бұрын
its been reduce by snapstart but still takes seconds. I try Quarkus + graal native compile and it is very fast
@NikhilJain08
@NikhilJain08 3 ай бұрын
Same issue so I moved to Google cloud run. Cold boot issues
@sreenureddy994
@sreenureddy994 3 ай бұрын
Appreciate your efforts. Can you please add security also for the same if possible
@vino7tech
@vino7tech 3 ай бұрын
Hi Basant. Thank you so much for your wonderful real-time example. Thank you for your valuable time for creating this video.
@anubhavpandey5182
@anubhavpandey5182 3 ай бұрын
sir please do share guide for how to deploy application which has oauth2 (google,github)
@gopisambasivarao5282
@gopisambasivarao5282 3 ай бұрын
Appreciate your efforts Basant. Thank You! God bless you.😊
@gajananjagdale3957
@gajananjagdale3957 3 ай бұрын
Thank you sir for this precious video.
@vivektheartist
@vivektheartist 23 күн бұрын
Great Example. Thank You
@dineshkm7832
@dineshkm7832 Ай бұрын
By deploying this wat ..will it can connect to RDS too ?
@Javatechie
@Javatechie Ай бұрын
Yes just configure RDS instance in your code 😀
@dineshkm7832
@dineshkm7832 Ай бұрын
thx
@dineshkm7832
@dineshkm7832 Ай бұрын
@@Javatechiesir they api gateway availability etc will b taken care by AWS ? 2- how we can customize gate way url as per company name 3- any aws course u providing for all this ?
@Javatechie
@Javatechie Ай бұрын
Yes you can specify domain url, you have the option to specify it while creating Gateway. Exactly didn't remember the page but yes we can customize it .
@govardhanp3239
@govardhanp3239 3 ай бұрын
Doing great job sir keep it up ..ur doing great service giving such a knowledge for free of cost hats for you
@RAVIKUMAR-bh1cd
@RAVIKUMAR-bh1cd 2 ай бұрын
Great explanation. Very Thankful to you.
@kashmca
@kashmca 3 ай бұрын
Great Demo. Thanks! Keep up the good work!. Can you explain how to debug this if we wanted to?
@Javatechie
@Javatechie 3 ай бұрын
Okay sure
@yugandharreddynalabolu
@yugandharreddynalabolu 2 ай бұрын
followed same steps as in this video and able to do. Thank you
@pawan_aman_vlogs
@pawan_aman_vlogs 2 ай бұрын
Exactly what I was looking for. Thank you
@grrlgd3835
@grrlgd3835 3 ай бұрын
thanks JT. How do you get to know about the Maven Archetype to use in the first place ? what reference's do you use to learn about this ? great content as ever.
@Javatechie
@Javatechie 3 ай бұрын
Hello buddy. I was searching this deployment in medium and then found this solution so thought to share
@deepakmishra169
@deepakmishra169 3 ай бұрын
One more question is graal vm integrated in archetype? Because I saw very few logs after the spring logo on console
@Javatechie
@Javatechie 3 ай бұрын
Need to check buddy. Will update you
@mrinalsharma4137
@mrinalsharma4137 2 ай бұрын
Great example. Tried and worked for very first time. Basant can you help with security examples for accessing these lambda functions from api gateway?
@saikumardasari4220
@saikumardasari4220 3 ай бұрын
Exllent topics doing @techie Please do one video on ci-cd with spring micro service into aws eks
@Javatechie
@Javatechie 3 ай бұрын
Yes I will do that
@theshivrajofficial8444
@theshivrajofficial8444 3 ай бұрын
@@Javatechie yes bro , please look into it.
@hasithawickramanayaka6727
@hasithawickramanayaka6727 2 ай бұрын
what if we have multiple services such as course service inside the same spring boot project how can deploy it in to the lambda and what would be best approach ?
@tusharfasate7388
@tusharfasate7388 3 ай бұрын
Still not clear why we used aws lambda here. What other things it did here which ECS or EKS cannot do?
@ManishTiwari-or8zt
@ManishTiwari-or8zt 3 ай бұрын
Using AWS lamda you dont have to manage the server/machine like EC2, EBS, EKS. Using lamda just you need to give the jar/war files. Even scaling also will be taken care by lamda if more traffic l.
@hunterxdk
@hunterxdk 3 ай бұрын
Bro Lambda can auto scale itself horizontally if there are unprecedented traffic on your requests..... for example. Your application has threshold of 1000 request per second which is hosted on 2 core 2Ghz frequency server with 4GB RAM. Lambda can allocate better resources for the time period in which there are 1000+ requests per second in your case. Then later when the traffic is low then it can deallocate the extra resource in the server... which can save subscription charges in comparison to EC2 instance where you can't have this privilege.
@reeeeel2858
@reeeeel2858 3 ай бұрын
Is spring boot still relevant in industry with the arrival of node js support for backend development? Would it be a time waste to learn spring boot ?
@ChristoJose
@ChristoJose 3 ай бұрын
If i want to call this Api from other application,then how i can do it ?
@raghusama4273
@raghusama4273 3 ай бұрын
Please upload full length videos on SonarQube and J-Unit
@pradeepjoshi6611
@pradeepjoshi6611 2 ай бұрын
how to test & debug lambda function locally ?
@RameshDornala-b3f
@RameshDornala-b3f 3 ай бұрын
can you please do a video by adding dynamo db as database for crud operations using Springboot
@debapriyadasgupta6534
@debapriyadasgupta6534 3 ай бұрын
Sir, is it necessary to install Maven separately to package the application?
@PontesesEduardo
@PontesesEduardo 3 ай бұрын
Thank you so much! very nice explanation.
@razatech22
@razatech22 3 ай бұрын
We need a latest microservices video
@raghusama4273
@raghusama4273 3 ай бұрын
Please upload full length videos on SonarQube and J-Unit
@itsnarahari
@itsnarahari 3 ай бұрын
Bro If I open KZbin for some other videos I see your video In list I literally forgot which Video I wanted to Play....I will just start watching your video first.......😊
@Javatechie
@Javatechie 3 ай бұрын
Thank you for your word 😀. Keep learning buddy 👍
@tejastipre9787
@tejastipre9787 3 ай бұрын
What if i have two controller and both of them have multiple get or put requests? In that case this api gateway configuration will not work
@Javatechie
@Javatechie 3 ай бұрын
Yes why not because both url will.have different root url right?
Man Mocks Wife's Exercise Routine, Faces Embarrassment at Work #shorts
00:32
Fabiosa Best Lifehacks
Рет қаралды 6 МЛН
Cute
00:16
Oyuncak Avı
Рет қаралды 12 МЛН
Running With Bigger And Bigger Lunchlys
00:18
MrBeast
Рет қаралды 112 МЛН
Where to deploy those Spring Boot Personal Projects
30:53
Dan Vega
Рет қаралды 16 М.
Spring Boot APIs Gateway in 20 Minutes
22:50
The IT Wizard
Рет қаралды 11 М.
Deploy a Spring Boot Application to AWS Lambda with an API Gateway
9:49
The Dev World - by Sergio Lema
Рет қаралды 3,9 М.
Deploy your python application along with dependencies to AWS Lambda
19:14
Handle 1,000,000 Threads with Java and Spring Boot !!!
21:50
Daily Code Buffer
Рет қаралды 25 М.