some newbie questions. I'm wondering is my thinking and my architecture correct?
Typical flow would be something like: we have rules together with meta facts. Along comes user with his general facts and request specific facts. For this input we run rules and produce results - calculate some data.
Basically a typical quote calculation, just we are not calculating quotes
Rules may change working memory (cart explosion pattern)
So how would i make this work for multi user environment in a spring web apps? My ideas:
As i unserstand, if my rules are modifying working memory, i cannot reuse StatefulKnowledgeSession for different users (as they bring their own facts). Is there a better approach ? By reading forums and mailing lists i have mixed data about StatefulKnowledgeSession creation. There are threads that state cpu spikes while creating sessions.
Maybe i should be considering pool of StatefulKnowledgeSession and inserting/retracing user facts while keeping meta-facts?