[rules-users] Drools Performance

Sumeet Karawal sumeet.karawal at tcs.com
Fri Apr 29 02:26:57 EDT 2011



Thanks Nicolas. The information is really helpful.

Regards,
Sumeet Karawal

Mailto: sumeet.karawal at tcs.com




                                                                                                                       
  From:       Nicolas Héron <nicolas.heron.java at gmail.com>                                                             
                                                                                                                       
  To:         Rules Users List <rules-users at lists.jboss.org>                                                           
                                                                                                                       
  Date:       04/27/2011 05:37 PM                                                                                      
                                                                                                                       
  Subject:    Re: [rules-users] Drools Performance                                                                     
                                                                                                                       
  Sent by:    rules-users-bounces at lists.jboss.org                                                                      
                                                                                                                       





Hi,
I have done a loyalty system with drools 4 (now they are in version 5) for
a retail company in France 3 years that calculates your discount given your
points, history, etc..
You have to put a lot of data in memory cache (ehcache for example) as the
database is the the weak point in concurrent mode.
As for drools, it was running on a simple bi-core server with 4 GB of ram
and it could handle 10 concurrent calculations without problems. The total
calculation time all inclusive (network connection, database, etc) does
never exceed 2 seconds with about 10000 loyalty rules for 800000 products.
The biggerst shop they have has more than a 100 cash machines that can be
all open on a saturday afternoon.
With a modern server (4-core hyperthreaded=8 cores) and all the rest and
even with more ram (= place for data caching) you can even do much better.
Hope it helps
Regards
Nicolas Héron

2011/4/27 Michael Anstis <michael.anstis at gmail.com>
  If you use a stateless session per transaction you should generally be
  OK.

  How much lag you're likely to encounter is a much harder question to
  answer: how well does your database retrieval scale, would this present
  an issue before the rules engine?

  The rules engine is "just a POJO library" the overall scalability would
  IMO depend upon your application's architecture.


  On 27 April 2011 11:27, Sumeet Karawal <sumeet.karawal at tcs.com> wrote:

   Hi,

   I have an Application where I have to give the discount to user
   according
   to their profile points.

   i.e. when the user logs in, his profile points are fetched from the
   database, and respectively he is given the required discount.

   My concern is how many concurrent users will be supported by the rules
   engine, will there a performance lag if the concurrent number of users
   exceed a certain limit. Please help me on this as I have no idea
   regarding
   this.

   Thanks and Reagrds,
   Sumeet Karawal

   Mailto: sumeet.karawal at tcs.com

   =====-----=====-----=====
   Notice: The information contained in this e-mail
   message and/or attachments to it may contain
   confidential or privileged information. If you are
   not the intended recipient, any dissemination, use,
   review, distribution, printing or copying of the
   information contained in this e-mail message
   and/or attachments to it are strictly prohibited. If
   you have received this communication in error,
   please notify us by reply e-mail or telephone and
   immediately and permanently delete the message
   and any attachments. Thank you



   _______________________________________________
   rules-users mailing list
   rules-users at lists.jboss.org
   https://lists.jboss.org/mailman/listinfo/rules-users


  _______________________________________________
  rules-users mailing list
  rules-users at lists.jboss.org
  https://lists.jboss.org/mailman/listinfo/rules-users

_______________________________________________
rules-users mailing list
rules-users at lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users



=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain 
confidential or privileged information. If you are 
not the intended recipient, any dissemination, use, 
review, distribution, printing or copying of the 
information contained in this e-mail message 
and/or attachments to it are strictly prohibited. If 
you have received this communication in error, 
please notify us by reply e-mail or telephone and 
immediately and permanently delete the message 
and any attachments. Thank you







More information about the rules-users mailing list