Skip to main content
Filter by
Sorted by
Tagged with
1 vote
0 answers
69 views

I tried to upgrade my codes to Spring Boot 4.0.0, and given the following Kotlin codes, @Bean fun auditorAware(): ReactiveAuditorAware<String> = ReactiveAuditorAware<String> { ...
Hantsy's user avatar
  • 9,611
Advice
0 votes
2 replies
58 views

why can we subscribe as may as we want from reactor publisher but just one time from java stream api?What reason is there for stream to be one time use?
AMZ's user avatar
  • 410
1 vote
1 answer
76 views

In doFinally have printed the signal type to finally verify that it was a cancellation (CANCEL). However, this is not captured as part of doOnError as technically cancellation is not part of error. ...
Patrick's user avatar
  • 1,795
Best practices
0 votes
1 replies
56 views

In which cases does it make sense to wrap the result of a function that returns a Mono in Mono.defer, when assigning it to a variable and using it later? F.e. fun getMono(): Mono<Int> // some ...
rdm's user avatar
  • 330
1 vote
1 answer
81 views

I am using spring-webflux version 3.2.x I want to log the total elapsed time of an whole pipeline execution. I have found a method elapsed() but I want the total time, but I want the total time, not ...
javaTry's user avatar
  • 1,355
1 vote
1 answer
171 views

I'm trying to implement a Spring MCP Client based on the spring-ai 1.1.0-SNAPSHOT library. The minimal project source code is available in this public GitHub repository: https://github.com/robynico/...
robynico's user avatar
  • 247
0 votes
0 answers
44 views

In Project Reactor, why did the designers choose to use the FluxSink API for emitting data instead of exposing a getSubscription() method, where you could directly call the request() and cancel() ...
AMZ's user avatar
  • 410
0 votes
0 answers
65 views

I’m using Spring Kafka 3.3.10 with a reactive Kafka listener (returning Mono). My listener processes a message, calls a downstream WebClient, aggregates results, and returns a Mono. If a timeout ...
Sameep Karanjkar's user avatar
0 votes
1 answer
47 views

At some point in our code using rxjava we have public Maybe<Event> verifyFoo(Event event){ return Maybe.just(event) .flatMap(this::foo) .doOnComplete(() -> ...
Dans Merino's user avatar
1 vote
1 answer
46 views

There are different kinds of events in my application. Let's call them for simplicity a-event, b-events, c-events and so on. I need to implement throttling for each kind of events separately: @...
Denis's user avatar
  • 1,325
2 votes
1 answer
102 views

After I understood how to run queries including to evaluate the metadata in this question I am running into a design flaw: Instant threshold = Instant.now().minus(retention); String query = String....
queeg's user avatar
  • 9,940
0 votes
1 answer
137 views

I'm working on a Spring Boot application using Spring WebFlux with reactive WebClient and Micrometer for tracing. While tracing works correctly in the imperative (servlet) stack, the trace context (...
Cyrill Zadra's user avatar
2 votes
0 answers
201 views

I have a HTTP proxy created on my interface with HttpServiceProxyFactory - it uses WebClient under the hood interface MyClient { @GetExchange("/info") fun getInformation(): Mono<...
Alexey Nurmukhametov's user avatar
0 votes
0 answers
100 views

I'm trying to configure an HTTP proxy (without CONNECT tunnelling support) for my Spring WebFlux WebClients (based on Netty HttpClient) but without success (403 HTTP status code). As explained in the ...
1Z10's user avatar
  • 3,469
0 votes
1 answer
179 views

S3AsyncUploadService.java package com.util.s3; import org.springframework.stereotype.Component; import reactor.core.publisher.Mono; import software.amazon.awssdk.core.async.AsyncRequestBody; import ...
Siddarth Reddy's user avatar
1 vote
0 answers
61 views

so I'm always quite confused when it comes to Flux objects and everything related to them. In my usecase I have a reactive endpoint exposed to webclient which I want to publish async elements received ...
fer.marino's user avatar
1 vote
0 answers
87 views

Running Mono.fromRunnable(() -> log.info("Thread {}", Thread.currentThread().getName())) .publishOn(Schedulers.boundedElastic()) .subscribe(); logs Thread boundedElastic-&...
rosik's user avatar
  • 53
0 votes
0 answers
89 views

I am trying to inject a field in the MDC context using Context Reactor using Spring webflux. Reading documentation, its said that OpenTelemetry just puts the traceId and spanId in the MDC context but ...
fernando1979's user avatar
  • 1,959
-2 votes
2 answers
178 views

Suppose I need to softly assert against multiple object properties, one of which is a Mono. Typically, you use StepVerifier to assert against that. However, the verifyComplete() call will not be soft. ...
Sergey Zolotarev's user avatar
1 vote
0 answers
52 views

We have the following Kafka consumer code with Reactor Kafka. For large messages the application runs out of memory. Back-pressure seems to be not applied. When the groupBy, flatMap and publishOn ...
Lilylakshi's user avatar
1 vote
1 answer
74 views

Help me solve this Project Reactor puzzle. Basically two operators need different types, I seemingly can't preserve them both downstream. I could have some data container that stores both the DTO and ...
Sergey Zolotarev's user avatar
0 votes
1 answer
67 views

I'm attempting to open a file and reading lines through a Flux. I would then like X number of workers to process lines concurrently. Those workers may be slow and so I would like to prevent the ENTIRE ...
CoryO's user avatar
  • 533
0 votes
0 answers
137 views

We have a post REST endpoint defined as: @RequestMapping(value = "/service/", produces = { "application/json" }, consumes = { "application/json" }, method = ...
X.Hu's user avatar
  • 73
1 vote
1 answer
64 views

I was confused by this and it wasn't addressed by the documentation. To me, it looks like the need for FlatMapMany can be inferred by the compiler from the types involved (if a flatMap on a Mono ...
user1385417's user avatar
0 votes
0 answers
39 views

Given a org.springframework.web.server.WebFilter - what are some best ways to start a "longer running" thread without blocking the REST response coming back to the consumer. The long running ...
Vladimir's user avatar
  • 1,460
1 vote
1 answer
271 views

I'm building a reactive API using Spring WebFlux and Project Reactor. In my controller layer, I currently return a Mono<MyResponseDto> like this: @GetMapping("/example") public Mono<...
iwritecomeinmymind's user avatar
0 votes
0 answers
242 views

We have a microservices-based Spring Boot architecture where we use Spring WebClient which internally uses Reactor Netty for inter-service communication (i.e., Service A → Service B) and this ...
Ankit's user avatar
  • 25
0 votes
0 answers
32 views

I have this sink configured in my app: createdSink = Sinks.many().multicast().onBackpressureBuffer(4096); public void activityCreated(ActivityResource createdActivity) { try { var ...
Nick's user avatar
  • 3
0 votes
0 answers
75 views

I have written an integration test which merges five HTTP requests into a flux, short circuits using any(), and then executes a new HTTP request using the same client: Map<String, Cookie> ...
Ilario M's user avatar
0 votes
1 answer
221 views

I have this sink configured in my app: createdSink = Sinks.many().multicast().onBackpressureBuffer(4096); public void activityCreated(ActivityResource createdActivity) { try { var ...
Nick's user avatar
  • 3
1 vote
0 answers
112 views

I'm tesing rsocket-js on web browser using rsocket-websocket-client. Client code,running on web browser: async function initRequest() { const transportOpts = { url: 'ws:' + '127.0.0.1:6565', ...
linkser lin's user avatar
0 votes
0 answers
54 views

There is useful, but not enough smart method: reactor.core.publisher.Flux#collectMap(java.util.function.Function<? super T,? extends K>, java.util.function.Function<? super T,? extends V>) ...
Ainz Sama's user avatar
0 votes
0 answers
90 views

I am getting the below error when I am running the application with OTEL Java-agent to process the traces. This is affecting the functionality of the application. If anyone knows what is happening, ...
Rob's user avatar
  • 1
0 votes
0 answers
60 views

I have 3 input IDs, which should be processed parallely. For that I have used ParallelFlux as below. For every ID, there are 2 downstream API calls(mono1 and mono2 as below) that needs to be parallely ...
Indunil Rathnayake's user avatar
1 vote
1 answer
223 views

In the below code logic switchIfEmpty is not getting executed. As per below code logic I am expecting lowerCase names when filter(__ -> names.size() > 5) evaluates to false and upperCase names ...
Suhail's user avatar
  • 13
2 votes
1 answer
167 views

I establish a ServerSentEvent connection using the code below. The GET request must have a "Last-Event-ID" HTTP Header set that indicates the last fully processed event. Occasionally the ...
Maarten Boekhold's user avatar
2 votes
2 answers
119 views

I have code that reads a file and converts and returns a flux of a list of hashmaps in groups of 10. Initially I was taking an input of the entire file content as a string, but I felt like it would ...
george's user avatar
  • 57
0 votes
1 answer
80 views

Can I visually see the difference between the Mono.error(Throwable throwable) and Mono.error(Supplier<? extends Throwable> errorSupplier). I understand that these are eager and lazy loading. The ...
Gagan's user avatar
  • 141
0 votes
1 answer
1k views

System Info python --version Output Python 3.10.16 I ran this command python -m pip install insightface==0.7.3 and getting the following console output Using cached Cython-3.0.11-cp310-cp310-...
Pawan Roy's user avatar
4 votes
0 answers
324 views

I have a Micronaut application using the declarative Reactor HTTP client, backed by DefaultHttpClient (DefaultHttpClient implements both HttpClient and StreamingHttpClient). When I subscribe to a ...
Jan Wodniak's user avatar
0 votes
0 answers
142 views

We have developed our API Gateway using Spring Cloud Gateway framework based on reactive paradigm using below libraries: Spring Boot: 3.2.0 Spring Cloud: 2023.0.0 Spring: 6.1.1 Spring Cloud Gateway: 4....
Deepak Chhetri's user avatar
1 vote
1 answer
61 views

I have an external API which returns a List of Student along with count and offset parameters which represents number of students remaining in the database. It is similar to a paginated response but ...
Mohammed Idris's user avatar
2 votes
0 answers
41 views

I am trying to track down a bug in my app with Spring Webflux hanging under load. I have been debugging this for many hours so I really need some help, even just on direction to investigate. Problem: ...
spl's user avatar
  • 671
0 votes
1 answer
54 views

I have the following code inside a webfilter in my Srping webflux app return this.authenticationConverter.convert(exchange) .onErrorResume(AuthenticationException.class, (ex) -> { ...
Δημήτρης Τοπαλίδης's user avatar
1 vote
0 answers
101 views

I'm using Sinks.many().multicast().onBackpressureBuffer(int bufferSize) in Reactor. This method buffers up to bufferSize items before the first subscriber is registered. However, if the buffer ...
Max Alex's user avatar
2 votes
1 answer
233 views

Using Spring's WebClient I'd like to implement the following behavior. When the server returns HTTP 429 (Too Many Requests), then I'd like to extract the Retry-After header value. The request shall ...
Robert Strauch's user avatar
0 votes
1 answer
108 views

I need to iterate over a massive query result and perform some business logic on each entity. The database is connected with Spring Data Mongo Reactive so I get a Flux<Entity>. The simple ...
invalid's user avatar
  • 15
0 votes
0 answers
105 views

I need to use the spring WebClient but I need to block it, however, I know it is anti pattern and bad. But I need to since the defined interface that I am going to implement is not reactive. On the ...
Poorya Hosseini's user avatar
1 vote
0 answers
178 views

I have a problem with executing multiple (460) concurrent HTTPs requests using WebClient. I'am trying to perform specific simulation, therefore it's important for me to start all thread simultaneously....
uzarkov's user avatar
  • 27
1 vote
0 answers
28 views

I have a interface with default methods to send a value: import org.springframework.web.reactive.socket.WebSocketMessage; import reactor.core.publisher.FluxSink; public interface ISocketClient { ...
Roman Chumak's user avatar

1
2 3 4 5
82