Questions tagged [reactive-streams]

a standard for asynchronous stream processing with non-blocking back pressure on the JVM

Reactive Streams is an initiative to provide a standard for asynchronous stream processing with non-blocking back pressure on the JVM.

http://www.reactive-streams.org/

358 questions
0
votes
1 answer

Webflux: OnErrorResume after repeats are exhausted is not being triggered

I am trying to execute the code after repeat exhaustion using onErrorResume but onErrorResume is not being trigger. Here is the code sample Mono.just(request) .filter(this::isConditionSatified) .map(aBoolean ->…
0
votes
1 answer

Spring Reactive Stream - Unexpected Shutdown

We are using Spring Cloud Reactive Streams with RabbitMQ. Spring Reactive Stream appears to acknowledge the message as soon as it pulls it off the queue. So any errors unhandled exceptions that happens during the message processing need to be…
0
votes
1 answer

Flux Generator - How to handle when there are no data available?

Question: How do we handle the Flux Generator when there are no more data? I am using Project Reactor's Flux API to poll the data that are put in Redis (By external service). This needs to be indefinite poll until the service goes…
0
votes
2 answers

Reactive streams publisher from Vertx webclient response body

I'm trying to write a wrapper for the Vert.x web-client to load response body from server using Publisher from reactivestreams: import org.reactivestreams.Publisher; import io.vertx.reactivex.ext.web.client.WebClient; interface Storage { …
Kirill
  • 7,580
  • 6
  • 44
  • 95
0
votes
1 answer

Junit test method calling actual service method

Controller @PostMapping("/event/confirmation") public Mono eventConfirmation(@RequestParam("eventId") String eventId, @RequestBody ExecutionSummary execSummary, @RequestHeader("customerCode") String customerCode) …
deadshot
  • 8,881
  • 4
  • 20
  • 39
0
votes
1 answer

How can I implement MongoDB Codecs for composite classes?

I'm writing a database access module for existing using MongoDB and its reactive streams Java Driver (in a Spring boot project). Some of the objects are stored in composite way in DB with only the reference ID stored and the object is then assembled…
Michal Habel
  • 47
  • 1
  • 4
0
votes
1 answer

How to modify or update POJO models at instantiating Java Spring Webflux

i'm working with the Google Maps Geocoding API for Java. I have a basic address POJO. What I want to do is run the createLatCord method on the lat property with the body response of the address, city, state and zipcode I don't know where I should…
Fernando B
  • 864
  • 2
  • 12
  • 27
0
votes
0 answers

How to extract value from spring mono, process the response and send new value method return value

I am connecting to sonar to fetch the gate result for a project, once i get the result I must extract value from within response and return (BOOLEAN) TRUE or FALSE. If the value of getQualityGateStatus() == "OK" i will return TRUE else FALSE. Would…
Sagar
  • 61
  • 9
0
votes
1 answer

How to convert a akka.stream.javadsl.Source to java.util.concurrent.Flow.Publisher

I'm experimenting with the Test Compatability Kit (tck) for reactive Streams, and having tested a few Publishers myself, I wanted to test an akka Source. But in order to do so I need to convert a Source (or Source + Processor(s)) to a…
dr jerry
  • 9,768
  • 24
  • 79
  • 122
0
votes
1 answer

Reactive Streams: How to wait for all publishers, by key?

Suppose I have 3 publishers and 1 processor. The publishers emits items in the form {key: , value: , publisher_id: }. The publishers makes IO operations, so: On the one hand, I'd like the publishers to work on (roughly) N…
IsaacLevon
  • 2,260
  • 4
  • 41
  • 83
0
votes
1 answer

Unexpected behaviour while using then with Mono

When combining many Monos using .then(Mono) they don't run in the expected order. Can somebody explain the difference between the working and nonworking code below? Working code StepVerifier.create( …
Hemant
  • 33
  • 6
0
votes
0 answers

Proper way to return data from a reactive DAO to the controller while using MongoDB reactive driver for Java

I am using MongoDB reactive driver for Java. I have a DAO where I query the DB using the find().first() function chain which return a Publisher. I have to call subscribe() (or else the query will not actually execute) on this Publisher…
0
votes
1 answer

Detecting an empty Flux Window before Webclient Post

With reference to my previous question Splitting a WebClient Post of a Streaming Flux into JSON Arrays , I was using; myFlux .window(5) .flatMap(window -> client .post() .body(window, myClass.class) .exchange() .flatMap(response ->…
lafual
  • 683
  • 1
  • 7
  • 23
0
votes
1 answer

Compare two flowable streams in Rx

I have two tables. Table A and Table B. I am using Android with Room and Reactive Streams with ktx. The Table A has two columns Title, Ids. Row 1 - ['example', '1,2,3,4']. The Table B has two columns Id, Desc. Row 1 - [1, 'long desc'] Row 2 - [2,…
Hades
  • 3,916
  • 3
  • 34
  • 74
0
votes
0 answers

reactive-streams not working in Red Hat Fuse 7.2... -Searching for features/bundles(i.e., recipe) to make it work

Was trying to experiment with Red Hat Fuse support for reactive streams. I "installed" the camel-reactive-streams feature, as in... osgi:install camel-reactive-streams Then included the corresponding dependency in my pom.xml ... …
sairn
  • 461
  • 3
  • 24
  • 58