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

Stream completes after adding flow

I have a simple stream declared like following: Source.tick(Duration.ofSeconds(1), Duration.ofSeconds(30), Files.list(rootDir).collect(Collectors.toList())) .mapConcat(files -> files) .log("scanning logs") …
Piotr Kozlowski
  • 899
  • 1
  • 13
  • 25
0
votes
1 answer

How to convert reactive Publisher to simple Stream in Scala?

Is it possible convert org.reactivestreams.Publisher instance to scala.Stream? If it is possible, how to do it?
Valeriy
  • 1,365
  • 3
  • 18
  • 45
0
votes
1 answer

reactor.netty.http.server.AccessLog producing LoggingEvent not AccessEvent

I've been trying to configure spring-boot 2.1 with webflux to store access logs in JSON. Moreover I need to have information like protocol, status code as separate JSON fields (not a part of a message). Looking at the internet I found…
0
votes
1 answer

RxJava 2 - parallelize events for execution with side effects

I would like to parallelize execution without aggregating events at the end. I'm new to RxJava and trying to evaluate it if it would fit my needs. I know how to do a normal non-parallel execution. For simplicity let's start…
Mike Minicki
  • 8,216
  • 11
  • 39
  • 43
0
votes
1 answer

Reactor 3.x: is there an operator for throttleLatest (conflate)?

In rx-java 2.x there is an operator named throttleLatest that conflates incoming events based on a given time: https://github.com/ReactiveX/RxJava/pull/5979 Is there a similar operator in Reactor 3? Or is it possible to get the same behaviour from…
0
votes
1 answer

Vert.x RxJava and Reactive Streams API

I am new to Vert.x and currently exploring it. I found that in vert.x 3 there are three ways to use 1) Using normal vertex API 2) Using RxJava based API 3) Using Reactive Streams based API I want to know whether all vertex modules are available in…
Punit Goel
  • 59
  • 1
  • 6
0
votes
1 answer

Project Reactor - subscribe on parallel scheduler doesn't work

I'm looking at examples and reading documentation and I've found some problems while trying to subscribe on Flux in a parallel manner. I have a 3 functions, as below. private val log = LoggerFactory.getLogger("main") private val sequence =…
wst
  • 4,040
  • 4
  • 41
  • 59
0
votes
2 answers

How to enable ssl in reactive mongodb client in spring boot?

I am currently running into an issue while creating a reactive mongoclient when I provide the URL with ssl=true option. I am creating configuration class in spring boot where I create Reactive mongoclient using the following…
0
votes
1 answer

Role of Message passing in reactive systems

Following is an excerpt from here: The foundation for a reactive system is message-passing, which creates a temporal boundary between components that allows them to be decoupled in time—this allows for concurrency—and space—which allows for…
Mandroid
  • 6,200
  • 12
  • 64
  • 134
0
votes
1 answer

How to update Mono based on a condition in Mono?

I have the below code from the answer given in this [stackoverflow question] bars = bars.flatMap(bar -> findByBarId(bar.getBarId()) .flatMap(foo -> { bar.setIsInFoo(true); …
ace
  • 11,526
  • 39
  • 113
  • 193
0
votes
1 answer

How to deal with two Fluxes in Spring Reactive Programing?

I have two Fluxes Flux foo; Flux bar; class Foo String id String prop1 String barId class Bar String barId String color boolean isInFoo foo and bar both have barId property. The size of foo is always equal to or less than size of bar…
ace
  • 11,526
  • 39
  • 113
  • 193
0
votes
2 answers

How do I use Source.asSubscriber to wrap reactive listener?

How do I use Source.asSubscriber to wrap reactive listener ? I fail to understand its benefit. I'm trying to create Source[T] for asynchttpclient WebSocket. Here is my code: def createWsObservable(url: String, onStartAction: Option[WebSocket ⇒…
expert
  • 29,290
  • 30
  • 110
  • 214
0
votes
1 answer

Use Reactor Core Java to send to browser the status of a long executing task, periodically

I have been working with some Reactor Core Java, because I want to figure out if this is possible to solve one problem I currently have using this framework. At present I have a long, executing job that takes about 40-50 minutes to complete. The…
0
votes
1 answer

Akka streams don't run when Source has large number of records

I'm trying to write a very simple introductory example of using Akka Streams. I'm attempting to basically create a stream that takes a range of integers as a source and filters out all the integers that are not prime, producing a stream of prime…
0
votes
1 answer

Why would publisher send new items even after cancel?

The documentation of Subscription#cancel says that Data may still be sent to meet previously signalled demand after calling cancel. In which scenario would people expect the publisher to continue to send till previous signalled demand is…
Ashok Koyi
  • 5,327
  • 8
  • 41
  • 50