Dispatcher – the spider in the web

Think of the dispatcher as the spider in the web that handles messages being passed to it.  You can also think of the dispatcher as a mailman who promises that your message will reach its target destination. A dispatcher lives, for one thing, to dispatch messages to anyone who will listen. There is usually just one dispatcher in a Flux architecture and a typical usage looks something like this:

dispatcher.dispatch(message);

Get Architecting Angular Applications with Redux, RxJS, and NgRx now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.