Questions tagged [spring-reactive]

128 questions
3
votes
2 answers

Can you Flux.zip a mono and a flux and and repeat the mono value for every flux value?

Is it possible to do something like the code below? I have one service that makes an API call and another one which returns a stream of values. I need to modify every value by the value returned by the API call. return Flux.zip( …
fmtoffolo
  • 361
  • 1
  • 3
  • 13
3
votes
1 answer

cannot find javax.persistence annotations when using spring r2dbc

I am trying to use reactive repositories with H2 using Spring Boot. I have added dependencies implementation 'org.springframework.boot.experimental:spring-boot-starter-data-r2dbc:0.1.0.M1' implementation…
lapots
  • 12,553
  • 32
  • 121
  • 242
3
votes
0 answers

Getting Access Token using Spring Reactive for ClientCredentials

I am using oauth2 with springboot reactive (webclient webflux) I want to get access token for given property file: I have tried going over springboot documentation without success Documentation: 1)…
2
votes
1 answer

How to use Spring WebClient to make a subsequent call with different header setting?

I need to call an third party API which requires an authentication call beforehand to get an authentication token. The Authentication API is in json but the subsequent call is in XML. I have separately…
LunaticJape
  • 1,446
  • 4
  • 21
  • 39
2
votes
0 answers

How to test HandlerFunction without RouterFunction in WebFlux using Functional API?

I am writing a simple HTTP server with Spring WebFlux using the Functional API in Kotlin. As the documentation says, a HandlerFuction handles incoming ServerRequests by returning a Mono on invocation. Let's assume, we have the…
2
votes
1 answer

Spring Boot Couchbase Reactive isn't supporting Pagination

I'm trying to implement Pagination in my Reactive WebFlux app and my DB is Couchbase. The Spring Data Couchbase doc allows me to pass Pageable as an argument in my Repository. Flux findByFirstnameOrderByLastname(String firstname, Pageable…
2
votes
0 answers

Error with multiple, ordered annotations in Spring AOP and Reactor

I have these two annotation with their respective aspects: @Target(AnnotationTarget.FUNCTION) @Retention(AnnotationRetention.RUNTIME) annotation class BackupCache @Target(AnnotationTarget.FUNCTION) @Retention(AnnotationRetention.RUNTIME) annotation…
gotch4
  • 13,093
  • 29
  • 107
  • 170
2
votes
2 answers

Unable to connect to Redis;nested exception is io.lettuce.core.RedisConnectionException using RedisTempalte

I am getting Unable to connect to Redis;nested exception is io.lettuce.core.RedisConnectionException using RedisTempalte error when i try to connect azure redis cache from my spring reactive application. I have configured below in properties…
sree
  • 21
  • 1
  • 1
  • 2
2
votes
1 answer

Spring WebClient multiple retryWhen to handle different errors

Could I be able to add multiple retryWhen to perform retries to handle different WebClient failure responses? What I want to achieve: I am using WebClient to make REST API Calls. There are few error scenarios, when happens I need to perform retry,…
2
votes
0 answers

Spring cloud gateway - Add dynamic header with GlobalFilter before routing request to downstream system

I am trying to add the dynamic value for all the request header before passing the request to downstream. I have created a user defined class that implements org.springframework.cloud.gateway.filter.GlobalFilter In this class, I have to call other…
2
votes
0 answers

POST API using Spring WebClient over HTTP2

I am writing JUNIT for push notifications using auth tokens. Now, the Apple push API is based on HTTP2 and I want to use spring WebClient for that purpose. private static WebClient webClient = WebClient .builder() …
2
votes
1 answer

Will returning a Mono result in (evil) synchronous, blocking client/server comms?

I'm new to Spring Reactor and WebFlux and a little confused regarding the event flow within Spring functional web. Example: I have a handler function returning a Mono. Within it, a findAll() repository method is executed returning a…
2
votes
0 answers

Manually Configure Spring Boot Reactive Mongo

I'm trying to setup, a PoC of Spring Boot application with multiple databases. Which db should be used is determined by a Spring Profile. One of this DB's is MongoDb to which I am connecting using Spring Data Reactive. Because I want the application…
2
votes
0 answers

Reactive streaming approach of file upload in Spring (Boot)

We have spent a lot of hours on the inet and on stackoverflow, but none of the findings satisfied us in the way we planned a file upload in Spring context. A few words towards our architecture. We have a node.js client which uploads files into a…
Bernado
  • 548
  • 1
  • 6
  • 18
2
votes
0 answers

Spring WebClient without chunked encoding

I need to use Spring reactive WebClient without default chunked encoding mode, which is "enforced" by underlying HttpClient and Netty based stack. Unfortunately the server I need to communicate with does not support this mode, even thou it supports…
B.Gen.Jack.O.Neill
  • 8,169
  • 12
  • 51
  • 79
1
2
3
8 9