> Oh, that's a very interesting point. I think it'd be easy to add that > as "internal" feature, though I'm a bit puzzled on how to add that to > the producer API
I think we can add a field `String initialSubscriptionName` to the Producer Configuration. And add a new field `optional string initial_subscription_name` to the `CommnadProducer`. When the Broker handles the CommandProducer, if it checks that the initialSubscriptionName is not empty or null, it will use initialSubscriptionName to create a subscription on that topic. When creating the deadLetterProducer or retryLetterProducer, we can specify and create the initial subscription directly through the Producer. What do you think? On Thu, Dec 23, 2021 at 7:42 AM Matteo Merli <matteo.me...@gmail.com> wrote: > > > What if we extended the `CommandProducer` command to add a > > `create_subscription` field? Then, any time a topic is auto > > created and this field is true, the broker would auto create a > > subscription. There are some details to work out, but I think this > > feature would fulfill the needs of this PIP and would also be broadly > > useful for many client applications that dynamically create topics. > > Oh, that's a very interesting point. I think it'd be easy to add that > as "internal" feature, though I'm a bit puzzled on how to add that to > the producer API -- Zike Yang