Questions tagged [webflux]
101 questions
0
votes
1 answer
Multiple asynchronous calls using result of first call using spring webflux
I need to make an asynchronous call and use some values present in it to make multiple calls to same service. Combine the response on these calls with the first one and return.
For example When I make the first call I get below JSON, which has a…

Gagan
- 85
- 1
- 11
0
votes
1 answer
In Spring WebFlux, How to chaining methods from multiple services/repo, in order to 'delete' elements in multiples DB-Collections'?
1) Contextualization about the problem:
I am trying 'delete' items in 03 different DB-Collections(Reactive MongoDB), using 03 different services/repo (userService + postService + userRepo);
My Goal is DELETE an object (in each collection)…

GtdDev
- 748
- 6
- 14
0
votes
1 answer
Log response time when success & when error - Webflux (doOnSuccess gets called even with error)
I have written this filter to measure the response time for APIs. onSuccess gets triggered when I get the error.
Is there any way to log on success and on error respectively for better logging.
public class RequestTimingFilter implements WebFilter…

Garima Natany
- 53
- 1
- 4
0
votes
0 answers
How to chaining responses from different services, in order to create a Flux Response using 'those responses' in WebFlux?
Contextualization about the problem:
I am trying to chain data from multiple services, in order to aggregate/merge their responses;
My Goal is create a final Flux with a List of objects created from the 'Merged Responses'.
The merging is based on…

GtdDev
- 748
- 6
- 14
0
votes
1 answer
ServerHttpSecurity bean not found
I have a Security config class that has a SecurityWebFilterChain bean in it. This bean requires a ServerHttpSecuirty instance but spring says that it cannot find any beans of that type though there is one created in the external library…

Gregory Curtis
- 61
- 1
- 7
0
votes
1 answer
How to check Webclient reposebody?
i developed external API by WebClient but i don't know how to check the response body..
public class Call {
public Mono

javaOne
- 1
- 3
0
votes
1 answer
calling blocking feign client from reactive spring service
I am trying to call generated feign client from reactive spring flux like this:
.doOnNext(user1 -> {
ResponseEntity response = recorderClient.createUserProfile(new UserProfileDto().principal(user1.getLogin()));
…

Konstantin Pribluda
- 12,329
- 1
- 30
- 35
-1
votes
1 answer
How to make new mono with DTO from mono and flux in spring reactive webflux
Here I try to make call from database and combine into new mono from different mono and flux.
public Mono fetchMovieAndKomen(Integer movieId){
Mono movie =…

Adam Abdullah
- 51
- 10
-1
votes
1 answer
enabling CrossOrigin access with spring webflux application
I recently switched my app over from webmvc to webflux, and tried to configure this
@Configuration
@EnableWebFlux
public class WebConfig implements WebFluxConfigurer {
@Override
public void addCorsMappings(CorsRegistry registry) {
…

Tobiq
- 2,489
- 19
- 38
-1
votes
1 answer
How to return null if the Mono is empty
I am calling an external service to get externalId, in case of that service doesn't work, all what i need is just populate the value with null
return externalClient.getExternalId() //returns Mono or Mono.empty()
.map(id…

Melad Basilius
- 3,847
- 10
- 44
- 81
-1
votes
1 answer
Inject middleware in Spring Webflux
I am trying to handle all cross cutting concerns e.g exception, authorization etc. in a project/repo and inject in more than one separate and independent spring-webflux project i.e handling cross-cutting concerns by building a reusable microservice…
user15855834