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 - Наука та технологія
In short and clean , you covered whole flow. Thanks a lot.
Neat clean summarized whole flow in just few mins. Great efforts
You saved my day. Was looking for a solution entire day
Very clear and to the point video. Appreciate your work.
Very Good Tutorial and nicely explained. Keep making more videos!
Great easy to follow tutorial, thanks!
awesome !!!! you make the things simple....
Nice and quick explanation
Thank you, sir, very clear explanation :)
Thanks a lot for this video! you are the best..
Thank u so much sir for ur contribution for us🙂
Keep going! Your videos are always clear thanks 😊
Thanks kirti
Thank you sir for uploading useful video
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
Excellent thank you so much..!
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.
Awesome explanation ❤
Excellent video Basant
well explaination
Excellent sir 👌👌
Amazing job man! 👍
Excellent Excellent Excellent
Nice tutorial
Nice Content ❤️
Nice video..
impeccable!
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
Thanks basant
You rock!
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
Okay I will try with latest version and update
Thank you Basant for these videos,, would love to see kubernetes cluster videos aws from you
EKS ? Am started learning kunernates donut may take some time 😜
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
@@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).
CI/CD with AWS code pipeline is my next tutorial
Thank you.can you please make videos on terraform
Your videos are very useful. Can you do it with digital ocean.
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.
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?
Thank you for your video, can you also create a video explaining the use of swagger ui in creating API Gateway Endpoint.
Okay swagger ui is just for documentation and quick test
No worries I will do this content
@@Javatechie Thank You, I was asking about using swagger to create AWS API Gateway the one you mentioned in the video.
Okay got it .i.e easy one I will do .
Nice explanation, Can you please make a video on Kong API Gateway? since it has less content on UA-cam
Okay definitely I will explore that
Very useful. Thanks for the good tutorial. Can you make one tutorial with CICD with AWS deployment using docker image.
Yes I will do that
Please upload more videos on api gateway with without parameter and with authorization.. I hope you understand what I mean. Thanks😊sir ji.
Yup will do
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.
Hi,
How can we import endpoints using swagger docs?
Thank you for the quality content! In this solution a consumer can still access the "EBS endpoint" also, how can we prevent that?
You have to setup VPC on AWS
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)
Already explained that please checkout my AWS playlist
@@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.
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.
How you map it with DB ? I can see you post and pull data
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
Hi Sanjeet , I don't have GCP account Active now so I will check with others if someone have active account then will try
Yeah please add videos on swagger also. Thanks😊
Okay I will add
How to specify path variables and query parameters for put and delete methods
Thank you! Seems like API Gateway is not adding value as you can directly go to the Elastic beanstalk.
How to add authentication and authorization with jwt in aws api gateway? Thanks
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?
how to deploy the API if we have a path variable (GetByName)
i want to call AWS API gateway from Java App. how to do that?
How to map uri path variable to resources uri
Can we access this API from AWS Amplify?
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.
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
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.
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.
You can define different url
After creating api gateway URL , can we block Elastic Bean Stalk url to use directly ?
Am not sure about this .will let you know
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
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
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
In swagger do we just need to have documentation only???
I will upload that today
What's the benefit of using API gateway? We can directly hit the link
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?
You need to upload 2 separate jar and in consumer give ebs URL while accessing other
@@Javatechie so that means I have to create 2 separate ebs environments?
Yes
@@Javatechie thank you very much for your quick response.
for both Get and Post URL is same. Why ?
Yes it's same but https method is different . This is what the coding standards
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.
Same way we can do because the which we upload to beanstalk is internally create an EC2 instance .
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
Not sure about this . Need to check
Kindly make video for the same if possible
Please let me know if possible,
what DB is used here... inmemory..?
RDS
can you please show one example in that "How to call an AWS java lambda function from another AWS Java Lambda function "
I didn't tried that let me check
@@Javatechie Ok.....
Sir can you make another video like this by using lambda instead of using HTTP
Instead of http what you want ?
@@Javatechie I mean lambda sir
Yes it is there please check once
I am unable MAP Native Query to POJO Class in SPRING JPA? Any idea sir?
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
@@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
}
Can we expose the api with https?
Yes we can
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.