Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option to disable topic existence verification in the Spring Cloud GCP Pub/Sub Binder #3098

Open
burkedavison opened this issue Aug 9, 2024 · 1 comment
Labels
priority: p2 type: enhancement New feature or request

Comments

@burkedavison
Copy link
Member

When Spring Cloud Stream calls provisionConsumerDestination and provisionProducerDestination on the Spring Cloud GCP PubSubChannelProvisioner, the method ensureTopicExists is called and invokes pubsubAdmin.getTopic. This can cause GCP quota issues if it occurs too often.

Workaround: Increase spring.cloud.stream.dynamic-destination-cache-size. (Add'l documentation)

Feature Request: As an alternative, Spring Cloud GCP could provide some mechanism to optionally disable topic existence verification in the Spring Cloud GCP Pub/Sub Binder implementation.

@smahieu87
Copy link

smahieu87 commented Aug 12, 2024

We had the same issue but for us the SA didn't have view access on the topic. To resolve our issue we just set the auto-create-resources to false and it doesn't do the ensureTopicExists anymore for the consumer part.
Would be nice if the same was possibility for option for the producer part.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: p2 type: enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants