Is it possible to have multiple producers for the same topic on Pulsar?
问题 I know you can set topic subscription to be shared subscription to allow for multiple Consumers on the same topic. Can this also be done for multiple Producers? For some reason when I try to, I get a Producer with name '<topic_name>' is already connected to topic 回答1: Yes, you can have multiple producers on a topic. You just have to make sure each producer has a unique name. From the ProducerBuilder.producerName section of the Java client API docs: When specifying a name, it is up to the user