This section explains how the Correlation Identifier EIP can be implemented using WSO2 ESB. The following topics are covered:
Introduction to Correlation Identifier
The Correlation Identifier EIP facilitates a unique identifier that indicates which request message a given reply is for. It enables a requester that has received a reply to know which request the reply is for. For more information, refer to http://www.eaipatterns.com/CorrelationIdentifier.html.
Figure 1: Correlation Identifier EIP
How WSO2 ESB Implements the EIP
WSO2 message flow automatically manages requests sent by a client. It injects a unique identification number into the message context of each request. When the response arrives, the message will be uniquely identified using this number, allowing the requester to distinguish between requests.