Hello Aloysius
My answers are more for a discussion, than for a definite closure on the
related issues, so please, do not take it all literally.
> Q1. If all 10 requests leverage on the same Rete instance, am I
> correct to say that the single instance of Rete can only serve 1 request at
> one time and thus the rest of 9 will need to be queue? Performance issue?
Your assumption is correct, single Rete will perform one action at a time.
However, I do not think your requests will go directly from client to Rete
object - they need to be dispatched at some layer, and it is not up-to-the
request, but up to the dispatcher, to use the Rete efficiently.
> Q2. Can or should we instantiate Rete for each request and resulting
> in 10 independent instances of Rete? Performance issue?
See above. It all depends, on whether your workflow logic implemented in
Jess is 'delopyed' once and reused by all the machinery, or if the
workflow logic implemented in Jess needs to be queried per request.
> Q3. Pertaining to Q3, will performance be improve if we load rules
> specific to type of application (login validation)? Or should we pool a sets
> of Rule engine?
I would suggest pooling service objects (objects, beans, enterprise
beans), and use deployment of logic once, to wire all the interactions,
and place it in some sort of session environment. That would work if only
you need your Jess logic to be used for the overall workflow of the
system.
If you want to use rules and Jess per client request logic, yes, you would
need multiple rete objects, and pooling is not easy, as rete needs to
reinitialize everytime from scratch for particular request.
So it all depends on what you will use Jess code for. I would suggest it
for the overall workflow, and implement request specific logic via some
modular "services", which are wired together statically via via Jess
logic.
hth
Mariusz
---------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
in the BODY of a message to [EMAIL PROTECTED], NOT to the
list (use your own address!) List problems? Notify [EMAIL PROTECTED]
---------------------------------------------------------------------