Building an API Gateway in Java with Spring Cloud Gateway

Поделиться
HTML-код
  • Опубликовано: 26 ноя 2024

Комментарии • 58

  • @AntonioCabralNumberOne
    @AntonioCabralNumberOne 9 месяцев назад +11

    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 8 месяцев назад

      OMG! thanks!

    • @twinklegarg1413
      @twinklegarg1413 5 месяцев назад

      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 3 месяца назад

      thanks

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

      tysm!

    • @rickw7738
      @rickw7738 22 дня назад

      Thanks, spend many hours trying to figure out what I did wrong in my project..

  • @vidzhere5027
    @vidzhere5027 9 месяцев назад +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  9 месяцев назад

      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!

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

      @@DanVega 🤣

  • @ilkou
    @ilkou Год назад +6

    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 Год назад +15

    great video as always. Can you do a video on how to authenticate jwt using api gateway.

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

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

    Wonderful video. Thanks Dan for sharing!

  • @kuyedoluwamu1812
    @kuyedoluwamu1812 11 дней назад

    You are a blessing !!!

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

    You nailed it Dan!

  • @SeungwonLeee-h2d
    @SeungwonLeee-h2d Год назад +2

    Very helpful! May I ask which theme you’re using for IntelliJ? Looks so elegant

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

    Awesome explanation..very helpful 👍

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

    Thanks for the cloud
    .

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

    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.😅

  • @idouxda
    @idouxda Год назад +2

    Can you secure the Gateway with OAuth2 client credentials grant flow using Keycloak?

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

    Great video, could you please share the excalidraw diagram you created? I was not able to find it under resources or on excalidraw. Thanks!

  • @at5.53
    @at5.53 9 месяцев назад +1

    Hi Dan, thanks. Can you share your excalidraw diagrams?

  • @karthikravisankar5608
    @karthikravisankar5608 11 месяцев назад

    Thanks for the detailed info, could you please do a video on spring cloud function

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

    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.

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

    Hi Dan,
    Thank you for the great tutorial. Could you please share the excalidraw drawing?
    Thanks

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

    Thanks for sharing! btw which IDE are you using

  • @sachin.tandon
    @sachin.tandon Месяц назад

    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?

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

    Hey, Like you added response header but before forwarding the request can we add a username header?

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

    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.

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

    Thank Dan for the video ! . I have a question about security. In spring spring gateway can be incorporated ?

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

    Thank you!!!!❤❤❤❤

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

    Would SCG be used in the situation where you want to make multiple api calls and return a composite response?

  • @AlmustaphaTukurUmar
    @AlmustaphaTukurUmar 11 месяцев назад

    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.

  • @bercilinjose6896
    @bercilinjose6896 2 месяца назад

    What's the backup plan if the api gateway goes down??

  • @Nothing_Else_Matters
    @Nothing_Else_Matters 11 месяцев назад +1

    Greate video thanks.. is it possible to deploy a spring-cloud into a tomcat web server?

    • @DanVega
      @DanVega  11 месяцев назад

      Absolutely. This is just another Spring Boot Application so the normal rules for deployment apply here.

    • @Nothing_Else_Matters
      @Nothing_Else_Matters 11 месяцев назад

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

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

    In AWS EKS, how this Spring cloud gateway pattern works?

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

    How to configure routes to use https in uri ? Can you provide code fragment ?

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

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

    Thank you

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

    Thanks a lot!

  • @Harikumar-r7g
    @Harikumar-r7g 8 месяцев назад

    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 6 месяцев назад

    I am loading my routes from database...
    How do I reload the routes dynamically..

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

    Hello dan , does this work on springboot 3.1.4 ? I do the same configuration but i get 404 error

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

  • @akvus
    @akvus 3 месяца назад

    Great video. Please use some normal font. These hand-written like fonts are hard to read.

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

    Can you do video on okta verification using spring boot

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

    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 9 месяцев назад +1

      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 Месяц назад

    Cool

  • @r-rtz
    @r-rtz 9 месяцев назад

    why not nginx ?

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

    it was not really good what you say is not deep tutorials like what i learn in javabrain