All Questions
Tagged with spring-cloud spring-cloud-gateway
380 questions
-1
votes
0
answers
29
views
Redis Key collisions when sharing DB between two or more Spring Boot Apps (Spring Cloud Gateway)
I've multiple Spring Boot based projects deployed in a Kubernetes cluster, all of them share the same Redis DB instance also hosted in the same cluster.
Some of the Apps are built as Spring Cloud ...
0
votes
0
answers
101
views
Scaling Spring Cloud Gateway with Eureka and Multiple Services
I have a Spring Boot Cloud Gateway, an Eureka Server, and multiple microservices registered in Eureka. My goal is to ensure that my system can handle increased traffic efficiently. I have two ...
0
votes
0
answers
72
views
Automatic Context Propagation fails to work with MDC logging in reactive API Gateway
We have developed our API Gateway using Spring Cloud Gateway framework based on reactive paradigm using below libraries:
Spring Boot: 3.2.0
Spring Cloud: 2023.0.0
Spring: 6.1.1
Spring Cloud Gateway: 4....
0
votes
0
answers
55
views
spring cloud gateway reactor context propagation not working
I am building a spring cloud gateway service.
We are expecting all our clients pass trace-id header value for each incoming request. Using this trace-id we would like tag all each request specific ...
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 {
...
0
votes
0
answers
58
views
Public and private API definitions in Spring Cloud Gateway: static or database-driven?
I am using Spring Cloud Gateway and have implemented a RouteValidator class to secure my APIs. Currently, I define the public and private APIs statically in the code, like this:
public static final ...
1
vote
0
answers
52
views
Error creating bean with name 'scopedTarget.eurekaApplicationInfoManager'
Trying to run spring cloud gateway in AWS fargate and encountering below issue.
JDK 17,
Spring boot 3.1.2
Below is the log.
1734432268120,Error starting ApplicationContext. To display the condition ...
0
votes
1
answer
112
views
Spring Cloud: How to route request along with Authentication from Gateway to microservice?
I have two microservices: Gateway and HelloWorld. I use Basic Auth which occurs in the Gateway microservice. Then the request is routed to the HelloWorld microservice. But here's the problem: the ...
0
votes
1
answer
243
views
Spring cloud ratelimit with bucket 4j and Hazelcast
I am using "com.giffing.bucket4j.spring.boot.starter" to implement ratelimit using hazelcast in my spring cloud project.
The bucket4j is not getting initialized on the application startup. ...
0
votes
0
answers
108
views
Spring Cloud gateway rate-limeter with Hazelcast
Tying to implement hazelcast for ratelimit in spring cloud gateway.
This example is working fine for using new hazelcast member.
[1]: https://github.com/o-ardic/springboot-bucket4j-example
But I want ...
0
votes
1
answer
86
views
Using Predicate or Filter to choose a ClientRegistration for Login
My problem is, that I have two different Keycloak realms and depending on which route you are going to, I need to authenticate against one of those, without needing to show the default login selection ...
0
votes
0
answers
118
views
How to configure ModifyRequestBody filter in Spring Cloud Gateway using YAML?
I'm trying to configure the ModifyRequestBody filter in Spring Cloud Gateway using YAML, but I'm running into issues with the inClass and outClass parameters, leading to a ConverterNotFoundException. ...
1
vote
0
answers
70
views
Combine routes from application.properties and env variables in spring cloud gateway
I have a set of routes in application.properties and a set of routes in env variables.
The problem is only env routes are loading but not the other routes from application.properties.
How to combine ...
1
vote
0
answers
410
views
Remove X-Forwarded-Prefix header from Spring Cloud Gateway Route
Trying to remove x-Forwarded-Prefix header from one of route in spring cloud gateway but it is not working.
Tried below.
spring.cloud.gateway.routes[0].filters[0]=RemoveRequestHeader=X-Forwarded-...
1
vote
0
answers
101
views
Spring Cloud Request Rate Limiting using Hazelcast instead of Redis
I want to remove redis cache and use hazelcast. Please provide a sample.
Using this key with redis:
spring.cloud.gateway.routes[2].filters[2].name= RequestRateLimiter
Want same functionality except ...