If I want to send message to Google PubSub and consume message from it.Would you recommend using Spring cloud GCP library or just using Google Cloud Java API.
Can anyone differentiate between these two or what are features spring cloud gcp provide as compared to google cloud pubsub library.
Cloud Pub/Sub API
Spring Cloud GCP
Spring has partnered with Google Cloud in order to allow users to interact with Pub/Sub from its side.
It uses the Google Cloud Java Client for Pub/Sub to interact with Google Cloud Pub/Sub.
Quoting from the documentation:
If you want to use Pub/Sub with Java applications built with the Spring Framework you can use Spring cloud GCP or Otherwise, if you are interested in using only Pub/Sub or using it with some other product that doesn’t surround Spring Framework, the best option is to use any of the Client libraries that Google Cloud Platform offers.