Performance differences between drools engine and Kie server, and andro

901 views
Skip to first unread message

desarrollo....@gmail.com

unread,
Sep 6, 2016, 10:35:45 AM9/6/16
to Drools Setup
Currently I'm executing rules in  Kie server that I designed and deployed with kie wb but since you can obtain rules from repository very easily and put it on an embedded rule engine of a Java app, Im wondering if It can be faster firing rules on the embedded engine directly since you don't need to send and recieve objects via REST, or maybe not because Kie server is designed for this purpose.
On some actions I get rules executed in less than one second, wich is acceptable for me, but in harder rules sometimes it tooks many time so I would know how to improve rules execution times, my project structure is like

    Android     >   SEND DATA    >    SERVER APP(JBOSS)     >  OBJECTS      >   RULES (KIE SERVER ) 
   ^  ^  ^   ^                                                                                                                 v OBJECTS v    
   ^  ^  ^  ^   <      <     <      <      <       <    <      SEND DATA          <    <      <             SERVER APP (JBOSS)      
                                                                                                                                   V V V V
                                                                                                                        DB UPDATES/INSERTS

Thanks in advance in case you can give me any tip or explain any performance differences between drools engine and Kie server.
I'm not sure if this is the correct place to ask this, if not I'm sorry

Maciej Swiderski

unread,
Sep 9, 2016, 8:45:59 AM9/9/16
to drools...@googlegroups.com
Obviously using drools as embedded will be faster as there are not additional http calls and time spent on marshalling and unmarshalling. Though if you have distributed architecture (which seems to be the case) advantage of having rules as a service is rather important as you can manage it in isolation and the only contract between other systems are data.

Embedding drools puts on you as app developer to rather extensively learn KIE api which in the end might not be a bad idea anyway. Although it takes sometime to go over all the details that kie server already abstracts from you

Maciej




--
You received this message because you are subscribed to the Google Groups "Drools Setup" group.
To unsubscribe from this group and stop receiving emails from it, send an email to drools-setup+unsubscribe@googlegroups.com.
To post to this group, send email to drools...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/drools-setup/63fe5fd6-1fd3-4a56-90b7-10bc3c903c7f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Mauricio Salatino

unread,
Sep 9, 2016, 8:46:01 AM9/9/16
to drools...@googlegroups.com
Hi there,
Kie Server is just a Drools embeded with the REST endpoints, and of course that adds the overhead of marshalling and unmarshalling your data types (classes). But you will need to do that anyway right? I mean if you are interacting with the rule engine from an Android app you will always need to send a request to a server to deal with the rules there. So the question is where is the delay or the performance issues? Are you measuring how much time does the request to the server takes? and how much does the rules takes to execute? 

You mention "Harder Rules", that might indicate that you are doing something in rules that it is not supposed to be done there, or even that you are not adding enough restrictions to your rules. 

Hope this helps. 
Cheers

--
You received this message because you are subscribed to the Google Groups "Drools Setup" group.
To unsubscribe from this group and stop receiving emails from it, send an email to drools-setup+unsubscribe@googlegroups.com.
To post to this group, send email to drools...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/drools-setup/63fe5fd6-1fd3-4a56-90b7-10bc3c903c7f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
 - MyJourney @ http://salaboy.com
 - Co-Founder @ http://www.jugargentina.org
 - Co-Founder @ http://www.jbug.com.ar
 
 - Salatino "Salaboy" Mauricio -
Reply all
Reply to author
Forward
Message has been deleted
0 new messages