Replies: 2 comments 3 replies
-
For clarity for other people as well, I'll attach the full quote taken from the documentation site regarding Key Shared Subscription
Answering your first question:
I'm assuming you mean to ask if the new consumer will be allowed to receive messages after the read position when that flag is enabled; then, from my understanding, yes. Regarding your second question:
The new consumer will be in charge of certain keys, right? Those keys are always taken from existing consumers. So it might be possible that certain messages of key K1 were delivered to C2, and when C_New joined, messages of K1 from now on will be delivered to C_New. The thing is that when that flag is enabled, the broker won't wait for C2 to finish processing messages with key K1 (acknowledge) but will simply start delivering messages from read position to C_New with key K1. I hope I managed to answer, if not please help me by clarifying your questions @startjava . |
Beta Was this translation helpful? Give feedback.
-
i understand: |
Beta Was this translation helpful? Give feedback.
-
the broker will allow it to receive messages knowing some messages of that key may be still be processing in other consumers at the time, thus order may be affected for that short period of adding a new consumer.
" the broker will allow it to receive messages" allow new consumer receive read position after message ??
" the broker will allow it to receive messages" allow new consumer receive same key or no same key message ??
@asafm
i have top 2 question , thank you !
Beta Was this translation helpful? Give feedback.
All reactions