Building an API Gateway in Java with Spring Cloud Gateway

  Рет қаралды 40,198

Dan Vega

Dan Vega

8 ай бұрын

In this tutorial you will learn about API Gateways by building one using Spring Cloud Gateway. We will discuss what API Gateways are used for, when you might want to reach for one and how to implement one using Spring Cloud Gateway
🔗Resources & Links mentioned in this video:
GitHub Repo: github.com/danson-placeholder...
Spring Recipes: • Spring Recipes
👋🏻Connect with me:
Website: www.danvega.dev
Twitter: / therealdanvega
Github: github.com/danvega
LinkedIn: / danvega
Newsletter: www.danvega.dev/newsletter
SUBSCRIBE TO MY CHANNEL: bit.ly/2re4GH0 ❤️

Пікірлер: 45
@kaly7dev4873
@kaly7dev4873 8 ай бұрын
Wonderful video. Thanks Dan for sharing!
@cesarvalencia6191
@cesarvalencia6191 8 ай бұрын
great video as always. Can you do a video on how to authenticate jwt using api gateway.
@ilkou
@ilkou 8 ай бұрын
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 👌
@WaldoRochow
@WaldoRochow 7 ай бұрын
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.
@vidzhere5027
@vidzhere5027 4 ай бұрын
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 4 ай бұрын
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!
@kajalkukreja694
@kajalkukreja694 3 ай бұрын
Awesome explanation..very helpful 👍
@AntonioCabralNumberOne
@AntonioCabralNumberOne 3 ай бұрын
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.
@coman8900
@coman8900 3 ай бұрын
OMG! thanks!
@twinklegarg1413
@twinklegarg1413 Күн бұрын
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.
@user-kd5dj4jk5l
@user-kd5dj4jk5l 7 ай бұрын
Very helpful! May I ask which theme you’re using for IntelliJ? Looks so elegant
@karthikravisankar5608
@karthikravisankar5608 5 ай бұрын
Thanks for the detailed info, could you please do a video on spring cloud function
@victorcousin8059
@victorcousin8059 8 ай бұрын
Thanks for the cloud .
@otvertka7070
@otvertka7070 3 ай бұрын
Thank you!!!!❤❤❤❤
@shahabetminan
@shahabetminan 8 ай бұрын
Thanks a lot!
@helmisugandi6534
@helmisugandi6534 7 ай бұрын
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 2 ай бұрын
Hi Dan, Thank you for the great tutorial. Could you please share the excalidraw drawing? Thanks
@manuonda
@manuonda 8 ай бұрын
Thank Dan for the video ! . I have a question about security. In spring spring gateway can be incorporated ?
@dmytroshmidt5981
@dmytroshmidt5981 3 ай бұрын
Thank you
@bachphamvan9398
@bachphamvan9398 25 күн бұрын
Thanks for sharing! btw which IDE are you using
@idouxda
@idouxda 8 ай бұрын
Can you secure the Gateway with OAuth2 client credentials grant flow using Keycloak?
@julianzapata1295
@julianzapata1295 7 ай бұрын
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.
@OnePointLander
@OnePointLander 7 ай бұрын
Would SCG be used in the situation where you want to make multiple api calls and return a composite response?
@at5.53
@at5.53 3 ай бұрын
Hi Dan, thanks. Can you share your excalidraw diagrams?
@AlmustaphaTukurUmar
@AlmustaphaTukurUmar 5 ай бұрын
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.
@santhoshbhatti
@santhoshbhatti 2 ай бұрын
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.
@abdallahalabed6850
@abdallahalabed6850 7 ай бұрын
Hello dan , does this work on springboot 3.1.4 ? I do the same configuration but i get 404 error
@ronrpan
@ronrpan 7 ай бұрын
In AWS EKS, how this Spring cloud gateway pattern works?
@Saravanan-lj9so
@Saravanan-lj9so 7 ай бұрын
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 ?
@abhijit-sarkar
@abhijit-sarkar 8 ай бұрын
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 6 ай бұрын
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
@sakshigoyal105
@sakshigoyal105 23 күн бұрын
How to configure routes to use https in uri ? Can you provide code fragment ?
@user-mk9lw6bv8j
@user-mk9lw6bv8j 2 ай бұрын
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....
@rajkumarsjc
@rajkumarsjc Ай бұрын
I am loading my routes from database... How do I reload the routes dynamically..
@Nothing_Else_Matters
@Nothing_Else_Matters 5 ай бұрын
Greate video thanks.. is it possible to deploy a spring-cloud into a tomcat web server?
@DanVega
@DanVega 5 ай бұрын
Absolutely. This is just another Spring Boot Application so the normal rules for deployment apply here.
@Nothing_Else_Matters
@Nothing_Else_Matters 5 ай бұрын
@@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.
@mayanksharma1491
@mayanksharma1491 3 ай бұрын
Can you do video on okta verification using spring boot
@NahueAlberti
@NahueAlberti 3 ай бұрын
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 3 ай бұрын
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. :(
@r-rtz
@r-rtz 3 ай бұрын
why not nginx ?
@shahinrajaei1666
@shahinrajaei1666 25 күн бұрын
it was not really good what you say is not deep tutorials like what i learn in javabrain
@peoplethesedaysberetarded
@peoplethesedaysberetarded 2 ай бұрын
No circuit breaker.
Microservices using SpringBoot 3.0 | Full Example [NEW]
1:25:38
Daily Code Buffer
Рет қаралды 162 М.
Deploying a backend on Vercel (APIs and Functions)
4:14
Vercel
Рет қаралды 46 М.
狼来了的故事你们听过吗?#天使 #小丑 #超人不会飞
00:42
超人不会飞
Рет қаралды 62 МЛН
когда достали одноклассники!
00:49
БРУНО
Рет қаралды 3,8 МЛН
КАК СПРЯТАТЬ КОНФЕТЫ
00:59
123 GO! Shorts Russian
Рет қаралды 3,1 МЛН
Spring Boot APIs Gateway in 20 Minutes
22:50
The IT Wizard
Рет қаралды 7 М.
What is an API Gateway?
10:19
IBM Technology
Рет қаралды 286 М.
What is API gateway really all about? Java Brains - Brain Bytes
8:56
Test Driven Development (TDD) in Spring
51:09
Dan Vega
Рет қаралды 20 М.
What is API Gateway?
3:26
ByteByteGo
Рет қаралды 254 М.
iphone fold ? #spongebob #spongebobsquarepants
0:15
Si pamer 😏
Рет қаралды 583 М.
The power button can never be pressed!!
0:57
Maker Y
Рет қаралды 55 МЛН