The simplest approach is for each request to contain a unique ID, such as a message ID, and for the response’s correlation ID to be the request’s unique ID. This relates the reply to its corresponding request. However, when the requestor is trying to process the reply, knowing the request message often isn’t very helpful. What the requestor really wants is a reminder of what business task caused it to send the request in the first place so that the requestor can complete the business task using the data in the reply.
- Chapter 5. Message Construction
- from Enterprise Integration Patterns: Designing, Building, and Deploying Messaging Solutions
- Publisher: Addison-Wesley Professional
- Released: October 2003
Share this highlighthttp://www.safaribooksonline.com/a/enterprise-integration-patterns/17044/