0

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

mani
  • 1
  • 1

1 Answers1

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