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

Broadcasting #4

Open
herecydev opened this issue May 25, 2016 · 4 comments
Open

Broadcasting #4

herecydev opened this issue May 25, 2016 · 4 comments

Comments

@herecydev
Copy link
Owner

Would be nice to have the ability to send a message to all subscribed channels, based on the message type.

@herecydev
Copy link
Owner Author

herecydev commented May 25, 2016

A few ideas about expected behavior. If a broadcast was being made, but some of the channels threw an exception should we:

  1. Retry all the channels, therefore guaranteeing at least once delivery on each message channel
  2. Return to the caller, therefore guaranteeing at least once delivery per message
  3. Retry the failed channels until they pass or are no longer operational, therefore guaranteeing exactly once delivery per channel

@smudge202
Copy link

I vote for 3

@danielcirket
Copy link

Option 3 for me, providing there is a way to recover from sending the message infinitely because a channel keeps failing, I guess the assumption would be that they should go non-operational if they keep failing?

@herecydev
Copy link
Owner Author

@danielcirket Read this. I'm not a fan of second guessing the channels. As from the sender's point of view they are just exceptions with no context, from the channel's point of view they might be transient errors that are recoverable

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

3 participants