Questions tagged [smallrye-reactive-messaging]

107 questions
2
votes
2 answers

Quarkus Kafka - Batch/Bulk message consumer

I want to batch process. In my use case send kafka producer messages are sent one by one. I want to read them as a list in the consumer application. I can do that at the Spring Kafka library. Spring Kafka batch listener Is there any way to do this…
2
votes
3 answers

How to process multiple AMQP messages in parallel with the same @Incoming method

Is it possible to process multiple amqp - messages in parallel with the same method annotated with @Incoming("queue") with quarkus and smallrye-reactive-messaging? To be more precise, I have following class: @ApplicationScoped public class Receiver…
2
votes
0 answers

Acknowledge message after JPA transaction succeed while consuming from Kafka

In a Quarkus application, I want to consume a Kafka message and persist its information in the database using an Entity Manager. This is what I got so far: @ApplicationScoped public class ClientEventConsumer { @Inject ClientRepository…
AmsterdamLuis
  • 341
  • 3
  • 21
2
votes
2 answers

start a background process in Quarkus

I need to consume messages from RabbitMQ in a microservice written using Quarkus. I tried to use the smallrye-reactive-messaging for Quarkus but faced two problems: it only supports AMQP 1.0 and doesn't work with RabbitMQ (even if I use the…
kosmičák
  • 1,043
  • 1
  • 17
  • 41
2
votes
0 answers

NPE consuming Kafka topic

I got an intimidating NPE consuming a Kafka topic using Quarkus 1.6.1 and Smallrye reactive messaging framework. The interesting thing is that it doesn't happen at a low message rate (~100 messages/sec) and it seems to happen at higher message rate…
jguerra
  • 147
  • 6
2
votes
0 answers

Quarkus: how to use point-to-point messaging with Artemis?

I am using quarkus version: 1.5.2.Final and the following dependency to include reactive messaging (I have a running docker instance of Artemis in between the sender and receiver project): io.quarkus
2
votes
1 answer

CDI context in Kafka de-/serializer in Quarkus app

I have a Quarkus project with Smallrye reactive messaging based on Kafka. Since I want to work with a "complex pojo" I need a custom de-/serializer. I'd like to make those two classes CDI beans so I can inject and use my custom logger, which is a…
Flo Ryan
  • 327
  • 1
  • 17
2
votes
0 answers

Quarkus message consumer concurrency (multi thread)

In the JMS world you can easily define the degree of concurrency by tuning the maxSession property in message-driven beans (MDB). Now Quarkus obviously doesn't have MDBs but how do you achieve the same level of concurrency tuning? I had a look at…
2
votes
0 answers

Is kafka SSL connection supported in native?

I wan't to connect to kafka topic with SSL using smallrye-kafka in quarkus. My code works when executing mvn compile quarkus:dev. mvn clean package -Pnative is successful. But when i run native binary it fails because it can't find…
2
votes
2 answers

Do Quarkus & MicroProfile supports Confluent Schema Registry Avro Schema?

Confluent SchemaRegistry not working with Quarkus and MicroProfile end up with the below error ***********ERROR Caused by: io.confluent.common.config.ConfigException: Missing required configuration "schema.registry.url" which has no default…
2
votes
1 answer

SmallRye Reactive Messaging's Emitter<>.send doesn't send in Kotlin via AMQP broker with Quarkus

Currently, I am trying to write a 'notification service' based on Maven, Quarkus and SmallRye Reactive Messaging in Kotlin. As a base I have an example in Java which works fine and I was trying to "translate" it into Kotlin. The way I want it to…
1
vote
0 answers

javax.transaction.xa.XAException: Error trying to transactionCommit local transaction: Enlisted connection used without active transaction

I have an app that consumes from Kafka and perform upsert to Postgres like the following: @Incoming("sink") @Transactional public CompletionStage sink(KafkaRecordBatch messages) { persist(messages); return…
1
vote
1 answer

Quarkus SmallRye Reactive Messaging: Configure polling frequency to prevent continuous throwing of TooManyMessagesWithoutAckException (SRMSG18231)

I'm using the quarkus (2.13.3.Final) plugin quarkus-smallrye-reactive-messaging-kafka (small-rye version 3.21.0) to program a non-blocking input queue deployed on kubernete's cluster to; receive a record, query an external api, do some logic and…
1
vote
1 answer

Quarkus: Kafka Event Processor with 2 @incoming annotations throws Null Pointer SRMSG00212

Quarkus Project 2.16.4.Final Reactive Extensions: quarkus-smallrye-reactive-messaging-kafka Github: https://github.com/mizmauz/test_incoming_error The following error below occurs, with 2 @incoming annotations Processor Method: …
1
vote
0 answers

Quarkus + Kafka Intercept incoming messages and read headers

Is there any way to create a Interceptor for a INCOMING message from Kafka, using the smallrye connector in quarkus ? I need this to read the headers and switch Tenants for persisting data. In spring we can create a consumer interceptor and register…