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
0
votes
1 answer

How to upload new file into GCP bucket?

I've found excellent example how to read/update existing file in GCP bucket: @RestController public class WebController { @Value("gs://${gcs-resource-test-bucket}/my-file.txt") private Resource gcsFile; @RequestMapping(value = "/",…
0
votes
1 answer

How to call REST service which uses GCP authentication?

From my application I have to invoke external http service which uses google authentication. It works when I invoke it from browser. I found out that it happens because I have cookie which contains GCP_IAAP_AUTH_TOKEN_ GCP_IAP_UID…
0
votes
1 answer

Writing CSV file from Spring batch to GCP Storage

I want to write the csv file in GCP Storage using Spring batch, I can see we can upload the file after CSV file is created through Batch, But is there any way we can directly write the file into the GCP Storage from Spring Batch
0
votes
1 answer

Consume from Existing GCP pubsub Subscription

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…
0
votes
1 answer

Spring GCP - Datastore performance: Batch processing, iteration through all entity list is very slow

Following code is work really slow, almost 30 second to process 400 entities: int page = 0; org.springframework.data.domain.Page slice = null; while (true) { if (slice == null) { slice =…
0
votes
1 answer

How to change dependency version of spring cloud gcp

For spring boot i can see all the dependency properties names in the docs: https://github.com/spring-projects/spring-boot/blob/master/spring-boot-project/spring-boot-dependencies/pom.xml so i can easily change them from gradle but where can i find…
piotrek
  • 13,982
  • 13
  • 79
  • 165
0
votes
1 answer

Retry settings for subscriber in pubsub/spring-cloud-gcp-pubsub

I have a spring service subcribing for messages from a topic in the google cloud pubsub (pulling). I have tried to set those configuration in my profile config. like this to manage retries of messages: spring: cloud: gcp: pubsub: …
0
votes
1 answer

Google Cloud Memory Store (Redis), can't connect to redis when instance is just started

I have a problem to connect to redis when my instance is just started. I use: runtime: java env: flex runtime_config: jdk: openjdk8 i got following exception: Caused by: redis.clients.jedis.exceptions.JedisConnectionException:…
0
votes
1 answer

Kubernetes Load balancer server connection refused:Default 80 port is working

After deploying a spring microservice ,Load balancer in Kubernetes is not connecting to the mentioned port in Google Cloud Platform. Is there any firewall settings we need to change to connect to the deployed service…
-1
votes
1 answer

Google Cloud Spanner - One to one relationship clarification

In the google spring cloud documentation, it is mentioned that While one-to-one and many-to-many relationships can be implemented in Cloud Spanner and Spring Data Cloud Spanner using constructs of interleaved parent-child tables, only the…
Rocky
  • 391
  • 7
  • 20
-1
votes
2 answers

Google Cloud Datastore: query by list of properties

I'm looking for way how to query in datastore by list of properties. So, i have a simple Entity: @Data @Entity(name = APPLICATION_KIND) public class ApplicationEntity { @Id private String Id; private String appId; private String…
user2738882
  • 1,161
  • 1
  • 20
  • 38
-2
votes
1 answer

Spring boot GCP PUBSUB Consumer application

Can anyone share spring boot GCP PUBSUB subscriber application example, which keep running util externally killed (not rest api)?
1 2 3
9
10