reactive-programming Questions
3
Solved
I need to implement following behavior:
Make a REST post request
If response returns with a status 429 Too many requests, retry up to 3 times with a delay of 1 second
If the third retry fails or ...
Hutchinson asked 16/9, 2019 at 14:42
1
Solved
Let's say I have simple socket listening in one thread and I want to hold another thread until port is opened and socket is actually listening. Which one is correct:
Using do? Documentation of do ...
Warrenwarrener asked 14/9 at 7:26
1
I'm working on a Spring Boot application that uses Spring WebFlux, and I'm trying to intercept WebClient requests and responses. Specifically, I need to capture both the headers and the request/res...
Bonar asked 20/10, 2023 at 9:10
8
I keep studying and trying Reactive Style of coding using Reactor and RxJava. I do understand that reactive coding makes better utilization of CPU compared to single threaded execution.
Is there ...
Spalla asked 6/2, 2017 at 7:14
7
Solved
I'm trying to find examples of WebClient use.
My goal is to use Spring 5 WebClient to query a REST service using https and self signed certificate
Any example?
Abide asked 31/7, 2017 at 14:23
2
What kinds of exceptions I should consider while working with Android Room.
From my research I found out that there is only one exception that might occur.
Room Exceptions
That is also when you a...
Gap asked 7/11, 2018 at 2:58
4
Solved
I'm trying to reduce the width of the TextField component :
Here is the render method:
render() {
return (
<div>
<div>
<form onSubmit={this.handleSubmit}>
<TextField
hin...
Voltmeter asked 29/1, 2016 at 20:4
4
Solved
How to mock a method that returns Mono<Void>?
I have this method that returns Mono<Void>
public Mono<Void> deleteMethod(Post post) {
return statusRepository.delete(post);
}
...
Weisbrodt asked 23/7, 2019 at 19:58
2
Solved
I have started to slowly embrace the new Angular's Signal in my projects. I stumbled upon the following scenario, and while it works, I wonder if this is the "Angular way" of doing it.
In...
Drue asked 25/2 at 19:2
4
Solved
I want to achieve result like this:
L -1-2-3------4------5-6-7-8----
R ---------A------B----------C--
O ---------A3-----B4---------C8
So basically something like withLatestFrom but combining va...
Undertrick asked 3/11, 2017 at 14:45
2
Solved
I want to expose the metrics of a WebClient call to a downstream system from the service, metrics like count of request, min, max time for the response is needed.
I want to know how I can write a ...
Anomalistic asked 30/10, 2019 at 19:59
2
I'm trying to create a dashboard application where multiple widgets get updates through SSE. My DashboardController looks like:
public class DashboardController
{
private WidgetService widgetServi...
Centerboard asked 11/7, 2022 at 10:14
2
I have this following code which uses WebClient to make HTTP calls.
webClient.post()
.uri("/users/track")
.body(BodyInserters.fromObject(getUserTrackPayload(selection, customAttribute, partyId)...
Martijn asked 19/3, 2019 at 3:29
10
I'm using a spring-webflux WebClient (build 20170502.221452-172) to access a Web application producing a stream of Entry objects (application/stream+json) like this:
final WebClient producerClient...
Merrileemerrili asked 3/5, 2017 at 20:20
10
Solved
Can someone give a clear definition together with a simple example that explains what is a "callback hell" for someone who does not know JavaScript and node.js ?
When (in what kind of settings) do...
Jerald asked 2/8, 2014 at 18:18
3
Solved
I have a
list.stream()
.map(element -> func());
where func() returns with Mono. What is the easiest way to convert this list of Mono<CustomObject> objects to Flux<CustomObject> a...
Has asked 21/11, 2019 at 15:11
4
Let's say I'm having a Parent Component providing a Context which is a Store Object. For simplicity lets say this Store has a value and a function to update this value
class Store {
// value
// fu...
Cautious asked 18/11, 2020 at 3:10
2
I have a Flux and I want to convert it to List. How can I do that?
Flux<Object> getInstances(String serviceId); // Current one
List<Object> getInstances(String serviceId); // Demande...
Dearing asked 10/6, 2020 at 12:27
1
I have a code where I can execute a piece of logic in loop with some delays in between using Flux. Something like this,
Flux.defer(() -> service.doSomething())
.repeatWhen(v -> Flux.interval...
Unjust asked 3/11, 2023 at 18:38
7
I happen to look into Apple's new Combine framework, where I see two things
PassthroughSubject<String, Failure>
CurrentValueSubject<String, Failure>
Can someone explain to me what i...
Nettlesome asked 2/3, 2020 at 4:55
1
How is Apache NIO HttpAsyncClient able to wait for a remote response without blocking any thread? Does it have a way to setup a callback with the OS (I doubt so?). Otherwise does it perform some so...
Quacksalver asked 8/12, 2022 at 17:24
4
Solved
I am using publishOn vs subscribeOn both on the same flux as follows:
System.out.println("*********Calling Concurrency************");
List<Integer> elements = new ArrayList<>();
Flu...
Bigod asked 3/1, 2018 at 7:54
6
Solved
As per spring 5:
WebClient is an interface representing the main entry point for performing web requests.
It has been created as a part of the Spring Web Reactive module and will be replacing the ...
Tameshatamez asked 26/12, 2017 at 6:32
3
Solved
I've a use case where the stream should only emit when the cumulative "sum" equals or exceeds a given value, n. Let's take the example of six integers with n = 5.
+---+------+---------+
|...
Subtenant asked 26/7, 2020 at 20:20
7
Solved
I need some help how could I match the password in react js. I used ant design the first password is working but for conform password I put statement its not working how could I do it
handlePassw...
Lehet asked 2/7, 2018 at 21:13
1 Next >
© 2022 - 2024 — McMap. All rights reserved.