--
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/7da3d371-0818-478a-81ac-a57e6085c8ab%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi there,yes you can use the KIE Server as another microservice (or several instance of the kie-server to load balance).For use case 1 and use case 2 you can use a new instance of the KieSession to process each request.The documentation means that you need to make sure that you don't compile all the rules everytime that you recieves a request, and for that reason if you have the compiled rules, creating a new KieSession for processing your invoices will be super fast.HTH
On Mon, Nov 21, 2016 at 10:12 AM, Anitha Naduvath <anad...@gmail.com> wrote:
HI experts ,Mine is a microservice (REST based stateless endpoint )running on the cloud. Our service mainly deals with Invoices , where the Items of the Invoice need to be evaluated against a set of rules .We are now evaluating Drools to implement these business rules .I have the following query with respect to Multi-threading / Parallelism options in Drools.Use Case 1 :Our service receives an invoice with say 15000 Items , to be processed . We need to evaluate the same set of rules for each of the items. It is Ok to process each item in parallel . How do I achieve this in Drools ?Use case 2:Our service is called from 100 different end users . Such users may have invoices ranging from 1 item to 15000 items in the invoice . How do I make sure that the I maintain the same response time for all ? Should I use KIE Execution Server which is a standalone exceution server ? In such a case, is this server something like another microservice ? . So, will there not be performance issues in making a REST call from my service to the KIE Execution Server ? On the other hand , if I embed the runtime in my application, then will it mean that I kind of tie the runtime One to One to the user request ?What is the best approach for the runtime considering both the use cases here ?Also, can you explain what is meant in section 1.3.1.3 of the Drools documentation :
--
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...@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/7da3d371-0818-478a-81ac-a57e6085c8ab%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.