Hi Aloysius again
> Q1. But before I can load the new rules, it will wise to clear all
> facts and rules? Any performance issue if we keep loading and unloading
> facts/rules?
Yup, that may be slow - the use precompiled binary representations and
caching should be workable.
> Q2. How feasible would it be if we intend to keep all patterns in a
> RBDMS?
> Q3. I'm pretty concern with the RHS/response because it can vary from
> modifying existing facts, JDBC call, other class call etc. Should calls just
> mentioned (calling method from other classes) be part of the Jess script or
> part of the Java code? Performance issue with too much external call by
> Jess?
Calling Jess from Jess is not less expensive than calling Java from
Jess. However, calling Java from Java is _a lot_ faster than anything Jess
can do, so, put all the expensive but static logic inside Java
code. Interpreting stuff from the scripts will be the slowest solution,
executing the native Java the fastest, and reusing precompiled binary
blobs of Jess structures somewhere in the middle.
> Q4. How feasible would it be to store RHS/action in a RBDMS?
see above.
> Q5. Possible pitfalls?
Will see later ;o) But, the general pattern is, that for better
flexibility you sacrifice performance - if you have everything in Java,
all is maximum fast but also maximum static and not flexible.
If you have all in scripts, you have maximum flexibility, but minimum
performance. And if you use scripts, but precompile them, you are
somewhere in the middle. If you could reuse precompiled scripts, and
cache them and reuse them, it may be fast enough. I do not know what sort
of reponse time you are looking at, and whatsort of logic you want to put
into your services. If it is something complicated and time consuming,
Jess as scripting may be fast enough - but if it is simple and fast
requests, wiring all statically on 'deployment' time may be the only
solution.
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]
---------------------------------------------------------------------