Building an API Gateway in Java with Spring Cloud Gateway

  Рет қаралды 58,583

Dan Vega

Dan Vega

Күн бұрын

Пікірлер: 58
@AntonioCabralNumberOne
@AntonioCabralNumberOne 10 ай бұрын
Beware! At the time of my post (February 2024) when you pick the "gateway" dependency, the artifact that comes with it is the "spring-cloud-starter-gateway-mvc" which will not work if you follow Dan's tutorial. If things start to fail and you don't know why, that's because of it. The correct artifact is the spring-cloud-starter-gateway and comes when you pick in the Spring Initializr the "Reactive Gateway". I have no idea why the change.
@coma.n
@coma.n 10 ай бұрын
OMG! thanks!
@twinklegarg1413
@twinklegarg1413 7 ай бұрын
will this is tutorial enough to do load balancing also ? as i am not able to balance load among multiple instances of same application by this.
@buhaha_bharathSurya
@buhaha_bharathSurya 5 ай бұрын
thanks
@tomiiglesias5109
@tomiiglesias5109 2 ай бұрын
tysm!
@rickw7738
@rickw7738 2 ай бұрын
Thanks, spend many hours trying to figure out what I did wrong in my project..
@vidzhere5027
@vidzhere5027 11 ай бұрын
Dan , I must tell you, the way you teach & guide , you are pure joy to those , who learn from your videos. Thank you for all the good work you are doing, to name one, you are making world more equal :)
@DanVega
@DanVega 11 ай бұрын
I have to tell you I was having a little bit of a tough day over here and you just changed it. Thank you for the kind words and for making my day!
@ilkou
@ilkou Жыл бұрын
I love the idea of showing how to browse documentations, Spring docs are actually simple and on point. one suggestion is to label (split) the video sections so people can skip parts that are familiar with maybe 🤔 Love your content 👌
@cesarvalencia6191
@cesarvalencia6191 Жыл бұрын
great video as always. Can you do a video on how to authenticate jwt using api gateway.
@kaly7dev4873
@kaly7dev4873 Жыл бұрын
Wonderful video. Thanks Dan for sharing!
@WaldoRochow
@WaldoRochow Жыл бұрын
Thanks for the introduction Dan. It seems like a good application of this would be an API wrapper where one might add value to the response of the 3rd party API.
@kajalkukreja694
@kajalkukreja694 10 ай бұрын
Awesome explanation..very helpful 👍
@kuyedoluwamu1812
@kuyedoluwamu1812 Ай бұрын
You are a blessing !!!
@karthikravisankar5608
@karthikravisankar5608 Жыл бұрын
Thanks for the detailed info, could you please do a video on spring cloud function
@helmigandi
@helmigandi Жыл бұрын
Thank you for the tutorial. I learn something new in every your videos. I am curious about how to add security. If clients want to access posts, albums, photos, and todos, they must get valid accessToken first.😅
@lakshmanankanthi7158
@lakshmanankanthi7158 10 ай бұрын
Hi Dan, Thank you for the great tutorial. Could you please share the excalidraw drawing? Thanks
@SeungwonLeee-h2d
@SeungwonLeee-h2d Жыл бұрын
Very helpful! May I ask which theme you’re using for IntelliJ? Looks so elegant
@victorcousin8059
@victorcousin8059 Жыл бұрын
Thanks for the cloud .
@muhammadawais7212
@muhammadawais7212 Ай бұрын
Hi! I have a question. You didn't run the microservices on the gateway to test. why? Secondly, I want to ask can we use gateway without a service registry?
@idouxda
@idouxda Жыл бұрын
Can you secure the Gateway with OAuth2 client credentials grant flow using Keycloak?
@at5.53
@at5.53 11 ай бұрын
Hi Dan, thanks. Can you share your excalidraw diagrams?
@rafaelvaccaro3900
@rafaelvaccaro3900 Ай бұрын
I need to ask, where did u get this shirt, nike and spring, AMAZING!!!
@julianzapata1295
@julianzapata1295 Жыл бұрын
Hi there! Dou you have a guide to implement Authenticantion and Authorization through JWT to access Microservices, using Spring API Gateway?. Thanks a lot for the video.
@otvertka7070
@otvertka7070 10 ай бұрын
Thank you!!!!❤❤❤❤
@jeffreyanderson6593
@jeffreyanderson6593 5 ай бұрын
Great video, could you please share the excalidraw diagram you created? I was not able to find it under resources or on excalidraw. Thanks!
@bachphamvan9398
@bachphamvan9398 8 ай бұрын
Thanks for sharing! btw which IDE are you using
@santhoshbhatti
@santhoshbhatti 10 ай бұрын
Hey Dan, I don't see any documentation on stomp security with Oauth2/ oidc for stomp applications behind a spring cloud api gateway. I am specifically speaking about token relay with stomp messages.
@abhijit-sarkar
@abhijit-sarkar Жыл бұрын
Can we configure common route properties such as prefixPath and addResponseHeader in one place instead of duplicating it for each route (19:25)?
@hesik3461
@hesik3461 Жыл бұрын
I would say that in this particular situation, it's redundant due to little common logic and little amount of routes. But obviously, you could and should extract common logic in cases, where amount of routes is considerably large or even dynamic Avoiding duplication is not always a necessary thing, especially when it's so insignificant
@tanyasamyal2347
@tanyasamyal2347 6 ай бұрын
Hey, Like you added response header but before forwarding the request can we add a username header?
@sachin.tandon
@sachin.tandon 3 ай бұрын
Hi, I have a Spring BFF, that has a Circuit Breaker. But I've also put the Spring BFF in an AWS Auto-scaling Group. How can I get the circuit breakers in each bff instance to share a common state, e.g. in Redis, so that the state across each one is not inconsistent?
@manuonda
@manuonda Жыл бұрын
Thank Dan for the video ! . I have a question about security. In spring spring gateway can be incorporated ?
@AlmustaphaTukurUmar
@AlmustaphaTukurUmar Жыл бұрын
thanks for sharing the video is super helpful, but it seams like the client APIs can be accessed directly without using gateway can you adda some security authentication and authorization using spring security and jwt thanks.
@sg71093
@sg71093 8 ай бұрын
How to configure routes to use https in uri ? Can you provide code fragment ?
@OnePointLander
@OnePointLander Жыл бұрын
Would SCG be used in the situation where you want to make multiple api calls and return a composite response?
@dmytroshmidt5981
@dmytroshmidt5981 11 ай бұрын
Thank you
@shahabetminan
@shahabetminan Жыл бұрын
Thanks a lot!
@ronrpan
@ronrpan Жыл бұрын
In AWS EKS, how this Spring cloud gateway pattern works?
@Harikumar-r7g
@Harikumar-r7g 10 ай бұрын
How can we add multiple uri's paths in spring cloud gateway in application.properties instead of yaml file. could you please replyme on this....
@Nothing_Else_Matters
@Nothing_Else_Matters Жыл бұрын
Greate video thanks.. is it possible to deploy a spring-cloud into a tomcat web server?
@DanVega
@DanVega Жыл бұрын
Absolutely. This is just another Spring Boot Application so the normal rules for deployment apply here.
@Nothing_Else_Matters
@Nothing_Else_Matters Жыл бұрын
@@DanVega I took your example from git, but i couldn't manage to activate to route directives. If i extend from SpringBootServeltInitializer i got an exception in tomcat and with using web.xml i had the same issue.
@rajkumarsjc
@rajkumarsjc 8 ай бұрын
I am loading my routes from database... How do I reload the routes dynamically..
@akvus
@akvus 5 ай бұрын
Great video. Please use some normal font. These hand-written like fonts are hard to read.
@mayanksharma1491
@mayanksharma1491 10 ай бұрын
Can you do video on okta verification using spring boot
@Saravanan-lj9so
@Saravanan-lj9so Жыл бұрын
Hi ,Dan, I have requirement to call Rest API from API gateway then modification response and call another REST API , then send response back to client. Is it possible ?
@bercilinjose6896
@bercilinjose6896 3 ай бұрын
What's the backup plan if the api gateway goes down??
@abdallahalabed6850
@abdallahalabed6850 Жыл бұрын
Hello dan , does this work on springboot 3.1.4 ? I do the same configuration but i get 404 error
@NahueAlberti
@NahueAlberti 11 ай бұрын
Can someone help me? I'm using spring-cloud-starter-gateway-mvc then i have problems with multiple paths in predicates. how can i this resolve?
@AntonioCabralNumberOne
@AntonioCabralNumberOne 10 ай бұрын
remove the-mvc part and it'll work. Don't forget to reload Maven. Somehow in "spring initializr" the spring-cloud-starter-gateway comes when you pick the "Reactive Gateway" instead of just "Gateway". The thing I hate most about Spring is that things change all the time and tutorials with a couple of months get obsolete real quick. :(
@navjotsingh2457
@navjotsingh2457 2 ай бұрын
Cool
@r-rtz
@r-rtz 10 ай бұрын
why not nginx ?
@shahinrajaei1666
@shahinrajaei1666 8 ай бұрын
it was not really good what you say is not deep tutorials like what i learn in javabrain
Microservices using SpringBoot 3.0 | Full Example [NEW]
1:25:38
Daily Code Buffer
Рет қаралды 207 М.
Quilt Challenge, No Skills, Just Luck#Funnyfamily #Partygames #Funny
00:32
Family Games Media
Рет қаралды 55 МЛН
She made herself an ear of corn from his marmalade candies🌽🌽🌽
00:38
Valja & Maxim Family
Рет қаралды 18 МЛН
小丑教训坏蛋 #小丑 #天使 #shorts
00:49
好人小丑
Рет қаралды 54 МЛН
Spring Security 6.4: RestClient Support for OAuth2
25:28
Dan Vega
Рет қаралды 7 М.
Spring Tips: The Spring Authorization Server
22:21
SpringDeveloper
Рет қаралды 20 М.
Spring Boot APIs Gateway in 20 Minutes
22:50
The IT Wizard
Рет қаралды 15 М.
How To Build an API Gateway for Microservices with YARP
12:42
Milan Jovanović
Рет қаралды 25 М.
What is API gateway really all about? Java Brains - Brain Bytes
8:56
API GATEWAY and Microservices Architecture | How API Gateway act as a Single Entry Point?
23:18
Concept && Coding - by Shrayansh
Рет қаралды 50 М.
What is an API Gateway?
10:19
IBM Technology
Рет қаралды 330 М.
Microservices API Gateway Tutorial | Spring Cloud | Java Spring Boot
29:18
Think Constructive
Рет қаралды 12 М.
Spring Boot Testing - ** Batteries Included 🔋🔋
41:12
Dan Vega
Рет қаралды 26 М.
Quilt Challenge, No Skills, Just Luck#Funnyfamily #Partygames #Funny
00:32
Family Games Media
Рет қаралды 55 МЛН