Continuous Event Processing Fault Handling via Concurrent Thread Segmentation

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Traditional database models are not well-suited for processing continuous event streams, leading to inefficient scaling and loss of data due to single-threaded processing and manual error handling in Continuous Event Processing (CEP) queries.

Innovation Solution

Implementing techniques for concurrent execution of CEP queries by determining concurrency constraints and introducing fault handling mechanisms to allow for customized error management, enabling parallel processing and continuous query execution without halting.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If CEP queries are executed in a single-threaded manner to maintain simplicity and correctness, then query execution correctness is preserved, but system scalability and processing throughput deteriorate

Engineering Contradiction:
Improvequery execution correctnessVSAvoidprocessing throughput
Core Design Contradiction:
ReliabilityVSProductivity

Solution Approach 1:

The patent segments the CEP query execution into multiple independent threads, each capable of processing events concurrently. The query execution is divided into separate thread blocks that can operate in parallel, with each thread handling a portion of the event stream or a specific aspect of query processing, thereby increasing throughput while maintaining correctness through proper segmentation of processing logic

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent introduces intermediary synchronization mechanisms and thread coordination structures that mediate between multiple concurrent threads and the query execution engine. These intermediaries manage thread safety, coordinate access to shared state, and ensure that concurrent execution does not compromise query correctness, thus enabling parallel processing while preserving reliability

Inventive Principle:
Principle #24Intermediary (Mediator)

2Device complexity

If CEP queries are executed in a single-threaded manner to avoid concurrency complexity, then implementation complexity is reduced, but system scalability deteriorates

Engineering Contradiction:
Improveimplementation complexityVSAvoidsystem scalability
Core Design Contradiction:
Device complexityVSProductivity

Solution Approach 1:

The system is segmented into modular thread components with well-defined interfaces and responsibilities. Each thread block is an independent, reusable unit that can be configured and combined to execute different query patterns, reducing overall implementation complexity through modularity while enabling scalable concurrent execution

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent implements dynamic thread management where the number and configuration of threads can be adjusted based on system load, query characteristics, and available resources. This dynamic adaptation allows the system to scale efficiently without requiring complex static configuration, balancing implementation simplicity with scalability

Inventive Principle:
Principle #15Dynamics

3Manufacturing precision

If CEP queries halt execution upon encountering errors to maintain data accuracy, then data processing accuracy is preserved, but data loss increases

Engineering Contradiction:
Improvedata processing accuracyVSAvoiddata loss
Core Design Contradiction:
Manufacturing precisionVSLoss of substance

Solution Approach 1:

The patent segments the event stream processing into isolated thread blocks with individual error handling. When an error occurs in one thread or processing segment, only that specific segment is affected and can be restarted, while other segments continue processing without interruption. This segmentation limits the impact of errors to minimal portions of the data stream, preserving overall processing accuracy while preventing widespread data loss

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The system implements preliminary error recovery mechanisms that prepare for potential failures before they occur. Thread blocks are designed with built-in error handling and restart capabilities, allowing them to recover from errors automatically without halting the entire query execution. This preliminary preparation ensures that processing accuracy is maintained while minimizing data loss through proactive error management

Inventive Principle:
Principle #10Preliminary action

4Reliability

If CEP queries are restarted manually after errors to recover execution, then query execution can be resumed, but operational efficiency deteriorates

Engineering Contradiction:
Improvequery execution resumptionVSAvoidoperational efficiency
Core Design Contradiction:
ReliabilityVSProductivity

Solution Approach 1:

The patent implements self-service error recovery where the CEP query execution system automatically detects, handles, and recovers from errors without requiring manual administrator intervention. Thread blocks with error handling capabilities automatically restart processing when errors occur, and the system self-manages the recovery process, maintaining reliability while dramatically improving operational efficiency by eliminating manual restart operations

Inventive Principle:
Principle #25Self-service

Data Source

PatentUS9262258B2Handling faults in a continuous event processing (CEP) system
Publication Date: 2016.02.16 ORACLE INT CORP
  • US9262258B2 patent drawing
  • US9262258B2 patent drawing
  • US9262258B2 patent drawing

AI summary

The concept of faults and fault handling are added to the execution of continuous event processing (CEP) queries. By introducing fault handling techniques to the processing of CEP queries, users are enabled to instruct a CEP query processor to respond to faults in a customized manner that does not necessarily involve the halting of the CEP query relative to which the faults occurred. For example, a fault might be due to a temporary problem. Under such circumstances, the CEP query processor can be instructed to ignore the fault and allow the execution of the CEP query to continue relative to the remainder of the event stream. Alternatively, if the fault is due to a problem with the CEP query itself, then the CEP query processor can be instructed to propagate the fault through the query processing system until the fault ultimately causes the problematic CEP query to be halted.