6,697 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
2
votes
1
answer
58
views
How to interrupt Flux after 3 errors
Purpose:
get headers ext org.springframework.http.HttpHeaders using org.springframework.web.reactive.function.client.WebClient from generated endpoints list without knowing their exact number.
limit ...
0
votes
1
answer
87
views
incompatible types: inference variable V has incompatible bounds (SSE / Jackson)
With the deprecation of MappingJacksonValue in spring boot 4/Jackson 3, I'm trying to figure out how to serialize my objects based on a JsonView.
I have the following SSE endpoint :
@GetMapping(...
Best practices
0
votes
1
replies
59
views
Force discard of the HTTP response body in Spring Webflux to avoid out of memory
I have a reactive spring webflux rest api which exposes a REST endpoint.
The business logic of the rest endpoint is straightforward. Based on some ID, I am going to call another third-party service I ...
2
votes
0
answers
105
views
Why should I return a Publisher instead of throwing an exception in Spring WebFlux?
In Spring WebFlux, when working with reactive streams , why is it recommended to return a Publisher (like Mono.error()) instead of throwing an exception directly within a stream?
I saw this question ...
0
votes
0
answers
75
views
Execute blocking task after webflux rest service response is delivered
I want to implement a Rest Service which will return response immediately and continue processing blocking tasks only after response is delivered.
The objectives are
Run blocking & long running ...
2
votes
1
answer
98
views
spring webflux does not catch exception
I’m trying to catch a thrown exception in a Spring WebFlux controller. When i[0] reaches 3, it enters the handler method and executes the handler, but the returned value is not shown in the output, ...
Advice
0
votes
1
replies
47
views
Why doesn't R2DBC support features like lazy loading, cascading operations, or dirty checking, which are available in JPA?
I'm working with Spring Data R2DBC in a reactive application and noticed that it doesn't support features like lazy loading, cascading operations, or dirty checking, which are commonly found in JPA ...
0
votes
2
answers
58
views
Why doesn't Spring Data R2DBC support Jpa features? [closed]
I'm working with Spring Data R2DBC and am curious about why it doesn't support features like lazy loading, cascading operations, or dirty checking, which are commonly used in JPA.
Could someone ...
1
vote
2
answers
109
views
spring-cloud-gateway-webflux multiple Path predicates return 404
I’m having trouble with Spring Cloud Gateway (WebFlux) when I define multiple Path predicates for a single route.
Here is an example of my configuration in application.yml:
spring:
cloud:
...
0
votes
1
answer
65
views
Spring WebFlux: updating SSL certificate
My application uses the Spring Cloud Gateway so the stack is Spring + WebFlux. When the application starts it use the SSL certificate from the file. But after few weeks the external system is updating ...
0
votes
0
answers
13
views
Reactive Streams stop almost immediately when an ALB is in the mix
I have a spring boot flux endpoint (it takes and returns a flux). If there is no ALB in between, the client requests breeze through with no problems. Streams are closed gracefully on both ends no ...
Advice
2
votes
1
replies
125
views
What's the purpose of spring.http.codecs.max-in-memory-size?
I'm confused with the very existence of the property:
spring.http.codecs.max-in-memory-size=
Limit on the number of bytes that can be buffered whenever the input stream needs to be aggregated. This ...
0
votes
0
answers
34
views
Spring Webflux Dynamic path control in the filter layer
in my Spring WebFlux project, I cache endpoints with specific annotations at application startup time using the following DTO.
data class ExplorerResult<T>(
override val supportedPaths: Set&...
1
vote
1
answer
90
views
Downloading a large file in spring MVC through Web client
I'm trying to download a large file with with Spring web client without loading an entire file to the memory. I have such service method:
@Override
public StreamingResponseBody download() {
Flux&...
2
votes
1
answer
86
views
How to find the root cause / exception stacktrace of signal type CANCEL
In doFinally have printed the signal type to finally verify that it was a cancellation (CANCEL). However, this is not captured as part of doOnError as technically cancellation is not part of error.
...