# US 9,355,148 B2 · Systems and methods for in-memory processing of events

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 9,355,148 B2
- Document ID: US9355148B2
- Status: Granted
- Kind: B2
- Application number: 14/110,333
- Filed: 2011-04-29
- Published: 2014-01-30
- Granted: 2016-05-31
- Earliest claimed: 2011-04-29
- Assignees: Hewlett Packard Enterprise Development LP
- Applicants: Anurag Singla
- Inventors: Anurag Singla
- Web page: https://patentgrep.com/patent/US9355148B2

## CPC

- G06F 16/2455: Query execution
- G06F 16/23: Updating
- G06F 16/24568: {Data stream processing; Continuous queries}
- G06F 21/552: {involving long-term monitoring or reporting}
- H04L 63/1408: {by monitoring network traffic (monitoring network traffic per se H04L43/00)}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

Systems and methods for in-memory processing of events are provided. A set of unique elements of a plurality of queries is determined. Each query is executed on a defined schedule and time duration. A plurality of events in an event stream are received. The events are filtered using the set of unique elements. For each query, a query result for each filtered event is determined. For each query, in-memory aggregation of the query result of each filtered event is provided.

## Claims

### Claim 1

A method implemented by a physical processor executing machine readable instructions for in-memory processing of events, the method comprising:
determining a set of unique elements of a plurality of queries, wherein each query of the plurality of queries is executed on a defined schedule and a tune duration;
receiving, at a local memory of a computing device, a plurality of events in an event stream;
filtering the plurality of events using the set of unique elements:
for each query of the plurality of queries, determining a query result for each filtered event of the plurality of events; and
for each query of the plurality of queries, providing in-memory aggregation of the query result of each filtered event.

### Claim 2 (depends on 1)

The method of claim 1, wherein the set of unique elements includes a unique computed field.

### Claim 3 (depends on 1)

The method of claim 1, wherein determining the set of unique elements comprises:
determining a computed field of a first query of the plurality of queries and a computed field of a second query of the plurality of queries are identical.

### Claim 4 (depends on 1)

The method of claim 1, further comprising:
for each query of the plurality of queries, storing an aggregated query result in a persistent storage.

### Claim 5 (depends on 1)

The method of claim 1, wherein determining the set of unique elements comprises:
determining a filter tree for a first query of the plurality of queries, wherein the filter tree for the first query includes a set of unique elements of the first query;
determining a filter tree for a second query of the plurality of queries, wherein the filter tree for the second query includes a set of unique elements of the second query; and
combining the filter tree for the first query with the filter tree of the second query.

### Claim 6 (depends on 1)

The method of claim 1, further comprising:
generating a plurality of data checkpoints, wherein each checkpoint includes an in-memory running value of an aggregated query result;
detecting a shut-down of the computing device; and
restoring the computing device to a previous state using a data checkpoint of the plurality of checkpoints.

### Claim 7 (depends on 6)

The method of claim 6, wherein restoring the computing device further comprises:
loading the data checkpoint of the plurality of checkpoints to the local memory of the computing device; and
determining whether the computing device is fully restored to the previous state.

### Claim 8 (depends on 7)

The method of claim 7, further comprising:
obtaining events of interest from a persistent storage where it is determined the computing device is not fully restored;
filtering the events of interest using the set of unique elements;
for each query of the plurality of queries, determining a query result for each filtered event of interest; and
for each query of the plurality of queries, providing in-memory aggregation of the query result of each filtered event of interest.

### Claim 9

A system for processing events, the system comprising:
a persistent store for storage of aggregated query results; and
a computer that includes:
a memory for in-memory aggregation of query results; and
a physical processor that implements machine readable instructions that cause the computer to:
determine a set of unique elements of a plurality of queries, wherein each query of the plurality of queries is executed on a defined schedule and a time duration;
receive a plurality of events in an event stream;
filter the plurality of events using the set of unique elements;
for each query of the plurality of queries, determine a query result for each filtered event of the plurality of events; and
for each query of the plurality of queries, provide in-memory aggregation of the query result of each filtered event.

### Claim 10 (depends on 9)

The system of claim 9, wherein the persistent store includes the plurality of events, and wherein the physical processor implements machine readable instructions to cause the computer to:
select a query of the plurality of queries; and
execute the selected query on the plurality of events in the persistent store.

### Claim 11 (depends on 9)

The system of claim 9, wherein determining the set of unique elements comprises:
determining a computed field of a first query of the plurality of queries and a computed field of a second query of the plurality of queries are identical.

### Claim 12 (depends on 9)

The system of claim 9, wherein for each query of the plurality of queries, an aggregated query result is stored in the persistent store.

### Claim 13

A non-transitory computer-readable medium storing a plurality of instructions to control a data processor to process events, the plurality of instructions comprising instructions that cause the data processor to:
determine a set of unique elements of a plurality of queries, wherein each query of the plurality of queries is executed on a defined schedule and a time duration;
receive, at a local memory of a computing device, a plurality of events in an event stream;
filter the plurality of events using the set of unique elements;
for each query of the plurality of queries, determine a query result for each filtered event of the plurality of events; and
for each query of the plurality of queries, provide in-memory aggregation of the query result of each filtered event.

### Claim 14 (depends on 13)

The non-transitory computer-readable medium of claim 13, wherein the set of unique elements includes a unique computed field.

### Claim 15 (depends on 13)

The non-transitory computer-readable medium of claim 13, wherein the instructions that cause the data processor to determine the set of unique elements comprise instructions that cause the data processor to determine a computed field of a first query of the plurality of queries and a computed field of a second query of the plurality of queries are identical.
