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

Competing consumers #167

Open
johnknoop opened this issue Feb 16, 2017 · 1 comment
Open

Competing consumers #167

johnknoop opened this issue Feb 16, 2017 · 1 comment

Comments

@johnknoop
Copy link

Hi!

I am using Postal.js to write an in-browser demonstration of a messaging system to represent our current dataflow. But one thing I fail to demonstrate is the distribution of load using whats commonly knows as competing consumers.

Say that we have a channel of messages representing cars to be washed. If cars appear more frequent than our subscriber can handle, we want to add a new subscriber. However, we don't want the same cars to end up in both carwashed (which is what happens in Postal when I simply add a new subscriber).

Is this possible using Postal, or maybe using one of the plugins?

Thanks

@pinoniq
Copy link

pinoniq commented Feb 20, 2017

Personally, I don't believe this is what postal is all about.

Look into the Chain of Resposibility pattern.

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

2 participants