Skip to content
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

Add high-level pubsub API #296

Open
garyburd opened this issue Nov 22, 2017 · 1 comment
Open

Add high-level pubsub API #296

garyburd opened this issue Nov 22, 2017 · 1 comment

Comments

@garyburd
Copy link
Member

Add high-level pubsub API that accomplishes the following goals:

  • Hides receive loop from application, possibly by calling application supplied function to handle notifications.
  • Uses context.Context to cancel subscriptions.
  • Provides way for application to backfill after dialing and subscribing.
  • Uses ping to check for live connection and server.
  • Optional: support using pool to get connections.
  • Optional: subscribe/unsubscribe after running.
@rubenv
Copy link

rubenv commented Apr 28, 2021

For those looking at something like this: https://github.com/rubenv/rrpubsub

Wrote this a long time ago (still works great!) and ticks pretty much all these boxes.

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

No branches or pull requests

3 participants