Skip to content

Files

Latest commit

1c0e0cd · Mar 31, 2018

History

History
This branch is 2202 commits behind iluwatar/java-design-patterns:master.

data-bus

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Nov 28, 2017
Feb 19, 2018
Mar 3, 2017
Apr 16, 2017
Mar 31, 2018
layout title folder permalink categories tags
pattern
Data Bus
data-bus
/patterns/data-bus/
Architectural
Java
Difficulty-Intermediate

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.

data bus pattern uml 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