EIPinCPI – Wire Tap
This week, we’ll study the next system management pattern known as Wire Tap.
When do I use this pattern?
Wire Tap pattern is used to listen into Point-to-Point communication, generally, to measure the performance of communication or to prepare reports based on the content of the message. Wire Tap is implemented using a Recipient List where recipients include the intended receiver and the component that wants to measure performance.
Wire Tap in CPI
For demonstration, we’ll send the orders from Orders Management System to ECC and also send it to the reporting software.
This simple flow exposes the Order Creation in ECC using HTTPS Sender Adapter. The IDoc is created in ECC using IDoc Receiver Adapter. For simplicity, the assumption is that the consumer will send an IDoc.
Here, the OMS to ECC is the main flow, whereas, the Reporting system is tapping into the wire connecting the OMS to ECC.
In this flow, we have added ‘Wire Tap?’ router to toggle sending the inbound IDoc to Reporting System.
EIPinCPI Rating – 7/10
CPI does not provide out of the box component to implement a Wire Tap. The implementation discussed here has a disadvantage that if the Reporting system is causing an error, it will show up in the monitoring. Therefore, the rating for implementation of Wire Tap pattern is 7 out of 10.
Wire Tap is used to inspect the message in Point-to-Point communication.
- Wire Tap Pattern in Enterprise Integration Patterns
- CPI Components
Hope this helps,