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
3
votes
1 answer

reactive-kafka with default dispatcher?

I'm working in a project with Kafka and Akka Streams using reactive-kafka connector. We have found that reactive-kafka use it's own dispatcher (akka.kafka.default-dispatcher) but if, instance of that, we use the default akka dispatcher, all is…
3
votes
1 answer

cyclops-react: No batching functions on ReactiveSeq?

Using cyclops-react 1.0.0-RC3, I tried to recreate the examples on the cyclops-react streams user guide with batching. I found that some methods were missing from ReactiveSeq, including batchBySize and windowByTime. I did find these methods on…
James Burton
  • 132
  • 9
3
votes
2 answers

After Reactive Streams Specification 1.0 released, will jdbc specification go reactive as well?

I was learning and using reactive streams programming with akka streams, I was trying to find any libraries for an async-jdbc-driver or reactive-jdbc-driver for 2 years, and I found slick 3.0 or rxjava-jdbc-driver provide async jdbc api, but I know…
3
votes
1 answer

Akka-http: Http.cachedHostConnectionPoolHttps stops processing after sometime for non 2XX responses

I am trying to use cachedHostConnectionPoolHttps to make outbound https requests, but it seems that after some time for Non 2XX responses, the pool flow stops emitting out element's thus causing the entire flow to stop. The time of occurrence of…
kingster
  • 47
  • 1
  • 7
3
votes
1 answer

Is it possible to join elements of an Akka Streams Source?

If I have a source like his : val source = Source(List("hell", "o\n my ", "name is bob")) Is it possible to join and re-split elements on a specific separator pattern, for example on the '\n' character to have something like this as a result? :…
Loic
  • 3,310
  • 4
  • 25
  • 43
3
votes
1 answer

On demand execution of hot Observable

Given a cold example: Observable cold = Observable.create(subscriber -> { try { for (int i = 0; i <= 42; i++) { // avoid doing unnecessary work if (!subscriber.isUnsubscribed()) { break; } …
vach
  • 10,571
  • 12
  • 68
  • 106
3
votes
2 answers

Observable composed of cold and hot observables

I'm having hard time finding proper way of composing an observable which will emit all items from the given cold observable A and as soon as its completes continue with hot observable B. This is my specific use case : I have a data collector which…
vach
  • 10,571
  • 12
  • 68
  • 106
3
votes
2 answers

Project Reactor: wait while broadcaster finish

There is a Broadcaster, that accepts strings and append them to a StringBuilder. I want to test it. I have to use Thread#sleep to wait, while the broadcaster finish processing of strings. I want to remove sleep. I tried to use Control#debug()…
Aleks Ya
  • 859
  • 5
  • 15
  • 27
3
votes
1 answer

Akka/Scala: Can You Explain What's Going On in this Akka Streams Flow?

I'm cutting my teeth on Akka streams and did a fibonacci publisher-subscriber example as follows. However, I don't quite understand yet how the demand is initially generated and what relation it has with the subscriber's request strategy. Can…
Abhijit Sarkar
  • 21,927
  • 20
  • 110
  • 219
3
votes
1 answer

Synchronized Feedback with Akka Streams

What I am trying to achieve is implementing something like a synchronized feedback loop with akka streams. Let's say you've got a Flow[Int].filter(_ % 5 == 0). When you broadcast a stream of Int's to this flow and zip the tuples directly behind it,…
Martin Seeler
  • 6,874
  • 3
  • 33
  • 45
3
votes
1 answer

How to get a Subscriber and Publisher from a broadcasted Akka stream?

I'm having problems in getting Publishers and Subscribers out of my flows when using more complicated graphs. My goal is to provide an API of Publishers and Subscribers and run the Akka streaming internally. Here's my first try, which works just…
ripla
  • 422
  • 4
  • 12
3
votes
2 answers

How to switch streams based on some EventStream changes in Bacon

Consider this example from http://baconjs.github.io/ var up = $('#up').asEventStream('click'); var down = $('#down').asEventStream('click'); var counter = // map up to 1, down to -1 up.map(1).merge(down.map(-1)) // accumulate sum …
gyzerok
  • 1,338
  • 2
  • 11
  • 26
3
votes
0 answers

Exception / error handling in an Akka Stream

I've defined the following Duct: val augmenter1 = new Augmenter1 val augmenter2 = new Augmenter2 val augmenter3 = new Augmenter3 val defaultEventAugmenterPipeline: Duct[Event, Event] = Duct[Event]. map(augmenter1.augment). …
FabioC
  • 91
  • 5
2
votes
1 answer

What is the best way to do async side effect in Reactor?

Let's assume I have a main chain with some processing and I want to call billing service on each item processed and then return the results of the processing further like so: ... ... ... // chain starts somewhere here .flatMap(item ->…
a.khakh
  • 115
  • 10
2
votes
1 answer

Why do some Reactor operators request far more elements than they are interested in?

I have the following code: Flux flux = Flux.never() .doOnRequest(n -> System.out.println("Requested " + n)); It is a Flux that never emits any signal, but reports demand to the console. Each of the following 3…
Roman Puchkovskiy
  • 11,415
  • 5
  • 36
  • 72