Amazon API Gateway | Access Your Spring Boot Microservice | JavaTechie

Поділитися
Вставка
  • Опубліковано 20 сер 2020
  • This tutorial will guide you How to access spring boot microservice in AWS API Gateway
    #javatechie #AWS #Microservice #SpringBoot #APIGateway
    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
  • Наука та технологія

КОМЕНТАРІ • 113

  • @sonkarshailendra
    @sonkarshailendra 2 роки тому +2

    In short and clean , you covered whole flow. Thanks a lot.

  • @sanjeetnain9020
    @sanjeetnain9020 3 роки тому +6

    Neat clean summarized whole flow in just few mins. Great efforts

  • @VinitKhandelwal
    @VinitKhandelwal 3 роки тому +5

    You saved my day. Was looking for a solution entire day

  • @amritasingh1105
    @amritasingh1105 3 роки тому +2

    Very clear and to the point video. Appreciate your work.

  • @YogendraJ
    @YogendraJ 3 роки тому +4

    Very Good Tutorial and nicely explained. Keep making more videos!

  • @rolanddosa9950
    @rolanddosa9950 2 роки тому +2

    Great easy to follow tutorial, thanks!

  • @dipalitusharvlogs7252
    @dipalitusharvlogs7252 10 місяців тому +1

    awesome !!!! you make the things simple....

  • @vishnuMSify
    @vishnuMSify 2 роки тому +1

    Nice and quick explanation

  • @projectlifehacker8304
    @projectlifehacker8304 3 роки тому +2

    Thank you, sir, very clear explanation :)

  • @saravanprathi6956
    @saravanprathi6956 3 роки тому +1

    Thanks a lot for this video! you are the best..

  • @mohammadshahruk8017
    @mohammadshahruk8017 3 роки тому +1

    Thank u so much sir for ur contribution for us🙂

  • @kirtisingh3234
    @kirtisingh3234 3 роки тому +2

    Keep going! Your videos are always clear thanks 😊

  • @kirane5911
    @kirane5911 5 місяців тому +1

    Thank you sir for uploading useful video

  • @anandnerurkar8482
    @anandnerurkar8482 7 днів тому +1

    Thanks for this wonderful tutorial. Please take one example of existing swagger documentation. How actually happen in realtime project , do we use http proxy or import exisiting swagger when we have deployed our api to aws

  • @Varaprasad865
    @Varaprasad865 3 роки тому +1

    Excellent thank you so much..!

  • @rahulagrawal10
    @rahulagrawal10 Рік тому +2

    Very simple and easy tutorial to understand the API gateway and Beanstalk workflow with spring boot application. Thanks. If you provide some authentication, authorization and session management videos using API gateway and Spring Boot among multiple microservices on same API gateway, It will be really great and whole application level workflow will be clarified including security and session mgt.

  • @unmana1
    @unmana1 9 місяців тому +1

    Awesome explanation ❤

  • @RAJU9622
    @RAJU9622 2 роки тому +1

    Excellent video Basant

  • @user-ng4tb9jx7w
    @user-ng4tb9jx7w 4 місяці тому +1

    well explaination

  • @kumarraja9966
    @kumarraja9966 Рік тому +1

    Excellent sir 👌👌

  • @netindu
    @netindu 3 роки тому +1

    Amazing job man! 👍

  • @andrewsselvaraj
    @andrewsselvaraj Рік тому +1

    Excellent Excellent Excellent

  • @godloveelifuraha5618
    @godloveelifuraha5618 2 роки тому

    Nice tutorial

  • @DJSS855
    @DJSS855 3 роки тому +1

    Nice Content ❤️

  • @OmprakashYadavIIT
    @OmprakashYadavIIT 3 роки тому +1

    Nice video..

  • @hoddybhaba6704
    @hoddybhaba6704 Рік тому +1

    impeccable!

  • @rajeshg3570
    @rajeshg3570 2 роки тому

    simple and nice video.. can you pls add a video on how to deploy a Java micro service using API Gateway and Application Load balancer

  • @santhoshkumar8143
    @santhoshkumar8143 3 роки тому +1

    Thanks basant

  • @NurseDaveBSMSON
    @NurseDaveBSMSON 2 роки тому +1

    You rock!

  • @tgkprog
    @tgkprog 5 місяців тому +1

    hi @JavaTechie
    * would like to request for a video recorded in 2024 with ECS - deploying a docker image that has a spring API and then exposing that via API gateway. the api gateway screens have changed a bit.
    * also want to know the options with and without VPC in the ECS, rate limits, authentication by API secret key of own provider / some aws provider for our clients of gateway URLs so we can have different rate limits.
    * First need is simple connection to ECS that has service that is running docker.
    * thanks for this video, made concepts clearer

    • @Javatechie
      @Javatechie  5 місяців тому +1

      Okay I will try with latest version and update

  • @srikanthdannarapu2419
    @srikanthdannarapu2419 3 роки тому +4

    Thank you Basant for these videos,, would love to see kubernetes cluster videos aws from you

    • @Javatechie
      @Javatechie  3 роки тому +1

      EKS ? Am started learning kunernates donut may take some time 😜

    • @srikanthdannarapu2419
      @srikanthdannarapu2419 3 роки тому +3

      Thank you for your response Basant,, yes EKS please. I have taken some courses on udemy but would love to see it from you as your explaination is simple

    • @AdarshSingh-go5ht
      @AdarshSingh-go5ht 3 роки тому +2

      @@Javatechie Yes, Basant please upload as its in high demand and also if possible, your expertise on AKS and CI/CD pipelines.
      IT companies relies more on Azure than AWS and expect candidates to be well-versed with it. (that's what I have experienced).

    • @Javatechie
      @Javatechie  3 роки тому +2

      CI/CD with AWS code pipeline is my next tutorial

  • @sarathtj8264
    @sarathtj8264 3 роки тому +1

    Thank you.can you please make videos on terraform

  • @clintonsamson5076
    @clintonsamson5076 3 роки тому +1

    Your videos are very useful. Can you do it with digital ocean.

  • @DeepakPandey-ij3bz
    @DeepakPandey-ij3bz 2 роки тому

    Thanks for the api gateway tutorial. Could you please clear my doubt about the api gateway?
    1. We have spring cloud gateway as an option so when to use it instead of Amazon api gateway.
    2. Using spring cloud features like eureka, zipkin, zuul etc to deploy Microservices is different framework than using kubernetes (eks) please rectify me if I am wrong. So how we can auto scale the microservices in spring cloud.
    Thanks in advance.

  • @ankur22388
    @ankur22388 2 роки тому

    Hi, It was nice watching this video.
    One query any suggestions on if instead of using EBS , we use Fargate and API Gateway
    Will that work?

  • @agarwalr5205
    @agarwalr5205 3 роки тому

    Thank you for your video, can you also create a video explaining the use of swagger ui in creating API Gateway Endpoint.

    • @Javatechie
      @Javatechie  3 роки тому +2

      Okay swagger ui is just for documentation and quick test
      No worries I will do this content

    • @agarwalr5205
      @agarwalr5205 3 роки тому +1

      @@Javatechie Thank You, I was asking about using swagger to create AWS API Gateway the one you mentioned in the video.

    • @Javatechie
      @Javatechie  3 роки тому

      Okay got it .i.e easy one I will do .

  • @rishikesharora8681
    @rishikesharora8681 2 роки тому +1

    Nice explanation, Can you please make a video on Kong API Gateway? since it has less content on UA-cam

    • @Javatechie
      @Javatechie  2 роки тому

      Okay definitely I will explore that

  • @javaramchintha7226
    @javaramchintha7226 3 роки тому +2

    Very useful. Thanks for the good tutorial. Can you make one tutorial with CICD with AWS deployment using docker image.

  • @bhaneshwar
    @bhaneshwar 3 роки тому +3

    Please upload more videos on api gateway with without parameter and with authorization.. I hope you understand what I mean. Thanks😊sir ji.

  • @dheereshsingh6415
    @dheereshsingh6415 2 місяці тому

    HI Banant, It is extremely tremendous topic you covered effortlessly, Thanks for this 😍, I have one question / concern on AWS API gateway,
    you have configured the actual endpoint in API Gateway URL, but dont you think so, it is tightly coupled with API Gateway, any day my endpoint get change, then we have to make change in gateway as well, so what could be the best solution for make it loosely coupled.

  • @harshverm776
    @harshverm776 2 роки тому +1

    Hi,
    How can we import endpoints using swagger docs?

  • @bijeesraj007
    @bijeesraj007 3 роки тому +1

    Thank you for the quality content! In this solution a consumer can still access the "EBS endpoint" also, how can we prevent that?

  • @kalalanilkumar
    @kalalanilkumar 2 роки тому +2

    Can you please make a video to explain how to deploy the Spring Boot Rest API into LAMDA and access it from API Gateway. (API Gate Way---->LAMBDA---->SpringBoot)

    • @Javatechie
      @Javatechie  2 роки тому

      Already explained that please checkout my AWS playlist

    • @kalalanilkumar
      @kalalanilkumar 2 роки тому +1

      @@Javatechie Thankyou for the quick reply. Hope you are talking about ua-cam.com/video/btfnLVflOuc/v-deo.html video. But, I have bit confusion where you are changing the envirment variable settings everytime for each rest call to test.
      I have springboot app with almost 50 rest apis and want to deploy that jar in LAMDA. So expecting this scenario how to configure with API gateway.

  • @sonalgupta9518
    @sonalgupta9518 2 роки тому

    How should you create a java Application Rest Service which can support 10k Request per second and also have ec2 instances with load balancers with logging minute details.

  • @godloveelifuraha5618
    @godloveelifuraha5618 2 роки тому

    How you map it with DB ? I can see you post and pull data

  • @sanjeetnain9020
    @sanjeetnain9020 3 роки тому +1

    How mule API (migration from spring boot API) can be wrapped and hosted on GCP. If possible to have more videos on this.
    Also AOP and restcontroller no more supported in mule which is challenge to re write API again due to just mule gateway

    • @Javatechie
      @Javatechie  3 роки тому +1

      Hi Sanjeet , I don't have GCP account Active now so I will check with others if someone have active account then will try

  • @bhaneshwar
    @bhaneshwar 3 роки тому +2

    Yeah please add videos on swagger also. Thanks😊

  • @lavanyamatta8069
    @lavanyamatta8069 Рік тому

    How to specify path variables and query parameters for put and delete methods

  • @s_k12
    @s_k12 2 роки тому

    Thank you! Seems like API Gateway is not adding value as you can directly go to the Elastic beanstalk.

  • @kmiiloberrio-dev
    @kmiiloberrio-dev 11 місяців тому

    How to add authentication and authorization with jwt in aws api gateway? Thanks

  • @nithu301
    @nithu301 3 роки тому

    One question I have if any one can resolve.. though AWS provides a api gate way..what is the purpose of spring cloud api gateway zuul?

  • @vishu4135
    @vishu4135 Рік тому

    how to deploy the API if we have a path variable (GetByName)

  • @sameerforyou01
    @sameerforyou01 3 роки тому +1

    i want to call AWS API gateway from Java App. how to do that?

  • @pradeepb355
    @pradeepb355 2 роки тому

    How to map uri path variable to resources uri

  • @dave0811
    @dave0811 2 роки тому

    Can we access this API from AWS Amplify?

  • @puneetsaneja3007
    @puneetsaneja3007 2 роки тому +1

    If there are 100 endpoints, we do need to setup 100 Resource like u mentioned in 10.23 mnts.
    Dont we give some pattern kind of thing.

    • @Javatechie
      @Javatechie  2 роки тому +1

      No buddy we no need to do it manually there is way you can directly upload a open api yml file which will create structure for you

  • @pavanageetha4213
    @pavanageetha4213 Рік тому

    Sir please also guide us through swagger file import . We have swagger file for every microservice with host details . I want to know that when I give build in Jenkins how the ApI gateway is reflected in AWS. How the communication will happen. Please tell us this info sir.

  • @rahimkhan-fh9dd
    @rahimkhan-fh9dd 2 роки тому +1

    You explained very well,
    Suppose I want to add more than one GET API inside book service, how we can achieve that?
    I noticed once you select GET API then GET API option not visible in drop down menu as you already created one GET API.

    • @Javatechie
      @Javatechie  2 роки тому

      You can define different url

  • @sandip9021
    @sandip9021 3 роки тому +1

    After creating api gateway URL , can we block Elastic Bean Stalk url to use directly ?

    • @Javatechie
      @Javatechie  3 роки тому

      Am not sure about this .will let you know

  • @ziedmarouani6257
    @ziedmarouani6257 3 роки тому

    Very useful thanks ! but since we activated the proxy integration in the api gateway , shouldnt that affect the received request on the spring app ? meaning spring will receive the parameters of the request inside the request[body] , but we didnt fetch that in the spring app

    • @tgkprog
      @tgkprog 5 місяців тому

      proxy means it wont change the request, it acts like a front for other services, so its a catch all but it will forward the request to different listeners (integrations/ apps) per config. At impl level it means there will be one more network hop but no change the request. some proxies might add a header. but no other change to request. Read up on web server reverse proxy concept

    • @tgkprog
      @tgkprog 5 місяців тому

      A reverse proxy is a server, app, or cloud service that sits in front of one or more web servers. It intercepts and inspects incoming client requests before forwarding them to the web server. It then returns the server's response to the client.
      Reverse proxies are typically implemented to help increase security, performance, and reliability. They provide an additional level of abstraction and control to ensure the smooth flow of network traffic between clients and servers.
      A reverse proxy acts as an intermediary “hall monitor” for web traffic. Instead of pointing your DNS directly to your web host, you would point it to your proxy service, which would then direct your website's visitors to your web host.
      Reverse proxies include the basic functions of load balancing and web performance optimization. They also include more advanced traffic management services such as application layer security, web acceleration, page routing, and secure remote access.
      Some of the biggest websites on the Internet use dedicated reverse proxy servers such as the open source software HAProxy and Squid

  • @shaileshsingh5664
    @shaileshsingh5664 3 роки тому +1

    In swagger do we just need to have documentation only???

    • @Javatechie
      @Javatechie  3 роки тому +1

      I will upload that today

  • @sanketh768
    @sanketh768 2 роки тому

    What's the benefit of using API gateway? We can directly hit the link

  • @rajivperera1624
    @rajivperera1624 3 роки тому +1

    Hi Basanth, Consider I have two microservices where one service call the other to perform the callers business function. Since they are 2 separate services they are in 2 different jar files. So now how do I upload such kind of project to elastic bean stalk?

    • @Javatechie
      @Javatechie  3 роки тому

      You need to upload 2 separate jar and in consumer give ebs URL while accessing other

    • @rajivperera1624
      @rajivperera1624 3 роки тому +1

      @@Javatechie so that means I have to create 2 separate ebs environments?

    • @Javatechie
      @Javatechie  3 роки тому

      Yes

    • @rajivperera1624
      @rajivperera1624 3 роки тому +1

      @@Javatechie thank you very much for your quick response.

  • @javasystems5850
    @javasystems5850 3 роки тому +1

    for both Get and Post URL is same. Why ?

    • @Javatechie
      @Javatechie  3 роки тому

      Yes it's same but https method is different . This is what the coding standards

  • @sambhavsharma9661
    @sambhavsharma9661 3 роки тому +1

    Nice video. But i would like to know that how to access the spring boot application which is running on private network(EC2 ( Private VPC with docker) by using API gateway with Rest API(Get and PUT request) with same example given in this video. Please tell me and create one video for it. Hope you understand my scenario. its urgent, i have seen your video but did not get this information.

    • @Javatechie
      @Javatechie  3 роки тому

      Same way we can do because the which we upload to beanstalk is internally create an EC2 instance .

    • @sambhavsharma9661
      @sambhavsharma9661 3 роки тому +1

      Suppose ec2 insance with private network, then api gateway will automatically communicate with ec2 or any nat instance need to be created for that communication

    • @Javatechie
      @Javatechie  3 роки тому

      Not sure about this . Need to check

    • @sambhavsharma9661
      @sambhavsharma9661 3 роки тому

      Kindly make video for the same if possible

    • @sambhavsharma9661
      @sambhavsharma9661 3 роки тому

      Please let me know if possible,

  • @user-ve3tz4so8u
    @user-ve3tz4so8u 8 місяців тому +1

    what DB is used here... inmemory..?

  • @vipinjunankar1507
    @vipinjunankar1507 3 роки тому +1

    can you please show one example in that "How to call an AWS java lambda function from another AWS Java Lambda function "

  • @satyavathi6349
    @satyavathi6349 3 роки тому +1

    Sir can you make another video like this by using lambda instead of using HTTP

    • @Javatechie
      @Javatechie  3 роки тому

      Instead of http what you want ?

    • @satyavathi6349
      @satyavathi6349 3 роки тому +1

      @@Javatechie I mean lambda sir

    • @Javatechie
      @Javatechie  3 роки тому

      Yes it is there please check once

  • @sagarsaud156
    @sagarsaud156 3 роки тому +1

    I am unable MAP Native Query to POJO Class in SPRING JPA? Any idea sir?

    • @Javatechie
      @Javatechie  3 роки тому

      Hi sagar first of all I would request you to ask your question specific to relevant post .
      Can you share your query and pojo structure

    • @sagarsaud156
      @sagarsaud156 3 роки тому

      @@Javatechie
      My Query is
      @Query(value="SELECT f.firm_id, f.firm_name, f.firm_registration_number, f.proprietor_name, f.firm_address, f.proprietor_contact, f.bank_name, f.tt_dap_number, f.tt_date, f.tt_dap_amount, f.application_date,f.invoice_no, f.invoice_date, f.bl_no, f.bl_date, f.shipped_on_date, f.revenue_status, f.verification_level, f.sender_name, f.request_date_nepali, f.request_send_by, f.assistant_verification,f.assistant_verification_date, f.officer_verification, f.officer_verification_date, f.director_verification, f.director_verification_date, c.currency_type, co.custom_office_name, pm.payment_type, sp.sea_port_name, f.firm_document, f.revenue_amount, f.revenue_voucher FROM firm f, sea_port sp, currency c, custom_office co, payment_method pm WHERE f.payment_method_id=pm.payment_method_id AND f.sea_port_id=sp.sea_port_id AND f.custom_office_id=co.custom_office_id AND f.currency_id=c.currency_id AND f.firm_id=?1", nativeQuery = true)
      public FirmHelper getFirmDetailsById(int firmId);
      --- POJO CLASS
      public class FirmHelper {
      private int firm_id;
      private String firm_name;
      .
      .
      .
      .
      Till all selected attribute of the query
      #getter setter method
      }

  • @dave0811
    @dave0811 2 роки тому

    Can we expose the api with https?

  • @sall2877
    @sall2877 2 роки тому

    Thanks it was nicely explained but probably not that helpful since you explained the most trivial use case. Word of advice to anyone wanted to use spring boot and an actual realistic tech stack there is WAY, WAY more involved then what is shown here this video will not help at all for any real case. You can figure this stuff out by just clicking around through trial and error in about an hour. I would recommend actually explaining the stuff involved that is not trivial.