Questions tagged [quarkus-reactive]

132 questions
0
votes
1 answer

Mutiny; Why is onFailure called when I get an Item?

I'm a bit lost when playing with Mutiny. I have a testfunction that Creates a String uni and when that is succesful I want that it return a 200 OK or when it fails(which it shouldn´t with this simple string creation) a 500 Internal Server Error for…
Gert Kommer
  • 1,163
  • 2
  • 22
  • 49
0
votes
0 answers

How to batch process RabbitMQ messages in Quarkus

Is it possible to batch process RabbitMQ messages with Quarkus? Based on their documentation it seems that it's currently not supported and there is no information on if it's planned.
0
votes
2 answers

Fetch specific columns dynamically

I have the following User entity: public class User extends PanacheEntityBase{ @Id @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "DataIdGenerator") @Column(name = "id") public Long id; public String name; …
0
votes
0 answers

Quarkus - connect to muli hosts with reactive driver

I need to connect to multiple postgres hosts with hibernate-reactive As an example, with the classic jdbc driver, we can define this property to connect to our HA postgres…
0
votes
2 answers

Quarkus Rest client JSON serialization: equivalent of @JsonIgnore to ignore some field in serialization

How to ignore a field in a Quarkus Rest Client request body? I see in the dependency tree, this is listed: io.quarkus:quarkus-resteasy-reactive-jsonb:jar:2.7.5.Final:compile And using @JsonIgnore or JsonProperty(access =…
WesternGun
  • 11,303
  • 6
  • 88
  • 157
0
votes
0 answers

Quarkus reactive datasource SSL handshake failure

I am facing the same problem described in (Error on Quarkus reactive datasource SSL handshake). The problem seems solved, but I didn't manage to make it work. I tried providing the trust-certificate-pem property but I still get - Ssl handshake…
0
votes
1 answer

Token caching with Mutiny

I'm new in reactive programming and trying to wrap my head around base concepts. Basically, I want to implement a logic, that would return auth token if it's still valid or requests the new one otherwise. My best take is the code like below: public…
Evgeny
  • 1,413
  • 2
  • 12
  • 16
0
votes
3 answers

Quarkus Mutiny Uni/Multi wait for the request response to finish

I can't find a correct solution to this problem and I'm stuck. Let's say I have this method @GET @Path("/testingAsync") public Uni> testingMutiny() { List completeList = new ArrayList<>(); …
Theodosis
  • 792
  • 2
  • 7
  • 22
0
votes
1 answer

What is the point of returning a Multi instead of a Uni with RestEasy?

I am using RESTEasy Reactive with a MongoDB / Panache and I am trying to understand what the point of the .stream() methods (when using REST). In several examples (quarkus docs, video, medium article, etc.) a Multi is used as a return value for a…
Tim
  • 3,910
  • 8
  • 45
  • 80
0
votes
1 answer

Selecting distinct records using Quarkus PanacheEntity

I have a table(MySql) like (ID(primary-key), Name, rootId) (2, asdf, 1) (3, sdf, 1) (12, tew, 4) (13, erwq, 4) Now I want to select distinct root tsg_ids present in database. In this case It should return 1,4. I tried List entityList =…
0
votes
0 answers

A failure to decode a rabbit message fails the reactive Reactive Messaging - readiness check

I've encountered a problem when using small rye reactive messaging with Quarkus, for a rabbit MQ incoming handler. The message being published to rabbit has a json content type, and the method signature of the handling code is written accordingly: …
0
votes
1 answer

@Timed on quarkus reactive endpoint is not giving the correct response time

Below is my endpoint. @Path("/data") @POST @Produces(MediaType.APPLICATION_JSON) @Consumes(MediaType.APPLICATION_JSON) @Timed("rest.request.timer") public Multi<***> getData(***) { \\ app logic return x; } …
Jaiprasad
  • 149
  • 11
0
votes
1 answer

Proper way to handle Default DNS warning when switching to reactive

After switching from quarkus-rest-client to quarkus-rest-client-reactive A warning started appearing. WARN [io.net.res.dns.DefaultDnsServerAddressStreamProvider] (Quarkus Main Thread) Default DNS servers: [/8.8.8.8:53, /8.8.4.4:53] (Google Public…
gian1200
  • 3,670
  • 2
  • 30
  • 59
0
votes
1 answer

Async calls using K8s client

I'm struggling to make an Async call to perform actions on Kubernetes since the client is not provided as reactive. For example, creating a namespace Namespace namespace = new…
0
votes
1 answer

Java streams peek() equivalent in Mutiny Quarkus

Sometimes I want to peek what's the value that is flowing through the steam. I cannot attach a debugger from my IDE. Because I will see unresolved objects instead of values. If I try to .await().indefinetely() it will raise an exception. So I'm…
Jude Niroshan
  • 4,280
  • 8
  • 40
  • 62
1 2 3
8 9