Hans Gilde’s weblog

Applying the “Two Types of EP” to recent blog posts

Posted in eventprocessing by Hans on January 7, 2010

To help illustrate my discussion of Two Types of Event Processing, I will analyze two recent blog posts.

First blog post: an EP application

Take a look at the post So, What is This CEP Good For? by Marco Seiriö of ruleCore. Among other things, this post illustrates an awesome looking Event Processing application called FleetNotice.

At first glance, it may not be obvious how FleetNotice breaks down between Detection Oriented and Operations Oriented Event Processing. Hopefully I am about to shed some light.

FleetNotice receives events that show the periodic global position of couriers, as they navigate Manhattan. One assumes that the events come from cell phone GPS monitoring. As Marco explains: when you have hundreds of such moving objects, it is simply not practical for a person to watch them all.

So Marco has developed a system for watching all this moving data and trigger business actions using rules. To quote his example rule:

Alert me if Couriers Ben, Jerry and Mr Smith diverts from their designated route for more than five minutes and they take more than 20 minutes between the waypoints (40 minutes is ok if it’s between 4pm and 6pm on fridays, except last friday of month), but only on working days. Also alert me if the courier does not arrive before 6pm to it’s destination and alert me also if he does not leave the starting point before 1pm

From this rule, we can see evidence of both Detection Oriented and Operations Oriented Event Processing. But it may be surprising to learn that the rule statement itself is purely Operations Oriented Event Processing. The Detection Oriented Event Processing is hidden under the covers. This is a common scenario for a mix between Detection Oriented and Operations Oriented Event Processing.

The above rule statement is Operations Oriented because it takes in events with clear business meaning such as “courier diverts from their designated route for more than five minutes” and “courier takes more than 20 minutes between waypoints” and “courier does not arrive before 6pm”.

The focus of this rule is not on analyzing data to produce these informational events. The focus is on using these well-defined events to trigger some business activity: an alert.

So maybe now it is clear where the Detection Oriented Event Processing is hiding. It is logic developed by Marco (and/or his team) to take in a bunch of GPS signals and convert them to events like “courier diverts from their designated route for more than five minutes”.

Here are two brief points about why the distinction between Detection Oriented and Operations Oriented matters. There is a lot more to say on this topic, which I may get to in the future.

First of all, in this case the Detection Oriented and Operations Oriented Event Processing are developed by different groups. The Detection Oriented Event Processing is under the covers and developed by Marco. The Operations Oriented logic is developed by the business user (or business IT person). When Marco developed the Detection Oriented logic, he had some idea of how it would be used, but was not aware of every possible business scenario. When the end-user develops the rules, they could not care less about how the data is processed, they specify rules using business-level events.

If there is a bug in the Detection Oriented logic, the result will be an incorrectly detected business situation or activity.

If there is a bug in the Operations Oriented logic, the result will be that the wrong business situation or activity was referenced or the wrong business response was triggered.

Second, the Detection Oriented logic handles more complex edge or outlier cases than the Operations Oriented logic. The Operations Oriented Event Processing handles events that follow a nice contract. You will only get an event signalling “courier does not arrive before 6pm” under very specific conditions, which have direct meaning to the business. In contrast, the Detection Oriented Event Processing gets events that follow a much looser contract (the couriers may do what they are supposed to, but they may not). The Detection Oriented logic imposes a higher level of understanding and order on this chaotic set of GPS events.

Second blog post: a high level description of EP

Now take a look at 9 Predictions for the Future of Event Processing by Mark Palmer of StreamBase. This post is at a higher level, so to speak, than the post above. Meaning that it doesn’t go into technology specifics, but sticks to the broad concepts. Now StreamBase recently won very prestigious recognition as a technology pioneer. Since Mark is the CEO, we can be sure that Mark is very good at communicating the value of Event Processing.

Analyzing only the middle section of this post, titled What’s the problem? Why event processing? What is event processing? we see a very eloquent description of Detection Oriented Event Processing. Mark describes high-speed data analysis, which pulls relevant information (some might call knowledge) from a mass of moving data.

Do notice the contrast between Mark’s description and Operations Oriented Event Processing. Mark does not talk about what gets done with this information once it is detected. The eventual business activities that are triggered by this kind of high-speed data analysis – is the domain of Operations Oriented Event Processing.

Of course, it should go without saying that Mark is a pioneer in Event Processing and is fully aware of all of its aspects. This post clearly articulates the Detection Oriented aspect, and he’s written more than enough about the Operations Oriented aspect in the past.

