Skip to main content

Questions tagged [spring-cloud-gateway]

Spring Cloud Gateway is an API Gateway library on top of the Spring reactive ecosystem. Use this tag when encountering issues with Spring Cloud Gateway components.

spring-cloud-gateway
111 votes
1 answer
53k views

How is Spring Cloud Gateway different from Zuul?

I have been using Zuul as the edge service and API Gateway. Recently I have noticed that Spring Cloud Platform release Spring Cloud Gateway. What is the difference between the two gateways? Why is the ...
zeagord's user avatar
  • 2,317
29 votes
4 answers
68k views

Spring Cloud Gateway - Proxy/Forward the entire sub part of URL

I am using Spring Cloud Gateway 2.0.0.M6 testing a simple gateway. I just want a URL to be forwarded to another URL with ** regex Example 1: /integration/sbl/foo/bar => localhost:4178/a-integration/...
Shervin Asgari's user avatar
24 votes
4 answers
44k views

SpringCloudGateway - Log incoming request url and corresponding route URI

I am new to spring cloud gateway, what I want is to log incoming request to corresponding route url, For e.g. if I have following route config: - id: route1 uri: http://localhost:8585/ ...
JavaCodeNet's user avatar
  • 1,155
23 votes
4 answers
39k views

Spring Cloud Gateway; Spring MVC found on classpath, which is incompatible with Spring Cloud Gateway Issue

I got this below error when run the API-GATEWAY, I tried so many ways but I couldn't solve this issue. Description: Spring MVC found on classpath, which is incompatible with Spring Cloud Gateway. ...
Manoj Piyumal's user avatar
20 votes
4 answers
13k views

Gateway timeout with Spring cloud gateway and Nginx as reverse proxy

I created an API gateway for my application and it will act as a front controller for other microservices. In my production setup I use Nginx as a reverse proxy for my gateway The API gateway is ...
Nitin's user avatar
  • 2,829
18 votes
10 answers
33k views

Spring Boot API Gateway Unable to resolve name

Api calls via gateway throws java.net.UnknownHostException even though I am able to hit the application directly with the given hostname Spring Boot version : 2.4.2 Spring-cloud.version: 2020.0.1 Java ...
Anonymous's user avatar
  • 335
18 votes
4 answers
25k views

Spring Cloud Gateway inject header

In the GatewayFilter, I am trying to inject a header into the request like below. @Override public Mono<Void> filter(ServerWebExchange exchange, GatewayFilterChain chain) { //DO ...
thaneesh shanand's user avatar
15 votes
2 answers
21k views

How good is Krakend compared to Kong?

I am stuck in choosing One API gateway from the three API gateways mentioned below: KrakenD (https://www.krakend.io/) Kong (https://konghq.com/kong/) Spring Cloud Gateway (https://cloud.spring.io/...
Nitish Jain's user avatar
15 votes
1 answer
5k views

Should Kubernetes Ingress lives together with a Spring Cloud Gateway?

Small architecture and design question please. Question: Should Kubernetes Ingress lives together with Spring Cloud Gateway? If not, which one should be preferred? First, with a Spring Webflux / ...
PatPanda's user avatar
  • 4,510
14 votes
1 answer
2k views

Working example of Spring Cloud Gateway with Redis session management?

Can you please point out any written or video tutorial of working example of spring-cloud-starter-gateway? Using spring-session-data-redis, Spring Boot 2 and possibly related libraries e.g. spring ...
bkk's user avatar
  • 427
11 votes
3 answers
15k views

Spring Cloud Gateway or Zuul2, Which one is the right replacement for Zuul1?

Since Spring Cloud team has abandoned development of Zuul module, we are moving to Spring Cloud Gateway or Zuul2 but I believe Zuul2 needs a lot of changes in the architecture and needs big changes in ...
Kyle's user avatar
  • 340
11 votes
5 answers
17k views

Get request body string from ServerHttpRequest / Flux<DataBuffer>

I am using spring boot version - 2.0.6.RELEASE and spring cloud version - Finchley.SR2 and i have created my custom gateway filter to modify the request body. but while converting the request body ...
bhavishya singh's user avatar
11 votes
3 answers
10k views

How to set up Spring Cloud Gateway application so it can use the Service Discovery of Spring Cloud Kubernetes?

I created two Spring Boot applications which both will be deployed in a Kubernetes cluster. One of those apps will act as a gateway and therefore uses Spring Cloud Gateway as a dependency. Also I want ...
user avatar
10 votes
1 answer
9k views

Forbid Unauthenticated requests in Spring Cloud Gateway

I have implemented custom pre filter in spring cloud gateway which allows authenticated requests to go through the downstream process. What I want is if the request is unauthenticated then return with ...
JavaCodeNet's user avatar
  • 1,155
10 votes
5 answers
22k views

Spring Cloud Gateway doesn't work with DiscoveryClientRouteDefinitionLocator

I was working with Spring cloud gateway when i use routes statique like this (It works fine) : @Bean RouteLocator routeLocator(RouteLocatorBuilder builder) { return builder.routes() ....
Ayoub Jebji's user avatar

15 30 50 per page
1
2 3 4 5
86