Message Producer Type Validation System

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Messaging systems lack strong typing, leading to potential type errors when messages are sent, as they rely on implicit understanding between producers and consumers, and existing solutions like code generation are inefficient when type definitions change.

Innovation Solution

Implementing a method for message type validation at the message producer before sending, which sets and checks message type parameters against defined destination settings, ensuring messages are valid before being sent, using a system with a processor, administrator component, message creator, and validation component.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If message type validation is performed at the message producer before sending, then type errors are detected early and invalid messages are prevented from being sent, but the complexity of the message producer system increases

Engineering Contradiction:
Improvemessage type correctnessVSAvoidmessage producer complexity
Core Design Contradiction:
ReliabilityVSDevice complexity

Solution Approach 1:

The validation component performs message type checking before the message is sent to the consumer. Type parameters are set and validated in advance at the message producer, preventing type errors from propagating through the messaging system. This preliminary validation ensures that only correctly typed messages are transmitted, improving reliability without requiring changes to the messaging infrastructure.

Inventive Principle:
Principle #10Preliminary action

2Reliability

If code generation is used for type checking, then type validation can be performed, but the system requires regeneration and relinking of all stubs when type definitions change

Engineering Contradiction:
Improvetype checking capabilityVSAvoidsystem maintenance efficiency
Core Design Contradiction:
ReliabilityVSProductivity

Solution Approach 1:

The validation component is attached to the message producer and performs type validation autonomously using type parameters that are already available in the messaging system. When type definitions change, the validation component automatically uses the updated type parameters without requiring regeneration or relinking of code stubs. This self-service approach maintains type checking capability while eliminating the maintenance burden of code generation.

Inventive Principle:
Principle #25Self-service

3Ease of operation

If message filtering is performed at the consumer using selectors, then messages can be filtered at receipt time, but the message producer remains unaware of filtering and cannot validate message types before sending

Engineering Contradiction:
Improvemessage filtering capabilityVSAvoidmessage type validation
Core Design Contradiction:
Ease of operationVSReliability

Solution Approach 1:

The validation component acts as an intermediary between the message producer and the messaging system. It intercepts messages before they are sent, validates them against type parameters, and either allows them to proceed or generates an error report. This intermediary validation works in conjunction with consumer-side filtering, providing comprehensive type checking at both production and consumption points without interfering with the existing selector-based filtering mechanism.

Inventive Principle:
Principle #24Intermediary (Mediator)

Data Source

PatentUS8112666B2Message producer with message type validation
Publication Date: 2012.02.07 INTERNATIONAL BUSINESS MACHINE CORPORATION
  • US8112666B2 patent drawing
  • US8112666B2 patent drawing
  • US8112666B2 patent drawing

AI summary

Message type validation occurs at a message producer before a message is sent to a message destination. A message producer system includes an administrator component, which stores message type parameters associated with a message destination. A message is created for the message destination and a validation component at the message producer system checks the created message for conformity with the stored message type parameters for the message destination. An error is reported if the message type does not conform to the stored message type parameters associated with the message destination. The validation component checks the created message for conformity after a publish call by the message producer system and before a send call and, therefore, prevents an invalid or non-conforming message from being sent.