Skip to main content

All Questions

Filter by
Sorted by
Tagged with
0 votes
0 answers
33 views

Is there a Kotlin DSL for Spring Cloud Gateway Server MVC?

On this link i found this Kotlin DSL for Spring Cloud Reactive Gateway: @Configuration class GatewayConfiguration { @Bean fun gateway(rlb: RouteLocatorBuilder) = rlb .routes { ...
bollo's user avatar
  • 1
0 votes
0 answers
359 views

How to strip predicate path prefix from all the configured route configurations?

Our team is migrating the API Gateway application from Netflix Zuul 1.x framework to Spring Cloud Gateway (SCG) 4.0 framework. There are more than 30 routes configured in the SCG application in the ...
Deepak Chhetri's user avatar
2 votes
3 answers
1k views

Spring Cloud Gateway MVC exception handling

I'm writing a API Gateway app built using Spring Cloud Gateway MVC. I'm using a custom CircuitBreaker filter that can timeout when backend requests take too long. I'm seeing that when the request ...
user3197674's user avatar
2 votes
0 answers
410 views

[SpringCloudGateway]: Read response body (READ-only) in global post filter in spring cloud gateway webflux

Spring Cloud Gateway: 4.1.0 I am looking for a basic requirement of extracting response body (READ-only operation - no modification) in one of the global post filters which gets executed after ...
Deepak Chhetri's user avatar
1 vote
1 answer
980 views

Spring Cloud Gateway MVC: unpredictable order of operation of custom filters

I am using Java21, Spring Boot 3.2 and spring-cloud-starter-gateway-mvc:4.1.1; I am trying to port the gateway (webflux) to gateway-mvc and in the gateway I need to call the authorization service, ...
Niyaz Khannanov's user avatar
1 vote
1 answer
133 views

[SpringCloudGateway]: Post filters are not executed after endpoint redirection timeout

We have implemented couple of custom Ordered Global Pre and Post filters in spring cloud gateway application. These pre global filters are getting executed for any incoming requests before redirecting ...
Deepak Chhetri's user avatar
1 vote
0 answers
329 views

[Spring Cloud Gateway]: RewritePath GatewayFilter not working for local forward route

Spring cloud Gateway version: 4.1.0 I have configured a route as follows which has downstream endpoint to a local REST API implemented in the gateway application itself as RestController: spring: ...
Deepak Chhetri's user avatar
1 vote
1 answer
1k views

Spring Cloud Gateway Server MVC add header from authentication for all requests

I found a solution for spring reactive cloud gateway, but how to do it in spring cloud gateway server mvc without webflux? Spring cloud gateway add header from authentication Spring Cloud Gateway ...
Niyaz Khannanov's user avatar
1 vote
1 answer
3k views

Exclude a path in spring cloud gateway

I have been writing an spring cloud gateway service to act as a proxy for other microservices. the application.yml file is something like this: spring: security: oauth2: client: ...
Mohammad's user avatar
1 vote
0 answers
451 views

Problem in setting path in yml for Spring Cloud Gateway using regex

The below configuration works as expected - id: test-service uri: http://localhost:8080/ predicates: - Path=/ap1/test/**,/api2/test/**,/api3/test/** I am trying to use the OR condition(as shown below) ...
manish's user avatar
  • 31
115 votes
1 answer
55k 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,375