Rules Engine - pros and cons

前端 未结 12 1215
北荒
北荒 2020-12-02 04:25

I\'m auditing a project that uses what is called a Rules Engine. In short, it\'s a way to externalize business logic from application code.

This concept is entirely

12条回答
  •  渐次进展
    2020-12-02 05:16

    Everybody thus far has been very positive about rules engines, but I advise the reader to be wary. When a problem becomes a little bit more complicated, you may suddenly find that an entire rules engine has been rendered unsuitable, or much more complicated than in a more powerful language. Also, for many problems, rules engines will not be able to easily detect properties that greatly reduce the runtime and memory footprint of evaluating the condition. There are relatively few situations in which I would prefer a rule engine to a dependency injection framework or a more dynamic programming language.

提交回复
热议问题