Questions tagged [smallrye]

SmallRye is community providing APIs and implementations tailored for Cloud development mostly, but not limited, to the specifications. The implemented APIs are tailored for Cloud Native development and container deployment.

Here you can find the main, Eclipse Microprofile, implemented specifications and their current status / version.

SmallRye provides many other community APIs such as [mutiny], which is another (yes) reactive API for the Java language.

160 questions
1
vote
1 answer

Iterate list of AWS SQS messages using Mutiny and Quarkus

Just getting my head around Mutiny API (and java stream api)... I have the following code that reads messages off an AWS SQS queue, ref: quarkus sqs guide Uni> result =Uni.createFrom() .completionStage(sqs.receiveMessage(m ->…
user1843591
  • 1,074
  • 3
  • 17
  • 37
1
vote
1 answer

ServerInterceptor gRPC not catching exceptions with SmallRye Mutiny Reactive in Quarkus

I have two gRPC endpoints available, and a ServerInterceptor which should intercept exceptions when thrown. The gRPC service is defined as following: @GrpcService public class AccountsResource implements AccountsApiService { @Inject …
1
vote
0 answers

Problem with quarkus kafka smallrye consumer multithreading

I set this properties but, quarkus doesn't work correctly. smallrye kafka have 3 partitions mp: messaging: incoming: event: connector: smallrye-kafka auto: offset: reset: earliest topic:…
1
vote
1 answer

Is recursion necessary in Quarkus/Mutiny?

I'm trying to use Redis' scan feature which needs to called until the cursor returned is "0." This approach works but feels overly complicated - is there a way to do it without recursion? Uni callScanRecursively(String cursorNum,…
Charlie
  • 2,004
  • 6
  • 20
  • 40
1
vote
0 answers

OpenApi Smallrye: configure servers with application.properties file

I have the following API definition in a Quarkus application: @OpenAPIDefinition( servers = { @Server(url = "/") }, info = @Info( description = "Description of my…
1
vote
0 answers

io.smallrye.mutiny.TimeoutException after adding quarkus.vault. to application.propperties

I'm writing my first bigger Quarkus Applications. Using maven and Java 11, on Windows. At the moment, I'm trying to make it more secure. I Implemented Authentication using smallrey jwt and that worked fine. Now I'm trying to secure my…
Voxel
  • 55
  • 1
  • 8
1
vote
0 answers

Reactive (java) way to read and accumulate records from a stream

New to Reactive Programming here. Inside a Multi transform, I need to accumulate bytes for few iterations, examining incoming bytes and when I encounter a particular byte pattern, I publish the entire accumulated byteArray for further…
VikasR
  • 11
  • 1
  • 2
1
vote
1 answer

Accessing headers on Quarkus Graphql

I'm using Quarkus GraphQL in my project. Defined a class with @GraphQLApi and a @Query method inside it. I'm not sure how to access the HttpHeaders in the defined method when querying a request. I tried @HeaderParam but I'm getting a null value.…
1
vote
0 answers

Is quarkus supporting gzip jwt tokens

I am using Smallrye JwtClaimsBuilder to build a token in my application. Is it possible to use gzip to compress the body of the token? I couldn't find something in the documentation about this. Of course I could use a different way to generate the…
1
vote
1 answer

Manual context propagation in Quarkus native mode

I'm trying to get context propagation working in Quarkus native mode. The code below works as expected in the JVM mode, but returns MDC value: null in the native mode. By "as expected" I mean: Response to curl http://localhost:8080/thread-context…
Slava Medvediev
  • 1,431
  • 19
  • 35
1
vote
0 answers

Adding smallrye mutiny dependency in JBoss EAP 7.3

I have a microprofile application using Smallrye Mutiny, which I need to deploy on JBoss EAP 7.3. I have applied JBoss EAP XP patch to enable microprofile features. I have also added mutiny jar as a module in EAP. Below are the module file…
1
vote
1 answer

Quarkus JWT with secret Asymmetric Key ES512

We are trying to integrate into our Spring microservices architecture with JWT authentication ES512 asymmetric key. The quarkus microservice is supposed to decrypt the token with the public key, unfortunately it looks like Quarkus by default…
peterbrown
  • 574
  • 6
  • 13
1
vote
1 answer

Auto restart Quarkus Microservice after broker unavailability

I have a very simple Quarkus microservice which uses smallrye reactive messaging (kafka). Sometimes my kafka broker goes down and I got the following logs : 2020-09-24 04:04:27,067 WARN [org.apa.kaf.cli.NetworkClient] (kafka-producer-network-thread…
1
vote
0 answers

Can't set azure blobname in application.properties with camel placeholder

I m trying to set a filename in my application.properties file. It work well when I use the file component as exaplained here : Smallrye doc Notice that im in a quarkus context so I hava to double the $ as explained in the doc. However I don't need…
bdeweer
  • 135
  • 1
  • 14
1
vote
1 answer

How can I insert and get last inserted id in mysql with transactions using quarkus reactive mysql client with mutiny api

How would i go about creating a transaction, inserting a row, committing the transaction and getting the last inserted id. So the method should return a Uni. I'm new to the mutiny api, I previously used the vertx.io chaining future handlers…
Obb
  • 163
  • 4
  • 12