and subscriber must have access to each other • No global dependencies • Low chance of event collisions Disadvantages of Pub-Sub • Impossible to query the global state • Not fully asynchronous ◦ Publisher and subscriber must exist concurrently
mediates between publisher(s) and subscriber(s). They do not have to possess references to each other. • Possible to query the global state Disadvantages of Message Queue • Harder to reason about / debug • Single point of failure • Potential for collisions in queues as application grows
of a component and for smaller applications. Message Queue for passing data into a larger application. NB: The Backbone root level module has Backbone.Events mixed into it. Backbone applications can use the Backbone module as a message queue.