Hi:
"5. Distribute an application to several JVM without configuring
anything
Since the server is totally stateless, you can just start the same
application on several server and load balance between applications at
HTTP level. No need to set up a complex application server cluster or
something alike." --quote from
http://www.playframework.org/manual/contents/fivecoolthings
in real production world, many situations are stateful. user need to
signin and continue others. Apps are deployed on many app servers for
clustering. for example:
assumption:
same app deployed on app server-A and app server-B. with front server
C distribute request to A or B with round-robbin strategy.
1. user load page from server-A and signin.
2. server-A crashed . shutdown... restart...
3. user clicking some page
4. server-C distribute request to server-B
5. and then question is:
How to archive the stateless ? from user experience , it must look
seamless. Nothing happened in server backend.
has there some wiki pages , examples, "Howto write stateless code in
your apps" ,etc, to help us newbie?
looking for more Chinese buddy , go with Play!.