[rules-users] Drools scalability in home automation scenarios

Wolfgang Laun wolfgang.laun at gmail.com
Fri Nov 16 11:51:38 EST 2012


On 16 November 2012 16:14, riri <irina.adam at gmail.com> wrote:

> Thank you for your response! Yes, you are right, there will be some rules
> that are absolute and available to all the users so a single knowledge base
> approach would make sense. From what I can gather from the Drools Expert
> documentation you can have a knowledge agent that can update the knowledge
> base if new resources are added. In this way one can add new rule files,
> please correct me if I'm wrong on this one.
>

I guess the best way would be to create a KB for each session, loading the
compiled generic rules and adding the freshly compiled individual ones. NP.


>
> My first question is, is there a mechanism to differentiate between the
> rules defined by each user and not have all of them apply? For example if
> one user has a rule that turns on the heating when the temperature drops
> below 16 degrees and another for 18 degrees?


This would be a typical example for adding a parameter fact to provide the
threshold,
with the generic rule simply referring to that threshold.



> I am still trying to figure out
> how the knowledge base, sessions and the working memory work together so
> please bear with me.
>
> My second question is, if rule execution is possible in a separate manner
> depending on the user and everything could be done using sessions, how
> would
> drools perform when having 100 or more of these sessions working
> concurrently on the same knowledge base?
>

You should consider separate knowledge sessions for each user. Then it's a
question whether your system is powerful to cope with that many clients. As
for
the cycles required for reasoning I can't imagine any home having so much
stuff
to reason about, except, maybe, something in the category of the Palace of
Versailles
or one of these towers in Abu Dhabi? ;-)


> Again, extremely grateful for all your input, time and patience!
>

NP. Cheers
-W

>
>
>
> --
> View this message in context:
> http://drools.46999.n3.nabble.com/Drools-scalability-in-home-automation-scenarios-tp4020855p4020864.html
> Sent from the Drools: User forum mailing list archive at Nabble.com.
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20121116/34dc5e43/attachment.html 


More information about the rules-users mailing list