I have these two dependencies in my POM file: I’d like to disable these GCP features in certain profiles. I need to test my app locally but GCP keeps getting in the way. Answer Spring depends on auto-configuration when setting up the application. In many cases, it scans the classpath for certain depende…
Tag: google-cloud-platform
Google PubSub and duplicated messages from the TOPIC
How to prevent duplicated msg from happening in Google Cloud PubSub? Say, I have a code that handles the msg that it is subscribed for. Say, I have 2 nodes with the same Service that has this code. Once one has received the msg but not yet acknowledged it, another node will receive the same message. And this …
GKE & Stackdriver: Java logback logging format?
I have a project running Java in a docker image on Kubernetes. Logs are automatically ingested by the fluentd agent and end up in Stackdriver. However, the format of the logs is wrong: Multiline logs get put into separate log lines in Stackdriver, and all logs have “INFO” log level, even though th…