Request/Reply Pattern
Learn Request/Reply Pattern (Core Messaging Patterns, Integration & Messaging Patterns) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.
What is Request/Reply? Request/Reply (also called Request-Response messaging) is how you get a synchronous-feeling response over an inherently asynchronous messaging channel. The requester sends a message on a "request" channel and also tells the responder where to send the answer; the responder processes the request and publishes a reply message back to that address. The Two Pieces That Make It Work • ReplyTo address - the requester includes the destination it wants the reply sent to (often a temporary, per-request queue). • Correlation ID - a unique ID attached to the request, echoed back in...