* Adding support for maven assembly plugin to generate executable jar with all dependencies in built * Merge branch 'master' into issue-989 # Conflicts: # abstract-document/pom.xml # pom.xml * Adding maven assemly plugin for projects with name A * Update in format as per checkstyle, i.e. Spcae in place of tab with size of 2 * batch set - 2 having all project with B and C * issue-989 d-e-f * fixing eip pom and adding g-h-i-l-m-n Skipping naked object as it seems it doesn't have main method, will consider this at end * Adding for O and P projects Skipping Object-Mother as we don't have main method for same.
layout, title, folder, permalink, categories, tags
layout | title | folder | permalink | categories | tags | |
---|---|---|---|---|---|---|
pattern | Data Bus | data-bus | /patterns/data-bus/ | Architectural |
|
Intent
Allows send of messages/events between components of an application without them needing to know about each other. They only need to know about the type of the message/event being sent.
Class diagram
Applicability
Use Data Bus pattern when
- you want your components to decide themselves which messages/events they want to receive
- you want to have many-to-many communication
- you want your components to know nothing about each other
Related Patterns
Data Bus is similar to
- Mediator pattern with Data Bus Members deciding for themselves if they want to accept any given message
- Observer pattern but supporting many-to-many communication
- Publish/Subscribe pattern with the Data Bus decoupling the publisher and the subscriber