My Rules Engine Algorithm is Better than Yours!

on August 3, 2010
Rules Engine Algorithm

Cylinders and Algorithms

Have you ever wondered why you should be using one business rules engine versus another? Granted each product has its own specificities, but the algorithm is a core component that sets them apart. Just as having a V6 vs V8 engine affects your car’s performance, the algorithm affects how your rules service performs.

However, I don’t really care if my car is V6 or V8 as long as it’s comfortable and gets me from point A to point B without issue. Car salesmen will try to convince me otherwise, drawing attention to features that ultimately don’t matter to me. In the business rules world, techies are often similar. They often over-emphasize features of a rules engine that don’t matter for your situation. In fact, some of these feature could actually prevent your from attaining the flexibility you need and that drove you to look for a rules engine in the first place.

I remember when Wenger introduced this ridiculous Swiss army knife with 87 tools! I’m sure the average user only needs a few tools. While this knife might look cool in a display, it may not be the most practical. In general, your primary concern should be whether a given business rules engine works for your situation.

What Matters in a Rules Engine

The Rete algorithm, in particular, caught my attention when I first learned about it years ago. Originally created by Charles Forgy, Rete (and its variants) have become the most popular algorithm in rules engines. I had the benefit of starting my business rules journey as a tools specialist. While I don’t believe that most practitioners need to know how a business rules engine works (as long as it works), I think there are some important concepts to grasp.

First, performance is affected by the number of rules and objects in your process and how they relate to each other. Depending on your situation, a sequential (non-Rete-based) engine may outperform an inference (Rete-based) one. The more complex relationships, the more likely the inference engine will outperform a sequential one. That being said, in most cases, the performance difference between these two types of engines is relatively small. Your time will be much better spent working on optimizing inputs and outputs of your system than shopping for a new engine.

Second, performance is indirectly affected by usability. The easier it is to author, test, and deploy rules, the higher quality the decision outcomes will be. Therefore, you should focus on finding a rules engine that not only can handle your situation but is also convenient to use. Be realistic about what features are worth your time.

Learn more about Decision Management and Sparkling Logic’s SMARTS™ Data-Powered Decision Manager

Search Posts by Category

ABOUT US

Sparkling Logic Inc. is a Silicon Valley-based company dedicated to helping organizations automate and optimize key decisions in daily business operations and customer interactions in a low-code, no-code environment. Our core product, SMARTS™ Data-Powered Decision Manager, is an all-in-one decision management platform designed for business analysts to quickly automate and continuously optimize complex operational decisions. Learn more by requesting a live demo or free trial today.