What is the benefit of using Spring integartion as sender and receiver for gcp pubsub message? i was publishing the messages using service activator as described here:
https://spring.io/guides/gs/messaging-gcp-pubsub/
Then i have found that GCP cloud library has also support for Publisher in java language as example here: https://cloud.google.com/pubsub/docs/publisher
So i am confused because i see Publisher is more simpler and seems easy to manage retries in case of failure and it has stop to save resources.
Then what is the benefit of using spring Integration in this case? We are not yet on production so is it worth to refactor it and use GCP pubsub direct?
Any best practice or explanation how to choose best library are welcome please.