Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

A Guide to Rules Engines for IoT: CEP Engines

DZone 's Guide to

A Guide to Rules Engines for IoT: CEP Engines

Learn more about CEP engines and the rules engine.

· IoT Zone ·
Free Resource

What Are CEP Engines?

Although part (and predecessors) of stream processing engines, Complex Event Processing engines deal with events in a slightly different (and better) way than their bigger and younger siblings.

We see CEP engines being deployed in edge computing nowadays, where locality, low latency, and low hardware footprint are important. CEPs are a good fit whenever a low footprint is required but don’t scale well since all event processing happens in-memory.

What Are Some Examples of CEP Engines?

WSO2, Litmus Automation, and Foghorn are some examples of vendors offering CEP rules engines for edge computing at the time of writing this blog.

Can You Build Complex Logic With a CEP Engine?

Arguably, high order logic constructions (Combining multiple non-binary outcomes, Majority voting, Conditional executions) are possible, but with a lot of difficulty and coding effort since CEP engines are not designed with these features in mind.

Can You Model Time Efficiently in the Application With a CEP Engine?

Often, CEP engines have built-in operators such as time windows and temporal event sequences integrated into their query language. CEP engines, like Stream Processing engines, can’t cope with async and sync events in the rule. They also have difficulty dealing with the “past” — meaning invalidating events after a given period of time. Compared to Stream Processing engines, however, they often have better capabilities for pattern matching, which enables better anomaly detection at runtime, hence we give them a better score, as this is one of the stronger points of CEP engines.

Are CEP Engines Adaptable?

Flexibility is a weak point of these rules engines but, compared to stream processing engines, it ranks better for extensibility since one can still imagine better API integration capability, mostly in the actionable part (send SMS if something goes wrong).

Are CEP Engines Easy to Operate?

Similar to stream processing engines, in anything beyond simple use cases, operability is extremely hard to achieve since templating, updating rules per device, or version updates are very difficult.

Are CEP Engines Scalable?

CEPs are a good fit when a low footprint is required but suffer from scalability issues because of the lack of distributed computing capabilities and because they process all data in-memory.

This is an excerpt from our latest Benchmark Report on Rules Engines used in the IoT domain. You can have a look at a summary of the results or download the full report over here.

Topics:
rules engine ,cep ,cep engine ,rules

Published at DZone with permission of

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}