+1

BTW, instead of having a random key, can we just dispatch the messages
without a key
in the round-robin fashion? It just works like the Shared subscription.

Regards,
Penghui

On Tue, Jan 30, 2024 at 2:32 AM Yubiao Feng
<yubiao.f...@streamnative.io.invalid> wrote:

> Hi all
>
> ### Background
> Regarding Key_Shared mode, messages without message-key will default to
> "NONE_KEY".
>
> ### Issue
> In a topic, if half of the messages contain a message-key and the other
> half do not. This will result in the consumer who occupies the key-range of
> "NONE_KEY" consuming more much messages than others.
>
> ### What I want to do
> I want to add a new config to switch the behavior when the message does
> not contain a message-key:
> - the policy exists: default the message-key to "NONE_KEY".
> - the new policy: default the message-key to a random value when the
> message does not contain a key.
>
>
> Thanks
> Yubiao Feng
>

Reply via email to