fixd icon indicating copy to clipboard operation
fixd copied to clipboard

Create a Broadcaster

Open lantunes opened this issue 10 years ago • 1 comments

The current broadcast-subscribe process with Simple can be improved. Instead of starting a new thread for each subscriber, and having that subscriber thread block on a queue of broadcasts, we can have a single broadcaster thread that starts at startup. Subscribers, with a reference to the Response, register with the broadcaster. This way, the Container can simply create a subscriber and give it to the broadcaster and return immediately.

lantunes avatar Jun 20 '14 09:06 lantunes

There is an issue here, related to the fact that subscribe-broadcast setups can include every() and after().

lantunes avatar Jun 20 '14 12:06 lantunes