Questions tagged [spring-reactive]

128 questions
0
votes
1 answer

Spring reactive security - Type javax.servlet.Filter not present

Trying to implement reactive spring security. Pom dependencies, org.springframework.boot spring-boot-starter-security
user1578872
  • 7,808
  • 29
  • 108
  • 206
0
votes
0 answers

How Spring Cloud Stream reactive processing works?

How to achieve reactive message processing in Spring Cloud Stream? I read about Spring Cloud Function and that I should use them for reactive processing so I created sample one: @Bean public Consumer>> loanProcess() { return…
0
votes
1 answer

async support missing in reactive redis connection

I am learning to use spring webflux and as part of it i developed an application which uses Redis to save and retrieve data. But the problem i face is when the request tries to connect to redis i get following error : { "timestamp":…
0
votes
2 answers

Can pass reference variable pointing to Lambda in Java

I as trying out some Spring reactive code and following is relevant piece of code Supplier> longStreamSupplier = () -> LongStream.iterate(0, nextLong -> nextLong + 1).boxed(); Flux fooIds =…
Shailesh Vaishampayan
  • 1,766
  • 5
  • 24
  • 52
0
votes
1 answer

Unable to load value from Redis alone even if value is present

I am using Reactive Redis where I am trying to use Redis as cache for database. I am checking if value is present in the cache or not? If it is present then return it otherwise query database if result comes back; store the result cache it and…
0
votes
2 answers

How to stop expensive calculation in Spring Flux

I'm using Spring reactive as a server to make an expensive generation and return the results in Flux one by one. This has the advantage of stopping the generation if the request is cancelled (in cas the constraints and are too tight for example). My…
user1928596
  • 1,503
  • 16
  • 21
0
votes
0 answers

Spring Reactive : Service method call is not able to return response

Trying to rewrite a working reactive function by including a small validation in between. Unfortunately, the program is not able to complete the request even though the computation is completed in the backend. Also, It will be great if someone can…
0
votes
1 answer

Combine two Mono's together where the second mono is subscribed to the first one

I have recently been learning reactive programming using the reactor libraries in Java with the Spring framework and for the most part I have been able to get to grips with it. However, I've found myself in the same situation a couple of times and…
0
votes
1 answer

Spring Boot Webclient metrics missing in prometheus endpoint

Http client metrics in Prometheus endpoint is missing while creating the WebClient Manually. Below code is able to generate the expected http client metrics as shown below, @Autowired WebClient.Builder webClientBuilder; @GetMapping("client") public…
Aravindhan
  • 3,566
  • 7
  • 26
  • 42
0
votes
1 answer

Convert Spring Cloud Stream to use reactive cloud function

Currently I have Spring Boot application which is something like this. @Component @EnableBinding(Source::class) class EmailMessageProducer(private val source: Source) { suspend fun send(textMessage: TextMessage) { …
0
votes
1 answer

r2dbc-postgresql 0.8.0.RC1 in Spring Boot 2.2 not working properly

After i changed the version of my spring webflux (spring boot 2.2.0.m3 to 2.2.2.RELEASE ) and r2dbc (spring-data-r2dbc 1.0.0.M2 to 1.0.0.RELEASE) and r2dbc-postgresql (1.0.0.M7 to 0.8.0.M8) project i keep getting this…
0
votes
1 answer

How to await when all Monos from List are finished(doesn't matter succesfully or not)

I have such code: List monoList = foo(); //await when all Monos are finished try { Flux.fromIterable(monoList) .flatMap(Function.identity()) .then() .block(); } catch (Exception e) { …
gstackoverflow
  • 36,709
  • 117
  • 359
  • 710
0
votes
1 answer

Cannot Write Data to ElasticSearch with AbstractReactiveElasticsearchConfiguration

I am trying out to write data to my local Elasticsearch Docker Container (7.4.2), for simplicity I used the AbstractReactiveElasticsearchConfiguration given from Spring also Overriding the entityMapper function. The I constructed my repository…
Maevy
  • 261
  • 4
  • 24
0
votes
0 answers

Why webClient doesn't do any http call?

I have following code: List> monoList = queue.stream() .map(jobStatusBunch -> webClient .post() .uri("localhost:8080/api/some/url") …
gstackoverflow
  • 36,709
  • 117
  • 359
  • 710
0
votes
1 answer

How to await when all Disposable elements will be finished?

Lets consider following code: List> monoList= apiCall(); List disposableList = monoList.stream() .map(m-> m.subscribe(str-> { log.info("Mono is finished with "+ str); …
gstackoverflow
  • 36,709
  • 117
  • 359
  • 710
1 2 3
8
9