Hi Haiting

> I wonder what's the actual use case of mixing Exclusive-Mode and
Share-Mode of the same topic?

I think there might be a scenario like this:
Users used multiple producers in shared mode before, but need to change to
exclusive producers later.

> From what I see, we should make clear the priority of Exclusive-Mode and
Share-Mode, and Exclusive > Share makes more sense to me. Currently,
depending on the time of which producer registered first will make the
usage very confusing and hard to debug for users.
Yes.The simpler, the easier to use

Thanks
Yubiao

On Thu, Nov 10, 2022 at 4:10 PM Haiting Jiang <jianghait...@gmail.com>
wrote:

> Hi Yubiao
>
> I wonder what's the actual use case of mixing Exclusive-Mode and
> Share-Mode of the same topic?
>
> From what I see, we should make clear the priority of Exclusive-Mode
> and Share-Mode, and Exclusive > Share makes more sense to me.
> Currently, depending on the time of which producer registered first
> will make the usage very confusing and hard to debug for users.
>
> Thanks,
> Haiting
>
> On Thu, Nov 10, 2022 at 2:40 PM Yubiao Feng
> <yubiao.f...@streamnative.io.invalid> wrote:
> >
> > Hi all,
> >
> > Now if an Exclusive-Mode producer has been registered, we can register
> > another WaitForExclusive-Mode producer.  When the old producer goes
> > offline, the new producer will take over as the new exclusive producer.
> >
> > < Highlight >But if some Shared-Mode producers have been registered, we
> can
> > register another WaitForExclusive-Mode producer too, but even if all
> > Shared-Mode goes offline, the new producer will not take over as the new
> > exclusive producer. Then, if we register a new WaitForExclusive-Mode
> > producer, the earlier WaitForExclusive-Mode producer will take over as
> the
> > new exclusive producer.
> >
> > < Highlight >I want to make the behavior of producers that use the mode
> > WaitForExclusive clear: When no other mode of producer exists for a
> topic,
> > the first producer in the WaitForExclusive queue can auto succeeds as the
> > exclusive producer.
> >
> > Thanks
> > Yubiao
>

Reply via email to