mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-05-14 16:58:47 +00:00
932836f68b
* update license plugin * suppress linelength and emptylineseparator rules * fix checkstyle error Co-authored-by: Subhrodip Mohanta <hello@subho.xyz>
layout, title, folder, permalink, categories, language, tags
| layout | title | folder | permalink | categories | language | tags | |
|---|---|---|---|---|---|---|---|
| pattern | EIP Wire Tap | eip-wire-tap | /patterns/eip-wire-tap/ | Integration | en |
|
Intent
In most integration cases there is a need to monitor the messages flowing through the system. It is usually achieved by intercepting the message and redirecting it to a different location like console, filesystem or the database. It is important that such functionality should not modify the original message and influence the processing path.
Diagram
Applicability
Use the Wire Tap pattern when
- You need to monitor messages flowing through the system
- You need to redirect the same, unchanged message to two different endpoints/paths