About these ads

13 Responses

Subscribe to comments with RSS.

  1. [...] This post was mentioned on Twitter by Tom Ablewhite, StreamBase Systems. StreamBase Systems said: RT @tablewhite: Reading Hans Gilde's: Applying the “Two Types of EP” to recent blog posts [mentioning StreamBase]http://snipurl.com/u0dzv [...]

  2. Mark Palmer said, on January 8, 2010 at 7:37 pm

    Hey Hans –

    Yes, I get where you’re coming from, but as I just commented (and just read) your original classification / taxonomy about these types of event processing, I’m not really sure the point behind the classification yet?

    But since you commented on my post, I’ll respond to one point. Yes, it’s true that my recent observations are high-level; the intention of that post is to help people who are completely new to event processing understand the broad concept, and the high-level examples of high-speed detection tend to be easy ones for new people to “grok” – the whole bear-eating-the-salmon metaphor passes my “mom” test – that is, she kind of gets what we do when I tell her that story.

    But just because I use that example, it doesn’t mean that “Operations Oriented Event Processing” isn’t something StreamBase (or all the CEP platforms) do. I’m quite sure all the commercial platforms support this use case. Clearly StreamBase and Apama do, two businesses that I know well.

    Cheers,

    - Mark Palmer, CEO, StreamBase

  3. Hans said, on January 9, 2010 at 10:26 am

    I know that StreamBase has features for this stuff. But saying that every platform supports every scenario isn’t helpful to the practitioner. Platforms have strengths and weaknesses for various use cases.

    The mom test applies to messages of a high level – as I said, you’re clearly communicating the value. But high level is not everything – there’s got to be a practical understanding too.

    I think you’ll see that this particular taxonomy provides a good framework for practical analysis of many aspects of EP, including business value, architecture, requirements and the EP platform.

    It is probably not the only starting point, but it’s the best starting point that I know of.

    The boundary is not always clean between the two types. Flexibility in thinking is key to making good software.

    And it’ll never be the case that one EP platform is good for all use cases of a certain type or bad for those of another type.

    This breakdown is just a beginning; a way to start the practical analysis of different types of EP applications.

  4. other guys coverign this said, on May 13, 2013 at 6:26 pm

    This design is spectacular! You most certainly know how to keep a reader entertained.
    Between your wit and your videos, I was almost moved
    to start my own blog (well, almost…HaHa!) Great job.
    I really enjoyed what you had to say, and more than that,
    how you presented it. Too cool!

  5. Continue said, on May 16, 2013 at 1:24 pm

    I’m truly enjoying the design and layout of your site. It’s a very easy on the eyes
    which makes it much more pleasant for me to come here and visit more often.
    Did you hire out a developer to create your theme? Fantastic work!

  6. Edwin said, on May 16, 2013 at 9:24 pm

    When tomorrow’s bread is not assured from today’s labor, with day
    to day grim experiences, one is inclined to go
    for criminal options. She said she saw four songs
    and then left because we sounded like a Black Flag cover band.
    You’ll be surprised at to how much this small step can help you through your healing process.

  7. naughty clothes said, on May 17, 2013 at 7:47 am

    Hi, of course this article is genuinely good and I have learned lot of things from it about blogging.
    thanks.

  8. Acquiring The Ideal Resorts said, on May 20, 2013 at 3:01 pm

    Excellent blog here! Also your web site loads up very fast!
    What host are you using? Can I get your affiliate link to your host?
    I wish my web site loaded up as quickly as yours lol

  9. Cheap Hotels within Portugal said, on May 20, 2013 at 3:52 pm

    Why users still make use of to read news papers when in this technological
    globe everything is presented on net?

  10. The Very best Resorts In Sydney said, on May 21, 2013 at 8:30 am

    Heya i’m for the first time here. I came across this board and I in finding It really helpful & it helped me out a lot. I’m hoping
    to provide one thing back and aid others such as you helped me.

  11. Desiree said, on May 21, 2013 at 5:20 pm

    This is really interesting, You are a very skilled blogger.
    I have joined your feed and look forward to seeking more
    of your great post. Also, I’ve shared your website in my social networks!

  12. Last second Resort Booking said, on May 22, 2013 at 5:34 am

    If some one desires to be updated with most recent
    technologies afterward he must be go to see this website
    and be up to date every day.

  13. Appreciation to my father who stated to me on the topic of this
    webpage, this weblog is really awesome.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: