---
title: EIP Publish Subscribe
category: Integration
language: en
tags:
 - Enterprise Integration Pattern
---

## Intent
Broadcast messages from sender to all the interested receivers.

## Class diagram
![alt text](./etc/publish-subscribe.png "Publish Subscribe Channel")

## Applicability
Use the Publish Subscribe Channel pattern when

* two or more applications need to communicate using a messaging system for broadcasts.

## Credits

* [J2EE Design Patterns](https://www.amazon.com/gp/product/0596004273/ref=as_li_tl?ie=UTF8&camp=1789&creative=9325&creativeASIN=0596004273&linkCode=as2&tag=javadesignpat-20&linkId=48d37c67fb3d845b802fa9b619ad8f31)
* [Enterprise Integration Patterns: Designing, Building, and Deploying Messaging Solutions](https://www.amazon.com/gp/product/0321200683/ref=as_li_tl?ie=UTF8&camp=1789&creative=9325&creativeASIN=0321200683&linkCode=as2&tag=javadesignpat-20&linkId=122e0cff74eedd004cc81a3ecfa623cf)
