Message Broker Correlation Identifier Routing
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Current message communication systems face inefficiencies in request-response communication, particularly due to the need for synchronization between sender and receiver using Remote Procedure Call (RPC), and the lack of awareness in message systems to perform request-response communication, leading to wasteful processing and resource consumption.
Innovation Solution
An intermediary service is introduced that modifies response messages with a correlation identifier, allowing efficient routing of responses to the corresponding producer application by using the correlation identifier as a binding key, thereby avoiding unnecessary processing and parsing of irrelevant messages.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Reliability
If RPC is used to enable request-response communication, then the producer can wait for the response from the consumer, but both the sender and the receiver must sync which increases system complexity
Solution Approach 1:
The patent introduces a message broker as an intermediary component that manages the request-response communication between producer and consumer. The broker receives request messages from producers, routes them to appropriate consumers, and then routes response messages back to the corresponding producers using correlation identifiers. This intermediary approach eliminates the need for direct synchronization between sender and receiver, resolving the technical contradiction by maintaining reliable communication while reducing system complexity.
2Productivity
If the message system is not aware of request-response communication, then it cannot perform targeted routing, but this leads to wasteful processing and resource consumption
Solution Approach 1:
The patent applies preliminary action by having the producer include a correlation identifier in the request message before sending it to the broker. The broker then uses this pre-provided identifier to automatically route the response message back to the correct producer. This preliminary inclusion of routing information enables the message system to perform targeted routing without requiring awareness of the request-response pattern, thereby improving communication efficiency while avoiding wasteful processing.
3Loss of information
If all response messages are routed to all potential producers, then no information is lost, but unnecessary processing and resource consumption occur
Solution Approach 1:
The patent applies local quality by making each response message tailored to its specific destination using the correlation identifier. Instead of broadcasting all responses to all potential producers, the broker uses the unique correlation identifier embedded in each request to route each response precisely to the single corresponding producer. This ensures complete information delivery while eliminating unnecessary processing and resource consumption associated with broadcasting to multiple recipients.
Data Source
AI summary
A message system may use publish-subscribe techniques to process messages for several applications. In situations where an application requires an output, it may need to wait for a response message back from a service via the message system. However, in certain implementations, the message system may not be able to determine that a particular message involves request-response communication. The efficient response communication techniques described herein receive the response message having a routing key and a payload including a correlation identifier and then generate a second response having a routing key that includes the correlation identifier. This message may then be efficiently routed to an application based on the correlation identifier.


