Skip to content

what is the correct way to handle kafka messages asynchronously #2353

Answered by cescoffier
cuichenli asked this question in Q&A
Discussion options

You must be logged in to vote

You need to use @Blocking, with ordered=false:

@Blocking(ordered=false) // Make sure you use the smallrye one
@Incoming("...")
void process(KafkaRecordBatch<Void, Something> records) {
   // ...
}

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@cuichenli
Comment options

@cescoffier
Comment options

Answer selected by cuichenli
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants