Spring Tips: Spring Cloud Gateway for Spring MVC

preview_player
Показать описание
Hi, Spring fans! In this installment, we revisit Spring Cloud Gateway, this time to look at the fantastic new support for Spring MVC, made all the more amazing by Java 21's virtual threads.

#Java21 #java #SpringBoot #graalvm #springcloud #cloudcomputing #apigateway
Рекомендации по теме
Комментарии
Автор

Thanks Josh. This will help a lot of people who did not switch over to Webflux, which admittedly (by Spring team members) a complex stack.

It will be great if you could do a video with:

- https support
- stateless gateway using JWT (i.e. not using session) to support horizontal scaling on Kubernetes
- how to deal with the downstream API that uses Hateos which returns linkrels, therefore how to deal with rewrites you did to strip /api/ prefix
- streaming or request e.g. large file upload
- streaming or response e.g. large file download

SandipChitale
Автор

Great video series! I would love to see another addition dealing with how to unit- and integration-test these parties "performing the OAuth-dance", as you like to call it.

HeyHoLetsGo
Автор

Thanks for the video. Good to see how to get startwd with mvc gateway. Instead of requiring user to login via a login page, our apis is secured via access keys. Not sure if we can still use oauth2 in this situation? Like authenticate via access keys to obtain the outh token? Thanks

thetrilbies
Автор

Does a gateway still make sense if we have two instances of the backend very far apart? Let's say there are two instances of the same backend, one in the US and one in Asia (for minimal latency purposes). If the gateway is located in the US, a request coming from Asia has to go all the way to the US which then forwards it to Asia and back. Isn't just slowing things down?

epsig
Автор

Is spring cloud servlet gateway stable now?

sadiulhakim
Автор

In case of token expiration does gateway handles refresh token?

sharifyy
Автор

Hi Josh, very interesting video, but I try to replicate it and only authentication works, subsequent redirection to gateway fails with no static resources found.
I also tried your repository but I get the same result (small side note: your repository is a bit dirty due to the dependency on spring-ai and with the use of reserved port 1010).
Thank you.

EToniolo