Skip to content

How to ensure that PubSub subscription remains alive? #2155

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
AqlaSolutions opened this issue Feb 28, 2025 · 0 comments
Open

How to ensure that PubSub subscription remains alive? #2155

AqlaSolutions opened this issue Feb 28, 2025 · 0 comments

Comments

@AqlaSolutions
Copy link
Contributor

AqlaSolutions commented Feb 28, 2025

You have this comment in your code:

  // in theory, it's possible to unsubscribe a subscriber that's still alive, if they are unreachable for a short time,
  // but regardless, application level logic is always required to ensure the subscription remains alive anyway.

How exactly the application logic is expected to ensure that the subscription remains alive? Should we resubscribe every minute if there are no incoming events? Should we detect missed events, implement a storage for them and a way to re-request them?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant