I have subscribed to a Google pub/sub topic from my spring boot application with subscription.What happens if my service is down and There is some data which is pushed to pub/sub topic. Will i receive data to my application from the subscription when my service is up?
One of the main reasons to use Pub/Sub as a messaging bus between services is because it will store messages when the subscriber is unavailable and then deliver them once the subscriber comes back online. As long as the subscriber comes back up before the expiration period passes, then messages published within the message retention duration that were not already acknowledged by the subscriber will be delivered.