Skip to main content

All Questions

-1 votes
1 answer
57 views

How to get inputStream as return value from ServerHttpRequest in spring reactive?

I am writing a Spring Reactive implementation for a third-party SPI which is based on a traditional servlet. One method requires InputStream from request as return value: /** * Returns the request ...
Michael's user avatar
  • 410
0 votes
0 answers
101 views

Scheduler worker in group main failed with an uncaught exception

Scheduler worker in group main failed with an uncaught exception reactor.core.Exceptions$ErrorCallbackNotImplemented: java.util.ConcurrentModificationException 在使用spring-cloud-...
user24392020's user avatar
0 votes
0 answers
143 views

How to propagate MDC in spring cloud gateway

I am using Spring Cloud gateway and in my logback file I am using MDC like to log username to every log line. <property name="LOG_PATTERN" value="%d [TRACE_ID: %X{traceId}] ...
Murad Zulfugarov's user avatar
0 votes
0 answers
61 views

[SpringCloudGateway-WebFlux]: How to call non-blocking WebClient API in synchronized block in reactive paradigm to ensure its invoked only once

We are migrating our API Gateway application from Netflix Zuul library to Spring Cloud Gateway framework. We are migrating one of the custom global pre-filter which deals with retrieving auth token ...
Deepak Chhetri's user avatar
0 votes
0 answers
52 views

[SpringCloudGateway-WebFlux]: Which offset to use for ordering of custom global pre and post filters

We have implemented around 10+ custom global ordered pre filter and 3 post filter. We have set base offset for pre-filter as 5 (motivated from Netflix Zuul FilterConstants.PRE_DECORATION_FILTER_ORDER) ...
Deepak Chhetri's user avatar
0 votes
1 answer
268 views

Spring Cloud Gateway app hangs when synchronous call is made using webclient after 1 minute

Spring cloud Gateway version: 4.1.0 We are developing an API gateway application using Spring Cloud Gateway framework. The application has couple of pre-filters and post-filters implemented as Global ...
Deepak Chhetri's user avatar
0 votes
2 answers
438 views

switchIfEmpty executed when the prior flatMap returns Mono.error()

I have a spring gateway filter that has analogues code: public Mono<Something> example { return redisTemplate.opsForValue() .get(cacheKey) .flatMap(this::throwMono) ...
Saikiran's user avatar
  • 161
0 votes
0 answers
338 views

Spring cloud gateway intermittent delay at proxy request and response handling with reactor netty

I am using Spring Cloud Gateway, observing intermittent delay while sending request or receiving response from the downstream applications. The notable delay occurs in about 15% of the requests (more ...
Mukesh's user avatar
  • 1
0 votes
0 answers
932 views

Propagating context with Spring WebFlux

I've a Spring Cloud Gateway service with the following security config: @Configuration @EnableWebFluxSecurity @Slf4j public class SecurityConfig { @Bean public SecurityWebFilterChain ...
Flanfl's user avatar
  • 514
0 votes
1 answer
1k views

Spring Cloud Gateway Filter with external configuration service call

I am working on a Spring Cloud Gateway app that has a filter controlling access to certain paths or features based on a configuration held by a different service. So if a path is associated with ...
andymcg7's user avatar
0 votes
1 answer
177 views

GatewayFilter reactor mechanism

I'm new to reactor and want to understand the difference between the below codes. how are the two different? (rest of code given at the end) // Version A override fun filter(exchange: ...
EnDorphin's user avatar
0 votes
1 answer
708 views

Spring Cloud Gateway chaining nested Mono

I have a web app (Spring Cloud Gateway with Project Reactor) where I have to logout (send another http request) when something goes wrong and set 401 to the main response. The problem is when I ...
Dmitry Zlykh's user avatar
2 votes
1 answer
816 views

Spring gateway: Wrapping blocking calls with Mono.fromCallable()

The scenario: In my Spring cloud gateway I need to modify the request based on some data persisted in my database. Therefore I am implementing a gateway-filter. Consider the following implementations: ...
martino's user avatar
  • 43
1 vote
0 answers
595 views

Spring Cloud API Gateway Custom Filters with external API for Authorization

I have a spring cloud gateway app with a custom filter to do Authorization in a route. The route target is a blocking api also. The Authorization filter fetches the permissions of the users from an ...
Deepak P R's user avatar
1 vote
0 answers
304 views

Updating Reactor Context in Spring Cloud Gateway

In my gateway application I have row of filters (applied in specific order). In first of them LogFilter I want to update the Reactor context with userId, so it will be available in all consequent ...
sapwood's user avatar
  • 61

15 30 50 per page