Spring Boot Serverless Architecture using AWS Lambda | Spring Cloud Function | JavaTechie

Ғылым және технология

This tutorial will guide you How to run Spring cloud function in AWS Lambda | Serverless Architecture
#javatechie #AWS #Lambda #SpringBoot
GitHub:
github.com/Java-Techie-jt/spr...
Blogs:
/ javatechie
Facebook:
/ 919464521471923
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 its not copied from any community , you are free to use source code from above mentioned GitHub account

Пікірлер: 149

  • @gaivsmagnvslvnae
    @gaivsmagnvslvnae3 жыл бұрын

    Thanks a lot! It´s a valueable knowledge to the ones (like me) that are beggining into Lambda!

  • @jasper5016
    @jasper50162 жыл бұрын

    Once again fantastic tutorial. I have never used Cloud Functions before so it might take time to wrap my head around it but this is giving me a good idea. Thanks

  • @venkatah9847
    @venkatah98474 жыл бұрын

    Thanks for this topic. I have learnt some of the concepts from your video demos. Please continue this series with more topics on AWS + Springboot. Also can you please give one example on Scaling with Lambda usage

  • @sudheerkumar-tp1mg
    @sudheerkumar-tp1mg Жыл бұрын

    Basant sir you no need to ask thanks for watching, we would like to thank you always to provide such complex technologies in simplified way. thanks a lot.

  • @Javatechie

    @Javatechie

    Жыл бұрын

    My goodness buddy 😊

  • @arghyamitra3281
    @arghyamitra32814 жыл бұрын

    Thank you sir for uploading lecture on Aws Lambda

  • @goumze
    @goumze3 жыл бұрын

    Nice explanation. Thank you for sharing such a valuable information.

  • @rajyahoob
    @rajyahoobАй бұрын

    just started watching your AWS series, concise and clear, thank you. By the way I also learnt a lot from your other topics too. keep the good work going.

  • @MEGANE34
    @MEGANE343 жыл бұрын

    you are the super teacher...

  • @maheshd3506
    @maheshd3506 Жыл бұрын

    Good explanation and more informative

  • @alvarodasilvafacneto2871
    @alvarodasilvafacneto28713 жыл бұрын

    thanks lord for share your knowledge

  • @srikanthvasadi7735
    @srikanthvasadi7735 Жыл бұрын

    Sir , thanks for your videos and support

  • @saravanprathi2770
    @saravanprathi27703 жыл бұрын

    God bless you!!

  • @manukumarkm9304
    @manukumarkm9304 Жыл бұрын

    Great video, hands on coding with demo .

  • @johncerpa3782
    @johncerpa37823 жыл бұрын

    Excellent video

  • @karankanojiya7672
    @karankanojiya767210 ай бұрын

    Excellent 🔥

  • @gem3023
    @gem30233 жыл бұрын

    Thank you for this great example from you. Would you mind if you can also create an example of a step function which invoke this function and other AWS service in sequence? Thanks again in advance!

  • @prabirghosh3839
    @prabirghosh38396 ай бұрын

    Very nice.

  • @rathormiet08
    @rathormiet084 жыл бұрын

    Hi Sir, You are doing a awesome job. If possible please add how to use VPC with subnet and internet gateway and route table .

  • @thesadanand6599
    @thesadanand6599 Жыл бұрын

    Hey Basant, once again a greate topic and very well explained, few points if you could amplify on - can you demo the client side calling or invoking of such severless function , does it need any AWS configs (IAM role etc) - what the design trade off one lambda function for all end points, or seperate for each end point ~ty

  • @kirane5911
    @kirane59116 ай бұрын

    Thank you so much for useful video

  • @Javatechie

    @Javatechie

    6 ай бұрын

    Glad it was helpful!

  • @sqlearth7045
    @sqlearth70453 жыл бұрын

    Let's suppose we need to build 5 Handlers (Employee Handler, Department Handler, etc.) then, is we have to create 5 different projects having spring cloud function and lambda functions as well? Please answer.

  • @nguyenquan4836
    @nguyenquan4836 Жыл бұрын

    Thanks 🎉🎉🎉

  • @pandipalanichamy9319
    @pandipalanichamy93192 жыл бұрын

    Ultimate

  • @KrishnaVlogs898
    @KrishnaVlogs8986 ай бұрын

    Hi @Basant/#javatechie, Here while testing the 2nd function in lambda, you replaced the first function name with 2nd function name and also the parameter required for that function. My question, is there any way to test both the functions sequentially without manually replacing function name? Please do suggest.

  • @spidygamingyt8565
    @spidygamingyt8565 Жыл бұрын

    Hi I tried with a string reversal one which is working fine... If I want to send two int as input and find out the sum facing issue like LinkedHashMap cannot cast to class entity.MyData. pls help me out to find the sum of two numbers with AWS lambda

  • @rahulgulabani2922
    @rahulgulabani29223 жыл бұрын

    Can we use filter with spring code as authorisation API gateway authorizer . I want to write code in sping boot and used lamda once token is available .and then will create Auth permission to give roles

  • @sekharsamanta6266
    @sekharsamanta62662 ай бұрын

    Thanks for such a lovely video! Just one question: in the latest version in 2024 has SpringBootRequestHandler been replaced by org.springframework.cloud.function.adapter.aws.FunctionInvoker ?

  • @rahulpant7795
    @rahulpant77952 жыл бұрын

    Please share some video content where microservices orchestration using AWS step functions. Thanks.

  • @josephbineesh6655
    @josephbineesh6655 Жыл бұрын

    12 sec for first execution is a bad response time. Ideal response time for rest api is below 2 sec.. So is this lambda function can be feasible for UI app?

  • @aminebouita7185
    @aminebouita71854 жыл бұрын

    thanks for the tutorial, I have two questions: I have created a lambda function and I have launched tests, will they charge me something? how can you invoke the lambda function from outside the aws consla, for example from postman?

  • @Javatechie

    @Javatechie

    4 жыл бұрын

    1. if you are using free tire and if you will exceed the threshold limit then you need to pay 2. We can't directly test it through postman but you an integrate API gateway and then access it from postman

  • @AdarshSingh-go5ht
    @AdarshSingh-go5ht4 жыл бұрын

    Hi Basant , in continuation to this series, please add trigger and integration with API gateway topics as well.

  • @Javatechie

    @Javatechie

    4 жыл бұрын

    Yup it's my upcoming tutorial

  • @Javatechie

    @Javatechie

    4 жыл бұрын

    Adde please check

  • @simhachalamamara
    @simhachalamamara2 жыл бұрын

    SpringBootRequestHandler is Deprecated now. which one is alternative to use?

  • @wilkom7604
    @wilkom76043 жыл бұрын

    Awesome video, thank you so much, I spent several nights looking for how to do this! Please, if want to expose these two methods on Lambda, do we have to deploy 2 different lambda, each with it's method in the Environment FUNCTION_NAME value?

  • @prashhanthnelakanti4992

    @prashhanthnelakanti4992

    3 жыл бұрын

    Even I have the same question

  • @Javatechie

    @Javatechie

    3 жыл бұрын

    Yes you need to deploy separate method by mention function name

  • @prashhanthnelakanti4992

    @prashhanthnelakanti4992

    3 жыл бұрын

    @@Javatechie is it like every time we need to upload the jar for a new function

  • @Thaiooo
    @Thaiooo3 жыл бұрын

    Hi, Thanks for this topic but could you explain how to cosume JSON request please?

  • @Satenc0
    @Satenc02 жыл бұрын

    Hey bro im trying to connect a lambda to a rds database using JPA, but im struggling so much because the Repositories are Null when I @Autowired them to my lambdahandler class, and I cant really find a tutorial that shows how to do it as simple as JDBC tutorials, I dont think that it is 100% neccesary to use annotation @SpringBootApplication, but idk, would appreciate if you have any tutorial of that or you can make it sometime it would be nice, cause every tutorial around shows JDBC, but JPA would be nice too

  • @udaysurse5438
    @udaysurse54384 жыл бұрын

    While creating spring boot micro service architecture do we need to create different project or in single project all this services we can create? I mean product catalog is one service does it mean it is created as different starter project?

  • @Javatechie

    @Javatechie

    4 жыл бұрын

    Yes each service means different project

  • @perumallayaswanth83
    @perumallayaswanth833 жыл бұрын

    Bro is it sufficient for interviews if we follow your AWS tutorial.

  • @grrlgd3835
    @grrlgd38354 күн бұрын

    JT... was does JAR size need to be reduced ? tks

  • @arijitdeb2171
    @arijitdeb21714 жыл бұрын

    That was very helpful .. just to confirm one thing .. here the RequestHandler has fixed types(String and List) since the functions are using so .. if i use another function in the same applicatio which returns a String or Number , do i have to create anothere RequestHandler specifying the new type.

  • @Javatechie

    @Javatechie

    4 жыл бұрын

    Then make your handler generic rather than specify data type we can add object as request and response

  • @mareshkrishnanv4995
    @mareshkrishnanv49952 жыл бұрын

    Iam getting class not found exception in AWS lamda once runs the test button

  • @shahulbasha93
    @shahulbasha933 жыл бұрын

    Have a doubt . Spring Cloud Functions accepts only Supplier , Function and Consumer as endpoints. These interfaces do not have any support for exception handling like throwing exceptions back to user. How would you handle it.

  • @Javatechie

    @Javatechie

    3 жыл бұрын

    Hi Shahul , nice one i didn't notice this. will update you

  • @naveenchaudhary5999
    @naveenchaudhary59994 ай бұрын

    Why we are using curl only? Can't we use postman?

  • @MattPayneOrg
    @MattPayneOrg4 жыл бұрын

    Thanks! I hope you do a follow up connecting a database (NoSQL or SQL) and authentication. Is it DynomoDB that's usually used?

  • @tejaspatel9766
    @tejaspatel9766 Жыл бұрын

    How to handle the function if I have Map or list as a input?

  • @mikecmw8492
    @mikecmw84923 жыл бұрын

    Hello techie gi

  • @SwapnilGangrade1
    @SwapnilGangrade13 жыл бұрын

    Nice tutorial. Do you know how we can integrate it with AWS Fargate for task executions?

  • @Javatechie

    @Javatechie

    3 жыл бұрын

    Hi it's already there please checkout my AWS playlist

  • @denilsonmarcos8863
    @denilsonmarcos88633 жыл бұрын

    Very usefull content!! Could you continue this video by showing how to call this function by api gateway?

  • @Javatechie

    @Javatechie

    3 жыл бұрын

    Yes already uploaded how to call function using API gateway trigger

  • @heenamanglani3558

    @heenamanglani3558

    3 жыл бұрын

    @@Javatechie Can you share a link on how to upload Spring boot 2 API's in AWS LAMBDA?

  • @Javatechie

    @Javatechie

    3 жыл бұрын

    Yes am using spring boot 2.3.x version please cross verify once

  • @denilsonmarcos8863

    @denilsonmarcos8863

    3 жыл бұрын

    @@Javatechie I really apreciate you hard working. But, where is the step by step on how to setup ApiGateway calling a lamda function?

  • @denilsonmarcos8863

    @denilsonmarcos8863

    3 жыл бұрын

    @@Javatechie Does this functions supports SpringBootApiGatewayRequestHandler? I am trying to get request parameters and restApiBody .

  • @mrkachary
    @mrkachary4 жыл бұрын

    ending up class not found exception with OrderHandler. Can you please help

  • @Javatechie

    @Javatechie

    4 жыл бұрын

    Please build jar properly and deploy the jar which end with -aws

  • @BeingDeveloperWithAB
    @BeingDeveloperWithAB8 ай бұрын

    Server is closing automatically when I am running spring cloud function local , doing simple start from IDE

  • @vinaygarg2171
    @vinaygarg21713 жыл бұрын

    Thanks a lot for content. one question How can we achieve same thing using terraform if you can make video or share script for the same

  • @Javatechie

    @Javatechie

    3 жыл бұрын

    I am not aware about this terafom but I will check and update

  • @vinaygarg2171

    @vinaygarg2171

    3 жыл бұрын

    @@Javatechie thanks..and can you share light weight jar solution as well

  • @gs-rc3eq
    @gs-rc3eq3 жыл бұрын

    Hi, thank you for the video... can we also deploy an enitre appliction with spring boot as back end and Angular as front end in the same jar file? if so can you do a small app? Thank you!!

  • @Javatechie

    @Javatechie

    3 жыл бұрын

    Okay I will do that

  • @gs-rc3eq

    @gs-rc3eq

    3 жыл бұрын

    Java Techie great, thank you!!!!

  • @V-Speaks
    @V-Speaks3 жыл бұрын

    Hi Techies, if I have a spring-boot Scheduler project how can I deploy it on lambada (Example: I have below method which runs for every 5 sec how can I run this.? @Scheduled(fixedRate = 5000) public void printDate() { System.out.println("============Current Date is============"+ dateFormat.format(new Date())); }) Any Suggestions Appreciated.

  • @Yaswanthkumarroyal1234
    @Yaswanthkumarroyal12342 жыл бұрын

    after integrating this lambda function with api i am facing this error {"message": "Internal server error"}

  • @sivabalans5297
    @sivabalans5297 Жыл бұрын

    @18.00 how to call from postman any idea?

  • @datta5188
    @datta51884 жыл бұрын

    Hi, may I know which screen recorder you are using to record videos?

  • @Javatechie

    @Javatechie

    4 жыл бұрын

    Screenpresso

  • @datta5188

    @datta5188

    4 жыл бұрын

    @@Javatechie thanks

  • @boyvlogs5067
    @boyvlogs50672 жыл бұрын

    Hi Sir amazing content and very good explanation. Sir, I am trying to run an OCR(in my case Tesseract). I am taking a png file from my S3 bucket. But I am not getting how to give that input to the OCR which in turn is running on AWS lambda. Please can you help? Is there any email which I can show you my progress? Thanks in advance.

  • @Javatechie

    @Javatechie

    2 жыл бұрын

    Please connect javatechie4u@gmail.com

  • @rajeshg3570
    @rajeshg35702 жыл бұрын

    Can we have a function to take some payload just like a POST endpoint in REST ?

  • @Javatechie

    @Javatechie

    2 жыл бұрын

    For that you need to use spring cloud function concept with Function interface (java 8)

  • @gauravsuryavanshi6517
    @gauravsuryavanshi65172 жыл бұрын

    Can we use bufferedInputStream to read file from S3 in lambda function?

  • @Javatechie

    @Javatechie

    2 жыл бұрын

    Not tried buddy

  • @AbhaySingh-ds9et
    @AbhaySingh-ds9et6 ай бұрын

    @JavaTechie Lambda internally run on EC2 or containers?

  • @Javatechie

    @Javatechie

    6 ай бұрын

    Ec2 only

  • @rexsam3134
    @rexsam31343 жыл бұрын

    Other than curl how will you test this? Why on AWS you reused that environment you used just one function name? Can't you add one more for other method?

  • @Javatechie

    @Javatechie

    3 жыл бұрын

    Please check my AWS lambda and API gateway integration video I added more method

  • @sureshmanne7245
    @sureshmanne7245 Жыл бұрын

    Can we add more (key,value)s in Configuration so that everytime I no need to change the configuration value with my java class function name ?

  • @Javatechie

    @Javatechie

    Жыл бұрын

    Yes you can

  • @sanket5376
    @sanket5376 Жыл бұрын

    Can you provide video on light weight jar deploy on lambda

  • @rajeshg3570
    @rajeshg35702 жыл бұрын

    Nice video..how can we have more than one function here ?

  • @sunilsinha6556
    @sunilsinha65563 жыл бұрын

    Sir can you help me that docker image is OS dependent or not

  • @Javatechie

    @Javatechie

    3 жыл бұрын

    No it's not

  • @darylle6731
    @darylle67312 жыл бұрын

    I am trying out the example in this video. SpringBootRequestHandler is deprecated. What should I do with OrderHandler class?

  • @darylle6731

    @darylle6731

    2 жыл бұрын

    Instead of using OrderHandler class, I used org.springframework.cloud.function.adapter.aws.FunctionInvoker class. It works.

  • @vinaygarg4157
    @vinaygarg41573 жыл бұрын

    How we can integrate swagger with lambda service? can you share any sample

  • @Javatechie

    @Javatechie

    3 жыл бұрын

    I never tried let me check

  • @nirmesh44
    @nirmesh443 жыл бұрын

    any EKS video you have?

  • @Javatechie

    @Javatechie

    3 жыл бұрын

    I didn't tried it yet .

  • @gaddam.rajeshkumar
    @gaddam.rajeshkumar7 ай бұрын

    Can we have multiple Funtion_Name in AWS lambda function for single project?

  • @Javatechie

    @Javatechie

    7 ай бұрын

    Yes you can

  • @sunilsahoo8138
    @sunilsahoo81382 жыл бұрын

    Please make a video to retrieve data from mysql database using aws lambda in java.

  • @harish-wi3ts
    @harish-wi3ts4 жыл бұрын

    Sir...if possible pls provide with document also...becz some statments and annotations are not understanding getting adouts...sir plzzz..

  • @Javatechie

    @Javatechie

    4 жыл бұрын

    This is simple application I shown please mention your doubts here

  • @mshohag4229
    @mshohag4229 Жыл бұрын

    Can you please do one tutorial with integrating with the database?

  • @Javatechie

    @Javatechie

    Жыл бұрын

    It's already there please check with RDS and dynamodb

  • @srikanthvasadi7735
    @srikanthvasadi7735 Жыл бұрын

    Can you do video on spring boot rest API application with AWS lambda (deploy). please

  • @jayakanthan.durairaj
    @jayakanthan.durairaj3 жыл бұрын

    Thanks! but when i trie to run the application it's not bringing up the embedded tomcat. Am i missing something here?

  • @Javatechie

    @Javatechie

    3 жыл бұрын

    Any error or consol log

  • @jayakanthan.durairaj

    @jayakanthan.durairaj

    3 жыл бұрын

    @@Javatechie no error just the main method runs and completes without the tomcat not loaded!

  • @Javatechie

    @Javatechie

    3 жыл бұрын

    @@jayakanthan.durairaj server not required here Please try to understand what I explained about serverless , just expose your api as function without connect with any serve (tomcat)

  • @rajank2806

    @rajank2806

    2 жыл бұрын

    @@Javatechie for me also when i tried to run the application it's not bringing up the embedded tomcat. no error just the main method runs and completes without the tomcat not loaded!. since application is not ruuning so it can't expose any api

  • @rajank2806

    @rajank2806

    2 жыл бұрын

    after adding- spring-cloud-starter-function-web, it working

  • @StarsTogether
    @StarsTogether9 ай бұрын

    If this theme resonates with you, there's a book that'll likely echo in the same way. "AWS Unleashed: Mastering Amazon Web Services for Software Engineers" by Harrison Quill

  • @mareshkrishnanv4995
    @mareshkrishnanv49952 жыл бұрын

    Db connection examples also pls upload

  • @Javatechie

    @Javatechie

    2 жыл бұрын

    It's already there please checkout my AWS playlist

  • @mareshkrishnanv4995

    @mareshkrishnanv4995

    2 жыл бұрын

    @@Javatechie pls provide the youtube link anna

  • @Javatechie

    @Javatechie

    2 жыл бұрын

    kzread.info/dash/bejne/hpaamahtYtfJcto.html

  • @manikandanmanikandan-hp9td
    @manikandanmanikandan-hp9td2 жыл бұрын

    please upload lambda jwt auth in gateway request without Cognito

  • @AppleOceanus
    @AppleOceanus9 ай бұрын

    Valuing these revelations? There's a book I'd spotlight that delves just as deep. "AWS Unleashed: Mastering Amazon Web Services for Software Engineers" by Harrison Quill

  • @maramreddygopireddy2709
    @maramreddygopireddy27094 жыл бұрын

    Hi sir How we will maintain version ing

  • @Javatechie

    @Javatechie

    4 жыл бұрын

    Which versioning you are asking ? Am not getting it

  • @pguti778
    @pguti7783 жыл бұрын

    Will this run in local?? I've downloaded from git but app is terminated and spring boot does not work. :(

  • @Javatechie

    @Javatechie

    3 жыл бұрын

    Yes we can run in local

  • @arijitchaudhury9583

    @arijitchaudhury9583

    3 жыл бұрын

    @@Javatechie I am not able to run in my local machine. What's the fix?

  • @Javatechie

    @Javatechie

    3 жыл бұрын

    What error are you getting

  • @arijitchaudhury9583

    @arijitchaudhury9583

    3 жыл бұрын

    @@Javatechie Exception in thread "main" java.lang.ClassNotFoundException: org.springframework.boot.loader.thin.ThinJarLauncher at java.net.URLClassLoader.findClass(URLClassLoader.java:381) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) at org.springframework.boot.loader.wrapper.ThinJarWrapper.launch(ThinJarWrapper.java:117) at org.springframework.boot.loader.wrapper.ThinJarWrapper.main(ThinJarWrapper.java:90)

  • @Javatechie

    @Javatechie

    3 жыл бұрын

    Don't upload thin jar . Please try to upload jar which end with suffix .AWS

  • @madhavar980
    @madhavar9804 жыл бұрын

    Great, we can test this from postman as well I have 2 queries. 1. Can we deploy 2 services and communicate each other using resttemplate or any other? 2. Can you make a spring boot crud app and do in aws lambda?

  • @Javatechie

    @Javatechie

    4 жыл бұрын

    Will do 🙂

  • @sebastianbejarano350
    @sebastianbejarano350 Жыл бұрын

    Spring context takes a very long time to load.

  • @munnieswaroop
    @munnieswaroop13 күн бұрын

    You got it completely wrong with AWS lamba and spring boot. You use AWS correto jvm with plain java or micronaut. When using lambda static or beans is not a good idea. On every request a new lambda is churned out. Use SAM template to package and deploy.

  • @seatconnect224
    @seatconnect2243 жыл бұрын

    how execute POST request using lambda?

  • @Javatechie

    @Javatechie

    3 жыл бұрын

    Use Function for post method

  • @seatconnect224

    @seatconnect224

    3 жыл бұрын

    @@Javatechie ok, thanks, but how to execute POST request during executing lambda from UI

  • @Javatechie

    @Javatechie

    3 жыл бұрын

    In lambda console you need to pass payload .

  • @seatconnect224

    @seatconnect224

    3 жыл бұрын

    @@Javatechie ok thanks

  • @seatconnect224

    @seatconnect224

    3 жыл бұрын

    also question regarding OrderHandler, why do you not using StreamLambdaHandler? github.com/awslabs/aws-serverless-java-container/wiki/Quick-start---Spring-Boot

  • @andrewsselvaraj
    @andrewsselvaraj3 жыл бұрын

    Can you please add this code git and share the url

  • @Javatechie

    @Javatechie

    3 жыл бұрын

    Git link mentioned in video description

  • @Electrizado
    @Electrizado3 жыл бұрын

    Deprecated!!!!!!

Келесі