<br>   That is the most common use case and Drools was designed to work like that: one or more shared kbases and multiple non-shared sessions. The only catch is that you need to fine tune what is the ideal rate of sessions/kbase in your use case, because the creation of a session locks a kbase, but after a session is created, all operations are concurrent. In some uses cases 200 sessions per kbase is fine, but in some cases the ideal rate could be 10, 100 or 1000 sessions per kbase. You need to check what works best for you.<br>
<br>   Edson<br><br><div class="gmail_quote">2010/3/31 alim <span dir="ltr">&lt;<a href="mailto:audrey.lim@it-vision.com">audrey.lim@it-vision.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<br>
Hi everyone,<br>
<br>
I&#39;m trying to find a solution to the following situation:<br>
<br>
- KnowledgeBase with approx. 1000 rules<br>
- Approx. 200 users (hence 200 simultaneous sessions) whereas each session<br>
might most likely have different values for the working memory facts<br>
<br>
So let&#39;s say we create a KnowledgeBase (with those 1000 rules) and out of<br>
this one KnowledgeBase we create for each existing session its own<br>
StatefulKnowledgeSession.<br>
Now, how expensive (memory-wise) are these StatefulKnowledgeSessions? Is it<br>
reasonable to have more than just a few StatefulKnowledgeSessions?<br>
Or is there an other, better approach?<br>
<br>
Thank you very much!<br>
<font color="#888888">--<br>
View this message in context: <a href="http://n3.nabble.com/StatefulKnowledgeSessions-tp688305p688305.html" target="_blank">http://n3.nabble.com/StatefulKnowledgeSessions-tp688305p688305.html</a><br>
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>
</font></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>