More discussion than question:
I read an article entitled "Templates for a Large-Scale JavaScript Application Architecture" and so far it has been pretty noticeable.
The author of this article advocates using the pub / sub architecture using a mediator / controller. There are no real examples, but on the slide show itself ( http://addyosmani.com/blog/jqcon-largescalejs-2012/ ) it protects the use of "Amplify.js".
As with many other pub / sub implementations, Amplify supports message prioritization. My understanding is that with an intermediary, the need to prioritize messages is reduced because the intermediary controls what happens, when and where. Is this a valid point?
Message priorities scare me, because when the application grows (and changes), you can get a bunch of modules, all with different priorities set on their subscriptions, and no real control over what happens. Is this a real concern or just a misunderstanding of how they should actually be used?
backdesk
source share