Questions tagged [mutiny]

Mutiny is an event-driven, reactive programming library for Java 8+.

Mutiny is an event-driven reactive programming library, supporting (Reactive Streams) based back-pressure and designed after having experienced many issues with other Reactive programming libraries.

It takes a different approach by providing the most used operators with a more guided API, which avoids having classes with hundreds of methods that cause trouble for even the smartest IDE. The library has built-in converters from and to other reactive programming libraries, so you can always pivot.

Mutiny reuses ideas from Reactive eXtensions but does not follow the same API guidelines and operators. Also, it can be used to build Reactive Systems, for example, by combining, Mutiny, and Reactive Messaging.

228 questions
0
votes
1 answer

Dispatch a CompletionStage / CompletableFuture API service in a Reactive REST GET endpoint with Quarkus/Mutiny

After implementing a Reactive REST GET endpoint with Quarkus / Mutiny using a callback structure and checking the variant with a blocking service i finally played with a CompletionStage / CompletableFuture API version; How do i call a…
0
votes
1 answer

Dispatch a blocking service in a Reactive REST GET endpoint with Quarkus/Mutiny

Lately i've implemented a Reactive REST GET endpoint with Quarkus/Mutiny using a callback structure; Connect MyRequestService to Reactive REST GET endpoint with Quarkus/Mutiny After finishing, I was wondering how this is settled with a call to a…
Roland Beuker
  • 354
  • 1
  • 15
0
votes
1 answer

Complete Uni with placeholder item, without cancelling the processing pipeline, if no item has been produced before deadline

I have a pipeline of asynchronous operations that takes a long time to complete, and I would like to let the Uni continue with a placeholder item if the pipeline has not produced an item before a deadline, like this: Uni u =…
sirf
  • 3
  • 2
0
votes
1 answer

Test own Mutiny operator

I am new to reactive Programming and created my first own Mutiny operator like described in https://smallrye.io/smallrye-mutiny/guides/plug. My operator is a collector, which collect x items in list and send the items if x is reached or when the…
jzimmerli
  • 141
  • 3
0
votes
1 answer

Multi collectItems how to early terminate and return the collected items

In my quarkus service, i am building a custom accumulator to consume a Multi. The stream can potentially be infinite, and I wonder how to early terminate and collect the results when sufficient data has been accumulated? Below are my…
GeauxEric
  • 2,814
  • 6
  • 26
  • 33
0
votes
1 answer

Quarkus Uni is not working as accepted?

As I am working on QUarkus application I am trying to return Uni but it giving me error: @GET @javax.ws.rs.Path("/notification/typeCount") @Produces({MediaType.APPLICATION_JSON, MediaType.TEXT_PLAIN}) public Uni getNoti(){ return…
user3458271
  • 638
  • 12
  • 31
0
votes
1 answer

How to propagate JTA state when using reactive-messaging?

I would like to propagate JTA state (= the transaction) between a transactional REST endpoint that emits a message to a reactive-messaging connector. @Inject @Channel("test") Emitter emitter; @POST @Transactional public Response test() { …
0
votes
1 answer

reactive microprofile REST client blocks on Quarkus

On Quarkus I try to build a reactive microprofile REST client with a dynamic baseUrl, but so far in all implementation variants the REST call blocks after subscription. Interestingly the non-reactive implementation works like a charm. Let's see some…
Pat
  • 31
  • 3
0
votes
1 answer

Quarkus Mutiny Web Client Decode JSON safely

I've been getting into Quarkus and trying to utilize the Mutiny Vertx WebClient. My code works but I prefer not to have to rely on unsafe/unchecked assignments which is how I've currently written the code with bodyAsJson method on HttpResponse. Is…
jkratz55
  • 821
  • 2
  • 13
  • 27
0
votes
1 answer

How to deal with whole compensation using Mutiny?

Working on Quarkus and SmallRye Mutiny, I don't know how to deal with compensations. I have a list of employees and I have to update all of them in the database. The Data Access Object (EmployeeDao) has the following method: public Uni
Sergio Rodríguez Calvo
  • 1,183
  • 2
  • 16
  • 32
0
votes
1 answer

Mutiny: recover from a single uni timeout

From a quarkus (kotlin) appli, I request multiple endpoints (same endpoint but with different base URL) in parallel, then I combine the uni in order to not wait sequentially for each response. Here is a sample: val unis =…
0
votes
1 answer

Quarkus mutiny - missing OAuth2 support for the web-client

I have a basic implementation in Quarkus/mutiny (reactive) and are able to consume a REST API using artifact smallrye-mutiny-vertx-web-client. As I use mutiny the Vertx is imported from io.vertx.mutiny.core.Vertx. I found no compliant Vertx mutiny…
0
votes
0 answers

Connection closed while handshake in process with websockets

I have a problem when sending a message to a websocket server. 2020-06-15 17:06:51,830 INFO [snc.mob.gro.myt.con.ws.MutinyWebsocket] (vert.x-eventloop-thread-6) erreur {}: io.netty.handler.codec.http.websocketx.WebSocketHandshakeException:…
bdeweer
  • 135
  • 1
  • 14
-1
votes
2 answers

What is the correct way to test with mutiny?

I'm writing unit tests, where I need to retrieve an object from an MS SQL table based on its ID using Panache Reactive. However, every time I try to test this method, I encounter an error message stating: "Expected a completion event, but didn't…
-1
votes
1 answer

Multi Publisher

First time using a Multi and I am doing something wrong. I want to use a SubmissionPublisher from java.util.concurrent. It implements the Flow.Publisher interface. final SubmissionPublisher subPub1 = new SubmissionPublisher<>(); final var m1…
1 2 3
15
16