XML-Based Event Parsing Tree for High-Volume Data Processing
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Existing systems for processing event messages in computer systems require customized programs or scripts, which are inefficient due to frequent maintenance needs and slow execution, making it difficult to manage large-scale commercial computer systems effectively.
Innovation Solution
The method involves loading XML documents specifying event parsing logic into parsing trees, allowing events to be processed independently of the parsing logic, and enhancing event information by supplementing details from related events, enabling efficient event handling and information storage.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Measurement precision
If customized programs are used to process event messages, then processing accuracy is improved, but maintenance complexity increases and execution speed decreases
Solution Approach 1:
The system segments event processing into two independent parts: a compilation phase that creates optimized processing code from XML configuration, and an execution phase that runs the pre-compiled code. This segmentation allows the system to maintain high processing accuracy through precise XML-based event definitions while reducing maintenance complexity by eliminating the need to recompile programs for configuration changes.
Solution Approach 2:
The system performs preliminary compilation of event processing logic into optimized executable code before actual event processing occurs. The XML configuration files are compiled into intermediate representation and then into efficient processing code in advance, so that during runtime, only fast execution is needed without any compilation or interpretation overhead.
2Speed
If customized programs are compiled to generate executable code, then execution speed is improved, but adaptability to new devices decreases
Solution Approach 1:
The system makes the event processing configuration dynamic through XML files that can be modified without recompiling the core processing engine. The compiled code contains the processing logic structure, while the XML configuration contains the adaptable event definitions, allowing the system to adapt to new devices by simply updating XML configurations rather than rewriting compiled programs.
Solution Approach 2:
The XML configuration files serve as an intermediary layer between the compiled processing engine and the actual event data. This intermediary allows flexible adaptation to new devices and event types by modifying XML files, while the compiled engine maintains high execution speed by processing these configurations through pre-optimized code paths.
3Ease of operation
If scripts are used instead of customized programs, then maintenance ease is improved, but execution speed decreases
Solution Approach 1:
The system replaces the interpreted script execution mechanism with a compiled code execution mechanism. Instead of interpreting XML configurations in real-time (like scripts), the system compiles XML into optimized intermediate representation and then into efficient executable code, substituting the slow interpretation mechanism with fast compilation-and-execution while maintaining XML-based ease of configuration.
Data Source
AI summary
In a method and system for collecting event information, XML documents specifying event parsing logic for respective groups of related events are loaded. Representations for the parsing logic contained in the plurality of XML documents are stored in one or more parsing trees. Events are received, including events in a plurality of groups of events. The received events are processed in accordance with the event parsing logic in the one or more parsing trees. The received events are also processed in accordance with stored program instructions that are independent of the parsing logic for the plurality of groups of events. Event information for the received events is stored. The stored event information includes information determined in accordance with the event parsing logic in at least one or more parsing trees.


