I am trying to use the sample code hosted in this repo. https://github.com/spring-cloud/spring-cloud-gcp/tree/master/spring-cloud-gcp-samples/spring-cloud-gcp-pubsub-binder-sample I want the app to consume messages from an existing subscription. But the binder tries to always create a new topic and a new subscription for the newly created topic. What properties do I need to set to make the binder consume from existing subscription
Asked
Active
Viewed 339 times
0
-
1When you say "this code," what code do you mean? You haven't provided any code. – Kamal Aboul-Hosn Nov 07 '19 at 22:13
-
Thanks. Missed to add the URL – mani Nov 07 '19 at 22:57
1 Answers
0
From reading the implementation of the Spring GCP Pub/Sub Stream Binder, reusing an existing subscription is done when a group name is set in application.properties. If that’s not happening, you should file an issue report in this repo. You may also want to try disabling resource auto-creation.

Jason Ganetsky
- 411
- 2
- 7