jingc | 12 years ago | on: Flux Application Architecture
jingc's comments
jingc | 12 years ago | on: Flux Application Architecture
jingc | 12 years ago | on: Flux Application Architecture
jingc | 12 years ago | on: Flux Application Architecture
jingc | 12 years ago | on: Flux Application Architecture
To address your second comment: One distinction between the dispatcher and controllers in the MVC framework is that the dispatcher generally doesn't contain any business logic. It's essentially a hub for passing messages through: all sources of changes get funneled through the dispatcher, and the stores listen for those events, but the dispatcher doesn't actually modify or initiate the events. In my talk, I described it as the traffic controller of the system, which might be a more appropriate description.
As things get more complicated, the dispatcher may do more things at the framework level (Bill refers to the dispatcher handling dependencies between stores), but it stays separate from the application logic. In other words, we use the same dispatcher for multiple apps, so it plays a different role from the controller.
Hope that clarifies a bit, I'll see if we can make this distinction clearer in the documentation :)