#467 data-bus: README.md: updated for data-bus
This commit is contained in:
parent
b5bdf2d7d7
commit
6b795e52c3
@ -7,24 +7,30 @@ permalink: /patterns/data-bus/ # the permalink to the pattern, to keep this unif
|
|||||||
# both categories and tags are Yaml Lists
|
# both categories and tags are Yaml Lists
|
||||||
# you can either just pick one or write a list with '-'s
|
# you can either just pick one or write a list with '-'s
|
||||||
# usable categories and tags are listed here: https://github.com/iluwatar/java-design-patterns/blob/gh-pages/_config.yml
|
# usable categories and tags are listed here: https://github.com/iluwatar/java-design-patterns/blob/gh-pages/_config.yml
|
||||||
categories: creational # categories of the pattern
|
categories: Architectural # categories of the pattern
|
||||||
tags: # tags of the pattern
|
tags: # tags of the pattern
|
||||||
- best
|
- Java
|
||||||
- ever
|
- Difficulty-Intermediate
|
||||||
- awesome
|
|
||||||
---
|
---
|
||||||
|
|
||||||
## Intent
|
## Intent
|
||||||
Makes your code awesome
|
|
||||||
|
|
||||||

|
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.
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
## Applicability
|
## Applicability
|
||||||
Use the Best Pattern Ever pattern when
|
Use Data Bus pattern when
|
||||||
|
|
||||||
* you want to be the best
|
* you want your components to decide themselves which messages/events they want to receive
|
||||||
* you need to ...
|
* you want to have many-to-many communication
|
||||||
|
* you want your components to know nothing about each other
|
||||||
|
|
||||||
## Real world examples
|
## Related Patterns
|
||||||
|
Data Bus is similar to
|
||||||
|
|
||||||
* [Nowhere](http://no.where.com)
|
* 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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user