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
2
votes
1 answer

Kotlin Coroutine transaction in Reactive SQL Client (Quarkus/Vert.X)

I want to use Kotlin coroutines in my reactive sql client transactions. For simplicity, I was going to use the provided helper function io.vertx.mutiny.sqlclient.Pool#withTransaction mentioned in the docs here. Since the passed function is not a…
Ahmet K
  • 713
  • 18
  • 42
2
votes
1 answer

Error handling on quarkus mutiny rest client

On my quarkus rest project i have a restclient that uses mutiny: @Path("/") @RegisterRestClient(configKey = "my-api") @RegisterClientHeaders @RegisterProvider(MyExceptionMapper.class) public interface MyClient { @POST @Path("path") …
Michele Bortolato
  • 707
  • 2
  • 11
  • 27
2
votes
1 answer

Mutiny Uni Convert to Primitive Type

Up until now I have done very basic things with smallrye Mutiny in Quarkus. Basically, I have one or two very small web services which only interact with a web application. These services return a Uni. Now I'm writing a logging service I…
Paul Stoner
  • 1,359
  • 21
  • 44
2
votes
1 answer

How to run blocking codes on another thread and make http request return immediately

We started a new project with Quarkus and Mutiny, and created a bunch of endpoints with Quarkus @Funq, everything has been working fine so far. Now we want to process something very time-consuming in one of the endpoints, and what we are expecting…
Terry Deng
  • 401
  • 7
  • 16
2
votes
1 answer

Cannot start a JTA transaction from the IO thread

I'm trying to test some reactive code implemented with mutiny on quarkus 2.2. This code do some sql query and I want a transactional method. From my knowledge , for testing reactive code I have to await explicitly the result. But when there is…
Ben
  • 103
  • 1
  • 7
2
votes
1 answer

Class not found when trying to return List from consumeEvent in Quarkus

When I try to return a Uni with a typed java.util.List in Quarkus in dev mode, i get a ClassNotFound exception. I have read about Quarkus using different class loaders in different profiles, but I don't see that I do anything fancy. Here's the…
Mattias Johansson
  • 723
  • 2
  • 6
  • 22
2
votes
2 answers

How to unit test a method returning Uni/Multi of Smallrye mutiny reactive library?

I am using Smallrye Mutiniy reactive library in my Quarks application as it is supported natively in Quarks applications. I'am trying to write unit tests for a service class. I am not sure how to write unit tests for a method that returns…
Player_Neo
  • 1,413
  • 2
  • 19
  • 28
2
votes
1 answer

quarkus reactive mutiny thread pool management

Background: I'm just this week getting started with Quarkus, though I've worked with some streaming platforms before (especially http4s/fs2 in scala). Working with quarkus reactive (with mutiny) and any reactive database client (mutiny reactive…
drobert
  • 1,230
  • 8
  • 21
2
votes
2 answers

Reactive Quarkus: Use Reactive PanacheORM with Multiple datasources

I'm trying to connect to two different databases (both with reactive connection), but I'm not able to create a connection pool for the second database and continue using Panache. I tried to use the @ReactiveDataSource annotation as it is in the…
Leonardo Freua
  • 123
  • 1
  • 1
  • 7
2
votes
1 answer

How to convert Future to Uni?

I have a Java API that returns a Future instance. I need to convert it to a Uni. From the mutiny documentation, I see it is possible to convert a CompletionStage to Uni, but I couldn't find how to convert a standard Future to Uni. Q: How to convert…
Sasha Shpota
  • 9,436
  • 14
  • 75
  • 148
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
1 answer

Opentracing context not propagated on Quarkus when using reactive messaging

I've two microservices interacting with each other via Kafka, that is the one publishes messages while the other consumes them. Both the publisher and the consumer run on Quarkus (1.12.0.Final) and use reactive messaging and…
Pat
  • 31
  • 3
2
votes
1 answer

Quarkus: execute parallel unis

In a quarkus / kotlin application, I want to start multiple database requests concurrently. I am new at quarkys and I am not sure if I am doing things right: val uni1 = Uni.createFrom().item(repo1).onItem().apply { it.request() } val uni2 =…
Rolintocour
  • 2,934
  • 4
  • 32
  • 63
2
votes
1 answer

No rollback with quarkus, mutiny and reactive postgresql

I am trying to get 3 inserts executed within the same transaction, but I am not able to get the transaction rolled back when one of the inserts fail. I am new in the reactive world and this is my very first reactive application. Here is a…
1
vote
1 answer

Custom interceptor in quarkus mutiny web client

I am using Quarkus and Mutiny in test application. Creating the web client like below which will be used to interact with other micro…
sam
  • 71
  • 1
  • 9
1 2
3
15 16