postaljs / postal.js

JavaScript pub/sub library supporting advanced subscription features, and several helpful add-ons.

Home Page:http://ifandelse.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Competing consumers

johnknoop opened this issue · comments

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

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

Look into the Chain of Resposibility pattern.