smallrye-reactive-messaging icon indicating copy to clipboard operation
smallrye-reactive-messaging copied to clipboard

Kafka connector throttled key ordered concurrency

Open ozangunalp opened this issue 6 months ago • 1 comments

ozangunalp avatar Oct 30 '25 10:10 ozangunalp

Waiting for the https://github.com/smallrye/smallrye-mutiny/pull/2003 to be released

ozangunalp avatar Nov 24 '25 16:11 ozangunalp

Hello @

Waiting for the smallrye/smallrye-mutiny#2003 to be released

it has been released I guess here isn't it ? https://github.com/smallrye/smallrye-mutiny/commits/release/3.0.2

Well thx for you support !

loic-seguin avatar Jan 07 '26 19:01 loic-seguin

I don't think it was released. It's not merged yet.

cescoffier avatar Jan 08 '26 06:01 cescoffier

I need to verify again if we can go with this or we absolutely need https://github.com/smallrye/smallrye-mutiny/pull/2031.

ozangunalp avatar Jan 08 '26 07:01 ozangunalp

@jponge, I had to write a custom operator to make this work. If you have some time, take a look at SelfPurgingPauserGroupMulti (I know, I know, but naming things is hard).

As I explained earlier, to avoid deadlocking on the merge, I went for the approach of counting items that'll be dispatched to the multi (called on the key selector handler). Each time the inner emits, it checks whether there are any more pending items. If there are no more, it completes the multi (and cancels the subscription). I needed both because complete frees the concurrency place in the flatMap, and canceling the subscription allows re-creating the group later on in groupBy.

@cescoffier I've reworked the config options. You can take another look.

ozangunalp avatar Jan 21 '26 16:01 ozangunalp

I'll have a look tomorrow

jponge avatar Jan 21 '26 20:01 jponge