Questions tagged [reactive-programming]

Reactive Programming is a programming paradigm oriented around data flows and the propagation of change.

Wiki

Reactive programming is a programming paradigm oriented around data flows and the propagation of change.

This means that it should be possible to express static or dynamic data flows with ease in the programming languages used, and that the underlying execution model will automatically propagate changes through the data flow.


Examples

In a Model-view-controller architecture, reactive programming can allow changes in the underlying model to automatically be reflected in the view, and vice versa.

Unlike Dataflow programming, reactive programming paradigm includes automatic update of variables if variables are dependent on other variables.


Related tags

5669 questions
2
votes
1 answer

Webflux subscriber

I'm currently facing an issue about saving on redis inside a switchIfEmpty function. Probably is related to the fact I'm pretty new in Reactive Programming and unfortunately I struggling to find proper examples about it. However I've been able to…
Maxuel
  • 127
  • 10
2
votes
0 answers

updateTime column default is not working with Spring Webflux and H2 R2DBC

Using Spring webflux with H2-R2DBC and creating a course by adding the details in course table defined as below. CREATE TABLE IF NOT EXISTS course( id VARCHAR(40) PRIMARY KEY, name VARCHAR(40) NOT NULL, fee DECIMAL, updatedtime TIMESTAMP DEFAULT…
2
votes
2 answers

How to call long running blocking void returning method with Mutiny reactive programming?

I have a chain of Async and Sync method invocation on Mutiny's Uni, some methods are a long-running process with return type void. What is the proper way of invoking/calling them without blocking downstream? Below is the simple analogy code. class…
Player_Neo
  • 1,413
  • 2
  • 19
  • 28
2
votes
2 answers

windows install for Haskell Frp package?

I was trying to install the reactive banana package on Windows, with little success. It seems to know about the packages, but fail on installation. Any hints? >cabal install Reactive Resolving dependencies... ... cabal: Error: some packages failed…
guthrie
  • 4,529
  • 4
  • 26
  • 31
2
votes
1 answer

Stream large response in Micronaut controller without going out of memory

We're using Micronaut with Mongo to expose data through some controllers. Because the size of the response entities is growing, our apps go out of memory sometimes. So we’re investigating switching to the async mongo driver and using reactive…
drvdijk
  • 5,556
  • 2
  • 29
  • 48
2
votes
3 answers

Working with List and Reactive extensions

I have started researching Reactive extensions and I would like to know how to do the following (ill try and keep it simple): Have a list of string (or any other type) When an item is added to the said list, do something with it.
Stuart Blackler
  • 3,732
  • 5
  • 35
  • 60
2
votes
1 answer

Question about how to convert legacy Java code to Reactive with Project-Reactor library

I intend to write a process() method with project-reactor library The process() method takes a byte array as a parameter and goes through the following steps. Assume all other methods for each step is written and ready to be used. deserialize the…
ChiGuy001
  • 31
  • 4
2
votes
1 answer

SwiftUI - Combine and Alamofire parse error Response

I have this general implementation for my api .post method: func post(endpoint: Endpoint, parameters: Parameters, responseType: T.Type) -> AnyPublisher { sessionManager.request(self.baseUrl + endpoint.path, method: .post,…
Libor Zapletal
  • 13,752
  • 20
  • 95
  • 182
2
votes
1 answer

MultiTenancy with ReactiveCrudRepository

I have a Spring boot webflux application. Its a SAAS application and there will be multiple organization and multiple users from each organization. So, I store org_id in each table and apply where org_id=? in each select, update and delete…
2
votes
1 answer

Execute the current flow while background process is running - mono reactive programming

I am trying to run the main method where the main method calls another method(Bmethod) which I need to run in the background but I need the main method response immediately without waiting for Bmethod response. I need to use java reactive…
sudar
  • 1,446
  • 2
  • 14
  • 26
2
votes
1 answer

How to avoid repeating maping operations for similar subscribers in Sping Reactor?

I have one publisher that emits strings and many subscribers that may use the same mapping function for creating models with different filters. Publisher: val publisher: Flux = ... Subscriber#1 val sub1 =…
2
votes
0 answers

Discord4J: No instance(s) of type variable(s) R exist so that void conforms to Mono

I have the following error no instance(s) of type variable(s) R exist so that void conforms to Mono. How would I resolve this? Im writing a discord bot in java with Discord4J. When a user reacts to the bot emoji for the corresponding…
Potion
  • 785
  • 1
  • 14
  • 36
2
votes
1 answer

Do you have a test to show differences between the reactor map() and flatMap()?

I am still trying to understand the difference between the reactor map() and flatMap() method. First I took a look at the API, but it isn't really helpful, it confused me even more. Then I googled a lot, but it seems like nobody has an example to…
F4k3d
  • 653
  • 1
  • 10
  • 29
2
votes
2 answers

RxJS. Combine observables that emit less then 1 second apart

There are two observables that may be emiting together or separately: stream1 and stream2. I need my subscription to fire only if stream2 fires less then 1 second after stream1 does. Any way to achieve that with RxJS?
2
votes
2 answers

Want to buffer a Observable until another fires, then remove buffer and fire normally with one subscription

I'm implementing an analytics service into my Angular app. I create and append the 3rd party script in the service's constructor. There can be a race condition where other services try to fire telemetry events before the script is loaded. I…
Dan
  • 919
  • 1
  • 10
  • 28
1 2 3
99
100