Asynchronous Message Error Detection With Broker Feedback
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Existing systems face difficulties in efficiently detecting and recovering from errors in asynchronous communication scenarios due to the decoupling of producers and consumers in event-driven architectures, where real-time error propagation is challenging.
Innovation Solution
A system is implemented that automatically identifies error messages in asynchronous communication by comparing messages against a message repository, using embeddings and unsupervised learning to cluster messages, and generates mock messages with a Large Language Model (LLM) to simulate error scenarios, allowing error messages to be returned to the producer for handling.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Reliability
If asynchronous communication is used to decouple services, then system reliability and tolerance to failures are improved, but error detection and recovery become difficult
Solution Approach 1:
The patent introduces a message broker as an intermediary component that sits between producers and consumers in the asynchronous communication system. The broker is responsible for routing messages, managing message queues, and providing error detection capabilities. This intermediary allows the system to maintain the decoupling benefits while adding error detection functionality without requiring direct communication between producers and consumers.
Solution Approach 2:
The patent implements feedback mechanisms where the message broker monitors message processing status and provides error information back to producers. Error messages are propagated through the broker, which maintains mapping information between consumers and producers. This feedback loop enables error detection and recovery while preserving the asynchronous decoupled architecture.
2Difficulty of detecting and measuring
If producer information is inserted in each message for error propagation, then error detection capability is improved, but message complexity and handling burden increase
Solution Approach 1:
The message broker serves multiple functions: it routes messages between producers and consumers, manages message queues, provides error detection, and handles error propagation. By consolidating these diverse functions in a single intermediary component, the system avoids increasing message complexity while maintaining comprehensive error detection capabilities.
Solution Approach 2:
The patent extracts error detection and propagation logic from the producer and consumer components and places it in the message broker. This separation allows producers and consumers to focus on their core functions without handling error propagation complexity, while the broker专门 handles error detection using its stored mapping information.
3Reliability
If consumers and producers handle communication scenarios for error propagation, then error recovery is improved, but core function performance deteriorates
Solution Approach 1:
The message broker provides self-service error detection and propagation capabilities using its internally stored mapping information. The broker independently handles error detection and routing without requiring producers or consumers to implement error handling logic, allowing them to maintain optimal performance for their core production and consumption functions.
Solution Approach 2:
The broker acts as a mediator that handles all error propagation responsibilities, shielding producers and consumers from error handling complexity. This intermediary approach allows error recovery functionality to be implemented without burdening the core producer and consumer components, preserving their performance.
Data Source
AI summary
Systems and methods include acquisition of an asynchronous message from a message producer, the asynchronous message associated with a message consumer, determination that the asynchronous message matches a stored message, identification, in response to determining that the asynchronous message matches a stored message, of a stored error message associated with the stored message, and return of a return message based on the stored error message to the message producer.


