Decouple Publisher Client and publishing Topic #982
Labels
api: pubsub
Issues related to the googleapis/java-pubsub API.
type: feature request
‘Nice-to-have’ improvement, new feature or different behavior or design.
Is your feature request related to a problem? Please describe.
Currently Publisher client is bind to a single topic. This require to create dedicated publisher clients for each topic we want to publish. We have use case where we need to publish to multiple topic (few hundreds) and for that we need to keep track of huge list of clients on VM memory.
Describe the solution you'd like
Decouple Publisher client with topic to publish. Topic information should be taken as arg to publish method as TopicName
Describe alternatives you've considered
There is an alternative for it TopicAdminClient.publish which doesn't bind to a topic and a single client is able to publish to n number of topics. But this not recommended for high volume message publish and therefore not fulfilling our use case.
The text was updated successfully, but these errors were encountered: