session - Drools design: when to use stateless or stateful -


in exploration of finding out when use stateful or stateless session in drools, next information useful:

it seems clear when use stateless vs stateful session.

but became confused because of following information here:

in link people discuss switching stateful session stateless session. gathering information, conclude seems possible switch stateful session stateless session, avoid possible memory problems (?), by:

  • adding facts list
  • add list stateless session execute command (or either add global).
  • obtain different facts in rules query
  • add results global variable or variables able obtain results stateless session

which seems bad practices me, avoid use of stateful session.

my questions are:

  • is previous conclusion correct?
  • why want switch stateful sessions stateless sessions? there memory problem in kie , when these occur?
  • i think real difference between stateless , stateful sessions comes fact whether validate (in stateless session) data or add value (in stateful session) data. design issue, not technical issue. correct?


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -