Questions tagged [spring-cloud-gcp]

Ask questions about the Spring Cloud GCP project.

Integrations between Google Cloud Platform APIs and Spring.

The Spring Cloud GCP project makes the Spring Framework a first-class citizen of Google Cloud Platform (GCP).

Spring Cloud GCP lets you leverage the power and simplicity of the Spring Framework to:

  • Publish and subscribe to Google Cloud Pub/Sub topics

  • Configure Spring JDBC with a few properties to use Google Cloud SQL

  • Map objects, relationships, and collections with Spring Data Cloud Spanner and Spring Data Cloud Datastore

  • Write and read from Spring Resources backed up by Google Cloud Storage

  • Exchange messages with Spring Integration using Google Cloud Pub/Sub on the background

  • Trace the execution of your app with Spring Cloud Sleuth and Google Stackdriver Trace

  • Configure your app with Spring Cloud Config, backed up by the Google Runtime Configuration API

  • Consume and produce Google Cloud Storage data via Spring Integration GCS Channel Adapters

  • Use Spring Security via Google Cloud IAP

  • Analyze your images for text, objects, and other content with Google Cloud Vision

147 questions
1
vote
2 answers

Spring GCP service not connecting to Cloud SQL database

I have a Spring GCP service which when run locally connects fine to my Google Cloud SQL instance. However, when I deploy and launch on my Google Cloud Kubernetes cluster, it is failing to connect with Insufficient Permissions errors. I followed the…
1
vote
0 answers

How to track status of an async long running process from stateless spring boot services in GCP?

We have a few Spring Boot services running in a GCP Kubernetes Engine which expose their HTTP(over gRpc) API to the clients. One task is to import very large data files. The proposed way is to upload files to Google storage and trigger an…
0
votes
1 answer

IntelliJ shows "Cannot resolve configuration property" error for Spring Cloud GCP PubSub configuration

My Spring Boot application depends on Spring Cloud GCP PubSub, with maven dependency specified as below: com.google.cloud spring-cloud-gcp-starter-pubsub
Chi Zhang
  • 1
  • 1
0
votes
1 answer

Getting ConverterNotFoundException when trying to make SQL Queries using Spring Spanner data's SpannerTemplate

I'm using Java Springboot to connect to Spanner DB using SpannerTemplate following the steps provided in query-modify. I'm getting below exception Caused by: org.springframework.core.convert.ConverterNotFoundException: No converter found capable of…
0
votes
0 answers

How to read GCP pubsub message in Java without @Scheduled

My requirement is to read gcp pubsub message in java. I have implemented it using java scheduler and google-cloud-pubsub maven dependency(https://cloud.google.com/pubsub/docs/pull). Its a Pull subscriptions not Push. But same implementation was not…
0
votes
1 answer

Kubernetes : Multiple pods result in a scheduler being invoked multiple times

This is a clarification question So I'm working on a java spring boot application, where I have a scheduler running which would be calling an external api every one hour This application is deployed in GCP kubernetes The issue is, when there are…
0
votes
0 answers

GCS Error during retriving signed URLs from GCP (SignatureDoesNotMatch)

I use Java and Spring framework. I store encrypted files (with customer-supplied encryption keys) in GCP. When I try to return signed url for given blob from GCP, I get following error: SignatureDoesNotMatch, with message: The request signature we…
0
votes
1 answer

Firebase Admin SDK integration is failing when used with the "spring-cloud-gcp-starter-sql-mysql" dependency

#implementation "com.google.cloud:spring-cloud-gcp-starter-sql-mysql:3.4.7" implementation "com.google.firebase:firebase-admin:9.1.1" When I comment out the first line in the bootstrap file, the following issue…
0
votes
0 answers

Spring boot - Pubsub subscriber load balancing

My Spring boot app subscribes to pub-sub around 20K messages per hour. the avg process time for each message is 2 minutes so Im handles each message with a async method (messageConsumerService.handleMessage(message);) and ack/nack at the end of the…
Roee
  • 1
0
votes
2 answers

Cloud Run Requires Authentication (Across GCP projects and in Same GCP project)

I am facing these issues, When I try to make my Cloud Run Instances to allow only authenticated invocations (Requires Authentication) I have multiple GCP Projects and many Cloud Run Instances in each project, Sometimes they have to communicate like…
0
votes
0 answers

How to make sure a particular dependency is only loaded/activated for certain profiles?

The plan is to have a prod profile for the production environment which runs in tandem with a Cloud SQL Postgres-instance. For this I require the spring-cloud-gcp-starter-sql-postgresql dependency:
Stefan Falk
  • 23,898
  • 50
  • 191
  • 378
0
votes
1 answer

Dynamically load collection name based on environment based properties in Spring Cloud GCP Data Firestore @Document annotation on the entity

The setup is pretty much basic. There's an entity, a repository and a service that interacts with Google Cloud Firestore. The Entity's @Document annotation has the collectionName derived from the environment specific application.properties…
0
votes
0 answers

How to refresh CredentialsProvider @Bean while connecting GCP pubsub from PCF services (Spring Boot)?

I am trying to use WIF and gcp service account To connect GCP pubsub from PCF service which is developed using spring boot version 2.4.9 and spring-cloud-gcp-pubsub-stream-binder version 1.2.8, This implementation uses a @Bean of type…
0
votes
0 answers

spring boot cloud stream pub sub : Pub sub channel adapter is being stopped right after deploy

Here are my logs right after deploy into cloud run inbound channel adapter being stopped. Unable to receive messages. same profile working as expected if I deploy jar through cloud shell. Gcp Logs Same profile working as expected if I deploy jar…
0
votes
1 answer

spring integration flow dsl performace is slow executing while reading from pubsub and saving into postgres

Below is the code that is reading from pubsub topic. public IntegrationFlow processEvent() { return IntegrationFlow.from(Consumer.class, gateway -> gateway.beanName("onMessage")) …