<div><br></div>    Hi Orlando, Mauricio, <div><br></div><div>    While the goal of the whole Drools platform is to provide a seamless environment for users to model business behavior using rules, processes and events, it is a misconception to say that it is all executed on RETE. Besides implementing several optimizations on top of the classic RETE algorithm (as designed by Dr. Forgy back in the 70&#39;s), Drools has specific algorithms to which it delegates processing of specific use cases/features (read some fusion and flow features). </div>
<div><br></div><div>    Regarding your question, entry-points are partitions on the RETE network that allow for parts of it to be evaluated concurrently, besides creating separate &quot;name spaces&quot; for facts (scopes if you will). So it does help on reducing the overall load of the matching algorithm. Although, rules are still fired sequentially as to ensure consistency of the working memory. </div>
<div><br></div><div>    Regarding use cases, we have customers that use 24x7 stateful sessions, keeping over 1M facts in memory constantly, with new facts coming into the session and facts expiring from the session all the time. The throughput of such use cases is obviously dependent on the percentage of facts/rules matchings, so it is hard to foresee what you will achieve on your use case without knowing in detail your rules.</div>
<div><br></div><div>    Although, the chosen architecture for your kbase and sessions will obviously have a high impact on the performance metrics you will achieve. Since you mentioned that in your use case every single fact will match and cause rules to fire, and the actions involve heavy operations like database access, I would recommend looking into an &quot;agent&quot; architecture, where you partition your knowledge base into several kbases with related rules. The kbases will operate on the atomic (or &quot;raw&quot;) events and create the composite events that you can feed into entry points of sessions of subsequent kbases, effectively increasing the overall system throughput and simplifying the maintenance of each agent&#39;s kbase in particular.</div>
<div><br></div><div>    If you are used to CEP nomenclature, you know that the above is a simplified description of an EPN. </div><div><br></div><div>    Finally, you asked about the difference between regular facts and events, and basically all events are facts with special &quot;properties&quot;. These properties allow the engine to do some fancy stuff with them, like the use of sliding windows or event lifecycle management (i.e., automatically expiring events). Although, there is nothing wrong in modeling events like regular facts if that best fits your design.</div>
<div><br></div><div>    Hope the above helps,</div><div>        Edson <br><br><div class="gmail_quote">2010/8/17 Orlando Costa <span dir="ltr">&lt;<a href="mailto:orlandoricardo@gmail.com">orlandoricardo@gmail.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><br>
Thanks, I already have seen this some days ago:<br>
<a href="http://www.redhat.com/f/pdf/jbw/amollenkopf_430_applying_drools.pdf" target="_blank">http://www.redhat.com/f/pdf/jbw/amollenkopf_430_applying_drools.pdf</a><br>
<br>
but it does not say the amount of events coming, and the internals are more<br>
about the whole solution itself than about the internal Drools Expert/Fusion<br>
architecture (though is shows good rules examples with Fusion use of<br>
course).<br>
Br<br>
Orlando.<br>
<font color="#888888"><br>
--<br>
View this message in context: <a href="http://drools-java-rules-engine.46999.n3.nabble.com/Drools-Fusion-Performance-and-RETE-algorithm-tp1190098p1193090.html" target="_blank">http://drools-java-rules-engine.46999.n3.nabble.com/Drools-Fusion-Performance-and-RETE-algorithm-tp1190098p1193090.html</a><br>

</font><div><div></div><div class="h5">Sent from the Drools - User mailing list archive at Nabble.com.<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>  Edson Tirelli<br>  JBoss Drools Core Development<br>  JBoss by Red Hat @ <a href="http://www.jboss.com">www.jboss.com</a><br>
</div>