Questions tagged [reactive]

Reactive programming is the general approach to implementing systems in a reactive way, according to the Reactive Manifesto. The term "reactive" is most frequently applied to the various implementations of Reactive Extensions, pioneered by Microsoft, and appearing in many languages, usually with "Rx" prefix.

The Reactive Manifesto is a statement of principles of reactive systems. These reactive systems solve the problems of responsiveness, reliability and scalability that arise when very large information systems are built, spanning many platforms from phones to web browsers to mainframes.

Implementation of reactive systems requires both an architectural approach and an implementation approach. The implementations of reactive systems are usually described as reactive extensions. One home for a description of various reactive extension implementations is ReactiveX. It has extensive description of the various patterns and operations of reactive library implementations.

51 questions
17
votes
1 answer

How does the Free monad and Reactive Extensions correlate?

I come from a C# background, where LINQ evolved into Rx.NET, but always had some interest in FP. After some introduction to monads and some side-projects in F#, I was ready to try and step to the next level. Now, after several talks on the free…
MLProgrammer-CiM
  • 333
  • 2
  • 13
16
votes
1 answer

Why is Akka being marketed as reactive? Is Actor Model reactive?

As far as I understand the Actor Model and the Reactive Programming are separate concepts. Actor Model does not seem to be inherently reactive to me. However the Akka framework which is an Actor Model implementation is being described as…
Den
  • 4,827
  • 2
  • 32
  • 48
14
votes
3 answers

Can the RxJava class Flowable legitimately have 460 methods?

I am just getting started with RxJava, Java's implementation of ReactiveX (also known as Rx and Reactive Extensions). Something that really struck me was the massive size of RxJava's Flowable class: it has 460 methods! To be fair: There are a lot…
skomisa
  • 251
  • 1
  • 8
13
votes
2 answers

Isn't an Entity-Component System terrible for decoupling/information hiding?

The title is intentionally hyperbolic and it may just be my inexperience with the pattern but here's my reasoning: The "usual" or arguably straightforward way of implementing entities is by implementing them as objects and subclassing common…
PawkyPenguin
  • 251
  • 1
  • 2
  • 6
13
votes
1 answer

Reactive programming vs MVVM pattern for managing GUI updates

Reactive programming and MVVM are two approaches that can address the problem of separating the domain layer from the UI. MVVM does this by defining a viewmodel, which is a data structure mapped to UI components. The UI display the data, and maybe…
Simon Bergot
  • 7,930
  • 3
  • 35
  • 54
12
votes
3 answers

What's the difference between reactive programming and event driven architecture?

What's the difference between reactive programming and event driven architecture? Is reactive programming a way of implementing event driven programming?
mohsenJsh
  • 1,237
  • 1
  • 10
  • 15
10
votes
2 answers

Maintaining State without assignment

I am learning functional programming and I have trouble understanding how some particular scenarios are implemented without the use of assignment. The following simple problem pretty much sums up my confusion. Write a program that receives events…
Jencel
  • 217
  • 1
  • 9
9
votes
1 answer

"Reactive programming is programming with asynchronous data streams." is this true?

I was reading about Reactive programming, and came across this article The introduction to Reactive Programming you've been missing with the quote I put in the question title: Reactive programming is programming with asynchronous data streams. but…
m0meni
  • 773
  • 1
  • 6
  • 12
9
votes
1 answer

What is the relationship between "flux" and pure functional reactive programming?

Flux, as far as I understood, is a technique about dealing with the dataflow of an application unidirectionally, keeping state isolated from the rest of the program in read-only, self-contained "stores" which can change its own state by listening to…
MaiaVictor
  • 5,820
  • 7
  • 27
  • 45
7
votes
1 answer

flatMap with if else vs combine with filter

When using reactive frameworks I have seen both solutions below to make a mutually exclusive selection of which stream will be forwarded (rxjava in this case) Observable.merge( Observable.just(aBoolStatement).filter(aBoolean ->…
Erik Johansson
  • 245
  • 1
  • 2
  • 6
7
votes
0 answers

How can one simply follow reactive manifesto?

I am quite confused about the Reactive Manifesto. According to this manifesto a reactive system should be: Responsive Resilient Elastic Message Driven Now for being responsive and resilient, as far as I am aware, everyone would want the system…
Sarp Kaya
  • 331
  • 2
  • 6
6
votes
3 answers

Connotation difference between "subscribers" and "observers"

In the observer pattern, and similar, is there a meaningful difference between "subscribers" and "observers" in the wild, or in the lit? With RxJS and (functional) reactive programming, are the terms interchangeable?
Alexander Mills
  • 277
  • 2
  • 13
6
votes
2 answers

Under what scenarios would 'functional' `Try` objects be more or less beneficial than 'rx' `Try` objects?

Definitions used by this question: 'functional' Try is what https://github.com/lambdista/try is. Success and Failure are subclasses of Try. Exceptions aren't thrown by the called function. 'rx' Try is what…
Noel Yap
  • 171
  • 4
5
votes
1 answer

Listen for data(base) changes using Clean Architecture

Our team is building an Android app using Kotlin (if that matters at all) by following the guidelines described by Uncle Bob (Robert Martin). The presentation pattern we use is MVI. We have presenters that communicate with Use Cases/Interactors and…
curiousily
  • 59
  • 1
5
votes
1 answer

What are the advantages of Observables over an iterable of futures?

I recently came across the ReactiveX pattern for asynchronous data-flows. I studied the information provided there and also watched this talk by a Netflix engineer on how they used Observables to redesign their web API architecture. ReactiveX…
gardenhead
  • 4,719
  • 2
  • 19
  • 24
1
2 3 4