0
votes

I have topic1 in project1, topic2 in project2. I need to publish a message from topic1 to topic2.

Can we publish the message directly to the topic2 using pub-sub configuration from topic1 without writing any code in any programming language, also without creating any subscriber.

In summary: Is it possible to communicate between the topics directly in Google Cloud Pub-Sub?

1

1 Answers

0
votes

No, it is not possible to communicate directly from topic1 to topic2. You will need to create a subscription on topic1. You can either write a simple subscriber that reads messages from that subscription and then immediately publishes to topic2 or you could use the Dataflow template that does this.