background preloader

Links

Facebook Twitter

Design Patterns Library. Esper - Complex Event Processing. How do I detect N events within X seconds?

Esper - Complex Event Processing

The next statement outputs the count of events within the last 3 minutes: select count(*) from MyEvent.win:time(3 min) By adding a having-clause the query only outputs a result when at least 5 events occur within 3 minutes: select count(*) from MyEvent.win:time(3 min) having count(*) >= 5 By adding a filter the engine looks for events that match a certain criteria: Complex event processing. Event processing is a method of tracking and analyzing (processing) streams of information (data) about things that happen (events),[1] and deriving a conclusion from them.

Complex event processing, or CEP, is event processing that combines data from multiple sources[2] to infer events or patterns that suggest more complicated circumstances. The goal of complex event processing is to identify meaningful events (such as opportunities or threats)[3] and respond to them as quickly as possible. These events may be happening across the various layers of an organization as sales leads, orders or customer service calls. Complex Event Processing & Real Time Intelligence.