This application is related to the application entitled “Event Processing”, Ser. No. 12/623,595, filed Nov. 23, 2009, the contents of which are herein incorporated by reference in entirety.
An event driven (ED) system is capable of sensing and responding to events by following the decoupled architecture. An Event Processing Network (EPN) is a representation of execution of an ED system. The EPN employs techniques such as detection of complex patterns of a number of events, event correlation and abstraction, event hierarchies, and relationships between events such as causality, membership, and timing, and event-driven processes.
Typically an EPN consists of a set of event processing agents (EPA) or nodes interconnected by communication channels. An EPN executes event processing by creating and selecting dynamic paths among these EPAs based on the need of the business. If there is only one producer of the event and only one receiver of the event, the identification of the path among the EPAs is trivial. The issue is more involved if, based on the event processing requirements, the EPN needs to be modified dynamically. The routing decision at a given node is made based on event information, processing result at the node and/or consulting an external resource such as, for example, an event registry and repository for details.
In the decoupled architecture of the typical ED system, the event producers have no prior knowledge of the event processing agents or event consumers. Typically, an EPN which consists of a set of EPAs may be dynamically wired as and when events arrive or events are received at the EPN. The route taken by any particular event depends on the type of the event, its associated contents and associated metadata. Each of the EPAs participating in the EPN can alter the sequence in which the EPAs are invoked inside the EPN at runtime.
Embodiments of the invention relate to a method, a system and a computer program to construct a hybrid event processing network (hybrid EPN).
According to an embodiment of the invention, a method to construct a hybrid EPN is disclosed. The hybrid EPN has at least one event processing agent (EPA). The hybrid EPN is where a first set of EPAs is defined declaratively and a second set of EPAs is defined dynamically at runtime via an interface.
According to a further embodiment, an Event Router (ER) is defined, and the ER also includes an ER interface.
According to yet a further embodiment, an Event Processing Context (EPC) is defined. The EPC includes a pointer to the EPA of the hybrid EPN.
According to a further embodiment of the invention, an EPA interface is defined for at least one EPA of the hybrid EPN.
According to a further embodiment of the invention, deploying the hybrid EPN, includes the steps of loading the hybrid EPN, constructing an EPN structure, and creating indexes of nodes of the EPN structure. The method of deploying the hybrid EPN further includes the steps of representing an event in a hybrid EPN in response to the event occurrence an event source, receiving a notification from the hybrid EPN based on the event, and publishing the notification in an event channel. The method of deploying the hybrid EPN further includes the steps of propagating the event received within the hybrid EPN, determining a subsequent EPA associated with the event within the hybrid EPN, and propagating the event to the subsequent EPA in the hybrid EPN until the last element of the hybrid EPN is reached.
According to yet a further embodiment of the invention, an event processing network (EPN) includes a first set of EPAs configured declaratively, and a second set of EPAs configured to be dynamically modified at runtime, and a resulting combination of the first set of EPA and the second set of EPA forms a hybrid EPN.
According to a further embodiment of the invention, the hybrid EPN further includes an event router (ER), an ER interface configured to dynamically modify the second set of EPAs at runtime, an event processing context (EPC) configured to include a pointer to the EPA, and an EPA interface for at least one EPA of the hybrid EPN.
A further aspect of the invention discloses a computer program to construct a hybrid event processing network (EPN) is disclosed. The hybrid EPN has at least one event processing agent (EPA) and the hybrid EPN consists of a first set of EPA defined declaratively and a second set of EPA defined dynamically at runtime via an interface.
Yet a further aspect of the invention discloses deployment of the hybrid EPN for event processing. Other aspects and embodiments are also disclosed.
Embodiments of the invention are described in detail below, by way of example, with reference to the following schematic drawings, where
Embodiments of the invention disclose a method and a system to construct and deploy a hybrid EPN for event processing in a decoupled and distributed manner. A hybrid EPN is configured to perform event processing for an ED system.
Event processing is a process of computing that is performed on events. It may include operations such as reading events, reacting to events by performing actions, modifying events, creating events and destroying events. Processing of events can be classified into various categories. An exemplary embodiment of event processing can be “simple event processing”, which includes event transformation, aggregation, splitter, enrichment, filtering, etc. Another exemplary embodiment of event processing may be “complex event processing” and includes relationships between events, for example, event aggregation (a pattern of events implies a higher level event), causality (one event is caused by another), and pattern detection. Yet a further exemplary embodiment of event processing is “stream event processing” that is related to real-time flow of information in and around the enterprise that enables in-time decision making. A type of event processing termed as “intelligent event processing” typically deals with various types of inferences and predictions based on event history and probability.
Analysis of event processing requirements from multiple industry domains, for example including but not limited to Financial Market, Telecom, Healthcare, Automotive, Chemical & Petroleum, Energy, Defense and Retail & Distribution, indicates that a typical solution requires a mix of the different types of event processing capabilities. These capabilities are provided by different sets of software components which may be distributed in the Information Technology (IT) environment.
The hybrid EPN may be defined as partly static (declaratively) and partly dynamic (programmatically), in which nodes can modify the processing path of an event at runtime based on the processing requirements for the event.
In a static EPN, less flexibility exists in terms of changing the flow at runtime. On the other hand, an ED system built with a dynamic EPN may allow the developer to wire EPAs programmatically at runtime but consequently may add programming complexity for the developer as the developers may need to implement the code for wiring even the most basic networks. There is no known method for constructing a hybrid EPN that is simultaneously static and dynamic, which can be modified at runtime based on need and also optimize programming load.
To optimize the programming load, several embodiments of the invention allow a developer to define the EPN declaratively and then allow the user to modify the EPN at runtime through an interface. An example of the interface may be an Application Programming Interface (API). Since this mechanism is generic and is not tied to a particular type of event modeling, several embodiments of the invention create an industry agnostic event modeling and runtime environment (event middleware) for dealing with events and leveraging the multiple processing capabilities which are spread across multiple products. The system is capable of supporting multiple event sources/streams, multiple event type representation and also rules-driven reaction to events.
Several embodiments of the invention may be capable of implementing deterministic completion of event processing across multiple processing agents and may include the capability to change the event processing network by the participating nodes at runtime. This dynamic routing capability to route the event to any processing agent is based on either the event information, processing result at the node and/or consulting an external resource (metadata) like an event registry and repository for details.
Various components of some embodiments of the invention are defined below:
Event Processing Network (EPN)—An EPN defines a network of event processing agents. It is formally represented as a connected graph of nodes and edges as EPN:={N,E}, where ‘N’ represents a node (vertex) in the graph and ‘E’ represents an edge in the graph. Further, the node N in the graph may be represented as N:={P, A, C} where ‘P’ is an event producer (source), ‘A’ is an event processing agent and ‘C’ is an event consumer (sink). The edge E in the graph may be represented as E:={(x, y)|xϵS, P; yϵP, C} which is an ordered pair that connects a source or a processing agent to the consumer or another processing agent.
Event Producer (Source)—An event producer represents a real world entity, for example an event source, which produces events.
Event Processing Agent (EPA)—An EPA defines business logic with which the event is to be processed. An EPA typically processes events based on the logic/rules specified and can also generate new events.
Event Consumer—Event consumers model real world entities that consume the event and perform an action on the event.
Event Channel—An event channel (also referred to as an event topic) is a transport for a particular type of event from event producers to different EPAs and finally to the event consumers.
Event Processing Context (EPC)—EPC is the context in which an event is to be processed. EPC is maintained and used by a container. For each event, a unique EPC may be created and this unique EPC may be associated with the event through the entire life cycle of the event. Any processing node can store or access information in the event processing context.
Event Metadata—Event metadata consists of the event type specifications and event processing rules that are made available to event producers, processing agents and subscribers.
Event Router (ER)—Event router is typically a software component that is responsible for loading the EPN definition and routing the events according to the EPN definition. An interface of the event router (ER interface) is used for routing of the events.
Exemplary computer system 400 can include a display interface 408 configured to forward graphics, text, and other data from the communication infrastructure 402 (or from a frame buffer not shown) for display on a display unit 410. The computer system 400 also includes a main memory 406, which can be random access memory (RAM), and may also include a secondary memory 412. The secondary memory 412 may include, for example, a hard disk drive 414 and/or a removable storage drive 416, representing a floppy disk drive, a magnetic tape drive, an optical disk drive, etc. The removable storage drive 416 reads from and/or writes to a removable storage unit 418 in a manner well known to those having ordinary skill in the art. The removable storage unit 418, represents, for example, a floppy disk, magnetic tape, optical disk, etc. which is read by and written to by the removable storage drive 416. As will be appreciated, the removable storage unit 418 includes a computer usable storage medium having stored therein computer software and/or data.
In exemplary embodiments, the secondary memory 412 may include other similar means for allowing computer programs or other instructions to be loaded into the computer system. Such means may include, for example, a removable storage unit 422 and an interface 420. Examples of such may include a program cartridge and cartridge interface (such as that found in video game devices), a removable memory chip (such as an EPROM, or PROM) and associated socket, and other removable storage units 422 and interfaces 420 which allow software and data to be transferred from the removable storage unit 422 to the computer system 400.
The computer system 400 may also include a communications interface 424. The communications interface 424 allows software and data to be transferred between the computer system and external devices. Examples of the communications interface 424 may include a modem, a network interface (such as an Ethernet card), a communications port, a PCMCIA slot and card, etc. Software and data transferred via the communications interface 424 are in the form of signals which may be, for example, electronic, electromagnetic, optical, or other signals capable of being received by communications interface 424. These signals are provided to the communications interface 424 via a communications path (that is, channel) 426. The channel 426 carries signals and may be implemented using wire or cable, fiber optics, a phone line, a cellular phone link, an RF link, and/or other communications channels.
In this document, the terms “computer program medium,” “computer usable medium,” and “computer readable medium” are used to generally refer to media such as the main memory 406 and the secondary memory 412, the removable storage drive 416, and a hard disk installed in the hard disk drive 414. These computer program products are means for providing software to the computer system. The computer readable medium allows the computer system to read data, instructions, messages or message packets, and other computer readable information from the computer readable medium. The computer readable medium, for example, may include non-volatile memory, such as Floppy, ROM, Flash memory, Disk drive memory, CD-ROM, and other permanent storage. It can be used, for example, to transport information, such as data and computer instructions, between computer systems. Furthermore, the computer readable medium may allow a computer to read such computer readable information.
Computer programs (also referred to herein as computer control logic) are stored in the main memory 406 and/or the secondary memory 412. Computer programs may also be received via the communications interface 424. Such computer programs, when executed, can enable the computer system to perform the features of exemplary embodiments of the present invention as discussed herein. In particular, the computer programs, when executed, enable the processor 404 to perform the features of the computer system 400. Accordingly, such computer programs represent controllers of the computer system.
Step 601 depicts that the hybrid EPN is ready for use. When a physical event occurs at the event source, in step 602 an event producer detects and abstracts the event occurrence at an event source. In step 604, the event producer represents the event and communicates the event to the event factory 606 via 603. Further in step 604, the event producer receives an event notification 607 via 605 from the event factory 606. The event notification 607 wraps the event information within itself. Event factory 606 also generates the EPC. The EPC is unique for a given event and remains associated with the event during the entire life-cycle of the event. The EPC also has a pointer to the next EPA (subsequent EPA) that is required to process the event.
Initially, the pointer is not set. When the EPC is created, the value of this pointer will be set to null. In step 608, the event producer publishes the event notification 607 into the event channel for a given event type. The event channel then forwards the event to the associated ER. In step 610, the event is propagated in the hybrid EPN. In step 612, the subsequent EPA associated with the event within the hybrid EPN is determined. The ER checks with the EPC to find out the subsequent EPA to process the event in the current stage.
In an exemplary embodiment, processing of certain conditions in step 612 is described below:
Having identified the subsequent EPA using the logic of step 612, in step 614 a check is made to determine where the last element (event consumer) in the EPN has been reached. If the subsequent EPA in step 612 is the last element (event consumer) in the EPN, then the step 616 depicts that the event consumer 122 of
An embodiment of the invention further provides a storage medium tangibly embodying a program of machine-readable instructions to carry out a method constructing the EPN, the EPN including the EPA, as described in the various embodiments set forth above and described in detail.
In an embodiment of the invention, no two EPAs or nodes will be communicating directly with each other. The events are pushed through event channels and EPAs receive the events of their interest. It is the responsibility of the next event EPA to pull the events of interest from the specific channels retaining the decoupled behavior of the system. In one or more embodiments of the invention, the initial tree structure that is built may act as an index for each EPA to query on the other available EPAs and accordingly determines the dynamic routing needed to fulfill the need.
The terminology used herein is for the purpose of describing exemplary embodiments and is not intended to be limiting of the present invention. As used herein, the singular forms “a”, “an”, and “the” are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms “comprises”, “comprising”, “includes”, or “including” when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
While exemplary embodiments of the invention have been described, it will be understood that those skilled in the art, both now and in the future, may make various improvements and enhancements which fall within the scope of the claims that follow. These claims should be construed to maintain the proper protection for the invention first described.
Number | Name | Date | Kind |
---|---|---|---|
7092984 | Nishigaya et al. | Aug 2006 | B2 |
7143410 | Coffman et al. | Nov 2006 | B1 |
7321908 | Barabash et al. | Jan 2008 | B2 |
8234329 | Iyer et al. | Jul 2012 | B2 |
8296412 | Secor et al. | Oct 2012 | B2 |
8694576 | Iyer et al. | Apr 2014 | B2 |
20040128329 | Ben-Yitzhak et al. | Jul 2004 | A1 |
20050027845 | Secor et al. | Feb 2005 | A1 |
20050273847 | Patrick et al. | Dec 2005 | A1 |
20050278487 | Blandy | Dec 2005 | A1 |
20080301135 | Alves | Dec 2008 | A1 |
20090070786 | Alves et al. | Mar 2009 | A1 |
20110088035 | Etzion et al. | Apr 2011 | A1 |
20110125825 | Iyer et al. | May 2011 | A1 |
20120192192 | Iyer et al. | Jul 2012 | A1 |
Number | Date | Country |
---|---|---|
2007515706 | Jun 2007 | JP |
2011113566 | Jun 2011 | JP |
20110057070 | May 2011 | KR |
Entry |
---|
BEAWebLogic Event Server—WebLogic Event Server Administration and Configuration Guide; Jul. 2007; 108 pages. |
Guy Sharon and Opher Etzion; Event Processing Network—A Conceptual Model; Sep. 2007; 9 pages. |
Towards a Declarative Language for Parallel and Concurrent Programming, Published : 1995, http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.39.942, Abstract; 3 pages. |
U.S. Appl. No. 13/428,238 Non-Final Office Action, dated Jul. 12, 2013, 9 pg. |
Eguchi, A. et al., “ECJ Event Delivery Framework in Java, for Java,” In Software Technologies Toward the Network Era, Toshiba Review, vol. 53, No. 8, Toshiba Corporation, 1998, 6 pg. |
Number | Date | Country | |
---|---|---|---|
20110126201 A1 | May 2011 | US |