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

Поделиться
HTML-код
  • Опубликовано: 23 июл 2020
  • 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

  • @sudheerkumar-tp1mg
    @sudheerkumar-tp1mg Год назад +3

    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.

  • @gaivsmagnvslvnae
    @gaivsmagnvslvnae 3 года назад +3

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

  • @jasper5016
    @jasper5016 2 года назад +2

    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
    @venkatah9847 4 года назад +10

    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

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

    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.

  • @arghyamitra3281
    @arghyamitra3281 4 года назад +1

    Thank you sir for uploading lecture on Aws Lambda

  • @goumze
    @goumze 3 года назад +1

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

  • @alvarodasilvafacneto2871
    @alvarodasilvafacneto2871 3 года назад +1

    thanks lord for share your knowledge

  • @maheshd3506
    @maheshd3506 Год назад +1

    Good explanation and more informative

  • @MEGANE34
    @MEGANE34 3 года назад +2

    you are the super teacher...

  • @srikanthvasadi7735
    @srikanthvasadi7735 Год назад +1

    Sir , thanks for your videos and support

  • @saravanprathi2770
    @saravanprathi2770 3 года назад +1

    God bless you!!

  • @manukumarkm9304
    @manukumarkm9304 Год назад +1

    Great video, hands on coding with demo .

  • @johncerpa3782
    @johncerpa3782 3 года назад +1

    Excellent video

  • @gem3023
    @gem3023 3 года назад +1

    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!

  • @rathormiet08
    @rathormiet08 4 года назад +1

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

  • @prabirghosh3839
    @prabirghosh3839 6 месяцев назад +1

    Very nice.

  • @kirane5911
    @kirane5911 6 месяцев назад +1

    Thank you so much for useful video

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

      Glad it was helpful!

  • @karankanojiya7672
    @karankanojiya7672 10 месяцев назад +1

    Excellent 🔥

  • @thesadanand6599
    @thesadanand6599 Год назад +1

    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

  • @nguyenquan4836
    @nguyenquan4836 Год назад

    Thanks 🎉🎉🎉

  • @pandipalanichamy9319
    @pandipalanichamy9319 2 года назад +1

    Ultimate

  • @AdarshSingh-go5ht
    @AdarshSingh-go5ht 4 года назад +1

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

    • @Javatechie
      @Javatechie  4 года назад +2

      Yup it's my upcoming tutorial

    • @Javatechie
      @Javatechie  4 года назад

      Adde please check

  • @rahulpant7795
    @rahulpant7795 2 года назад +1

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

  • @sqlearth7045
    @sqlearth7045 3 года назад +1

    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.

  • @wilkom7604
    @wilkom7604 3 года назад +3

    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 года назад +1

      Even I have the same question

    • @Javatechie
      @Javatechie  3 года назад +1

      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
    @Thaiooo 3 года назад

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

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

    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 ?

  • @rahulgulabani2922
    @rahulgulabani2922 3 года назад

    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

  • @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

  • @arijitdeb2171
    @arijitdeb2171 4 года назад +1

    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 года назад +1

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

  • @aminebouita7185
    @aminebouita7185 4 года назад +1

    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

      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

  • @josephbineesh6655
    @josephbineesh6655 Год назад +1

    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?

  • @MattPayneOrg
    @MattPayneOrg 4 года назад

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

  • @denilsonmarcos8863
    @denilsonmarcos8863 3 года назад +1

    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 года назад +1

      @@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 года назад +1

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

  • @simhachalamamara
    @simhachalamamara 2 года назад

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

  • @perumallayaswanth83
    @perumallayaswanth83 3 года назад +1

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

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

    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.

  • @Satenc0
    @Satenc0 2 года назад

    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

  • @shahulbasha93
    @shahulbasha93 3 года назад +1

    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

  • @AppleOceanus
    @AppleOceanus 9 месяцев назад

    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

  • @mikecmw8492
    @mikecmw8492 3 года назад +1

    Hello techie gi

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

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

  • @SwapnilGangrade1
    @SwapnilGangrade1 3 года назад +1

    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

  • @sanket5376
    @sanket5376 Год назад +1

    Can you provide video on light weight jar deploy on lambda

  • @grrlgd3835
    @grrlgd3835 День назад

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

  • @mareshkrishnanv4995
    @mareshkrishnanv4995 2 года назад

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

  • @udaysurse5438
    @udaysurse5438 4 года назад +1

    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

  • @tejaspatel9766
    @tejaspatel9766 Год назад

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

  • @mrkachary
    @mrkachary 4 года назад +2

    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

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

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

  • @rajeshg3570
    @rajeshg3570 2 года назад

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

  • @Yaswanthkumarroyal1234
    @Yaswanthkumarroyal1234 2 года назад

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

  • @vinaygarg2171
    @vinaygarg2171 3 года назад +1

    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 года назад +1

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

  • @sureshmanne7245
    @sureshmanne7245 Год назад +1

    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 ?

  • @rajeshg3570
    @rajeshg3570 2 года назад +1

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

    • @Javatechie
      @Javatechie  2 года назад +1

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

  • @V-Speaks
    @V-Speaks 3 года назад

    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.

  • @gs-rc3eq
    @gs-rc3eq 3 года назад

    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 года назад +1

      Okay I will do that

    • @gs-rc3eq
      @gs-rc3eq 3 года назад +1

      Java Techie great, thank you!!!!

  • @StarsTogether
    @StarsTogether 9 месяцев назад

    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

  • @sunilsahoo8138
    @sunilsahoo8138 2 года назад

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

  • @boyvlogs5067
    @boyvlogs5067 2 года назад +1

    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

  • @gauravsuryavanshi6517
    @gauravsuryavanshi6517 2 года назад +1

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

  • @rexsam3134
    @rexsam3134 3 года назад +1

    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

  • @mshohag4229
    @mshohag4229 Год назад +1

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

    • @Javatechie
      @Javatechie  Год назад

      It's already there please check with RDS and dynamodb

  • @mareshkrishnanv4995
    @mareshkrishnanv4995 2 года назад +1

    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 года назад

      ruclips.net/video/Tbf7F42tcBw/видео.html

  • @darylle6731
    @darylle6731 2 года назад

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

    • @darylle6731
      @darylle6731 2 года назад +1

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

  • @sivabalans5297
    @sivabalans5297 Год назад

    @18.00 how to call from postman any idea?

  • @srikanthvasadi7735
    @srikanthvasadi7735 Год назад

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

  • @harish-wi3ts
    @harish-wi3ts 4 года назад +1

    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

  • @AbhaySingh-ds9et
    @AbhaySingh-ds9et 6 месяцев назад +1

    @JavaTechie Lambda internally run on EC2 or containers?

  • @gaddam.rajeshkumar
    @gaddam.rajeshkumar 7 месяцев назад +1

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

  • @sunilsinha6556
    @sunilsinha6556 3 года назад +1

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

  • @vinaygarg4157
    @vinaygarg4157 3 года назад +1

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

    • @Javatechie
      @Javatechie  3 года назад +1

      I never tried let me check

  • @datta5188
    @datta5188 4 года назад +1

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

  • @nirmesh44
    @nirmesh44 3 года назад +1

    any EKS video you have?

  • @madhavar980
    @madhavar980 4 года назад +2

    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?

  • @manikandanmanikandan-hp9td
    @manikandanmanikandan-hp9td 2 года назад

    please upload lambda jwt auth in gateway request without Cognito

  • @jayakanthan.durairaj
    @jayakanthan.durairaj 3 года назад +1

    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 года назад +2

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

  • @maramreddygopireddy2709
    @maramreddygopireddy2709 4 года назад +1

    Hi sir
    How we will maintain version ing

    • @Javatechie
      @Javatechie  4 года назад

      Which versioning you are asking ? Am not getting it

  • @sebastianbejarano350
    @sebastianbejarano350 Год назад +1

    Spring context takes a very long time to load.

  • @seatconnect224
    @seatconnect224 3 года назад +2

    how execute POST request using lambda?

    • @Javatechie
      @Javatechie  3 года назад

      Use Function for post method

    • @seatconnect224
      @seatconnect224 3 года назад +1

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

    • @Javatechie
      @Javatechie  3 года назад +1

      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

  • @munnieswaroop
    @munnieswaroop 10 дней назад +1

    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.

  • @andrewsselvaraj
    @andrewsselvaraj 3 года назад +1

    Can you please add this code git and share the url

    • @Javatechie
      @Javatechie  3 года назад

      Git link mentioned in video description

  • @pguti778
    @pguti778 3 года назад +1

    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 года назад +1

      @@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 года назад +1

      @@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

  • @Electrizado
    @Electrizado 3 года назад

    Deprecated!!!!!!