How to pull pub/sub messages serially
Hi I am using pub/sub for one Job, where my requirement is that subscriber should not ack the message immediately.
I am using below piece of code
ProjectSubscriptionName subscriptionName = ProjectSubscriptionName.of(projectId, subscriptionId);
subscriber = Subscriber.newBuilder(subscriptionName, messageReceiver).build();
subscriber.startAsync().awaitRunning();
subscriber.awaitTerminated();
Code reference Link :https://cloud.google.com/pubsub/docs/publish-receive-messages-client-library#receive_messages
GCP Spring boot error with pubsub “java.io.IOException: Your default credentials were not found
I just recently updated my project from Spring 2 -> 3 and since then I have had issues connecting to pubsub. In the logs I see an error that reads