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

Use Reactive-Streams Processor with RxJava 2.0

I have an org.reactivestreams.Processor that I would like use with RxJava 2.0. However, while there are conversions to integrate anorg.reactivestreams.Publisher with RxJava, like io.reactivex.Flowable#fromPublisher, it is not clear to me how to best…
Matthias Langer
  • 994
  • 8
  • 22
0
votes
1 answer

Is Reactive Stream message or event driven?

I'm trying to figure out if Reactive Streams are message-driven or event-driven. There are different version, on manifesto they say that Reactive Streams is Message Driven. But in another article they only say about Events. Or maybe this is both…
Kapitalny
  • 651
  • 2
  • 8
  • 17
0
votes
0 answers

Play! Java: pushing message from streams through Websockets

We would like to push messages received through Kafka streams through to the client using websockets. Our initial thought was to use Play! framework with Java for providing the HTTP interface and Akka for reactive stream processing and pushing the…
0
votes
0 answers

Akka streams ignore onComplete event on ActorSubscriber

I have a use-case where I have a fixed number of elements flowing in from a source. These elements get processed and then there is a Sink which is an ActorSubscriber in our case. What happens is the Source signals an complete event after sending all…
Dipayan
  • 203
  • 4
  • 12
0
votes
1 answer

stopping a running akka streams graph willfully

Suppose I have following simple graph. class KafkaSource[A](kI: KafkaIterator) extends GraphStage[SourceShape[A]] { val out = Outlet[A]("KafkaSource.out") override val shape = SourceShape.of(out) override def createLogic(attr: Attributes):…
phantomastray
  • 449
  • 3
  • 16
0
votes
1 answer

Akka Reactive Streams purpose of the Processor

I'm trying to undestand Reactive Streams in akka. I've read this blog http://bryangilbert.com/blog/2015/02/04/akka-reactive-streams/ and I think I get the basic idea of how it works. What I don't understand however, is the purpose of the Processer…
Rise
  • 17
  • 1
  • 4
0
votes
1 answer

Publisher based Source does not output elements

I made a Source for an Akka Stream based on a ReactiveStreams Publisher like this: object FlickrSource { val apiKey = Play.current.configuration.getString("flickr.apikey") val flickrUserId =…
Jeroen Kransen
  • 1,379
  • 3
  • 19
  • 45
0
votes
1 answer

Can I implement my own OverflowStrategy?

Is it possible (or will it be possible in the future) to implement my own OverflowStrategy as a function of the current buffer of the element? Or there's a particular reason to not allow that? Thanks!
ale64bit
  • 6,232
  • 3
  • 24
  • 44
-1
votes
1 answer

Why don't we see Reactive programming in all the web applications?

Reactive programming is a very useful way to increase the capacity of webservices because of non-blocking thread. I recently came to know about this programming paradigm and I want to use it for most of the applications I build. Despite being so…
-1
votes
2 answers

How to use Hibernate lazy loading and reactive streams?

I am currently building a REST service with Micronaut Data. I have defined two JPA entities, bounded by a bidirectional @OneToMany relationship, and lazy loading. @Entity @Getter @Setter public class ScoringEntity { @Id private String id; …
nquincampoix
  • 508
  • 1
  • 4
  • 17
-1
votes
1 answer

reactor stream - overwrite old value, keep only latest

At the moment I am trying to implement a standard reactive case with Project Spring Reactor: The producer is faster than the consumer. The consumer should never work with old values if new ones are already available (example: outdated stock prices…
SvenR
  • 39
  • 1
  • 6
-1
votes
1 answer

Efficient way to keep state in reactive stream scan(), atomic, etc?

Last time, I started implementing bitbay.net subscription on orders. The problem is that bitbay is returning a delta of orders, but I always want to keep the whole price depth (so I have to keep full price depth on my side and update it when some…
-1
votes
1 answer

Test ScalikeJDBC Publisher with Scalatest

Do you have any idea why this code it should "add person s and then find-by-firstname" in { implicit session: DBSession => val person1: Person = Person.create(firstname1, lastname1, ssn1, email1, dob1).get val person3: Person =…
1 2 3
23
24