Mediation Node Message Update via Interface Deduction
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Mediation processing nodes in messaging systems face challenges in determining which message elements need to be accessed and updated, as they typically receive the entire message and must parse it to identify required and updated values, leading to inefficiencies and the need for specific code for different message formats.
Innovation Solution
A method where the mediation processing node deduces the message values to be updated from its declared interface, using metadata to locate and obtain the required values, allowing for efficient updating and storage of only necessary message elements.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Reliability
If the mediation processing node receives the entire message and parses it to identify required and updated values, then the mediation can access all message content, but the processing efficiency decreases and resource usage increases
Solution Approach 1:
The interface declaration is created beforehand with explicit annotations that describe which message values will be read and updated. This preliminary specification allows the runtime to prepare only the necessary message elements before mediation processing, avoiding the need to parse the entire message during execution.
Solution Approach 2:
Instead of processing the entire message at once, the message is segmented into only the necessary elements that will be accessed or modified. The runtime extracts and passes only these specific elements to the mediation, reducing processing overhead and improving efficiency.
2Reliability
If the mediation processing node receives the entire message, then all message content is available for processing, but the need for specific code for different message formats increases complexity
Solution Approach 1:
The interface declaration with annotations serves as a universal contract that works across different message formats. The same mediation code can process various message types as long as they conform to the declared interface, eliminating the need for format-specific handling code.
Solution Approach 2:
The annotated interface acts as an intermediary layer between the mediation and the message. It translates between the mediation's abstract requirements and the concrete message structure, allowing the mediation to remain format-agnostic while still accessing specific message values.
3Reliability
If the mediation processing node parses the entire message to locate required values, then all message elements can be accessed, but the time required for processing increases
Solution Approach 1:
The location information for required message values is determined in advance through the interface declaration and annotations. This preliminary determination allows the runtime to directly access the needed values without performing time-consuming parsing operations during mediation execution.
Solution Approach 2:
Only the necessary message values are extracted and passed to the mediation based on the interface declaration. This extraction approach eliminates the need to parse the entire message, reducing processing time while ensuring all required values are obtained.
Data Source
AI summary
A mediation processing node computer processor updates a message. A message is received for processing by a mediation processing node computer processor. It is deduced from a declared interface of the mediation processing node computer processor that one or more message values will be updated by the mediation processing node computer processor as a result of its processing. The interface of the mediation processing node computer processor is then used to obtain the one or more updated values and the updates are then applied to the message.


