PDA

View Full Version : Web flow in a load balanced environment?



plocke
Jul 7th, 2005, 05:08 PM
I have done some initial reading (no actual use yet) on SWF but have not come across an answer to this question. If I missed it, feel free to just link me to an answer, or let me know if I'm off base.

Being stateful, I am wondering if it is possible to use it in a load balanced environment in which a user is not stuck to a single application server and may not hit the same JVM on subsequent requests. Is it possible to maintain the required state in a 3rd party / user defined distributed cache such as Coherence, or Tomcat 5 distributed sessions, etc?

thanks,
Peter

klr8
Jul 20th, 2005, 09:12 AM
By default SWF will store the flow executions (the 'state') in the HTTP session. However, this is fully pluggable using the FlowExecutionStorage strategy. So you can basically store the state anywhere you like, e.g. on the client (see ClientContinuationFlowExecutionStorage).

Erwin