I have a WebApp developed using JSF2.3 with Primefaces 7.0. As per the requirement, I have to make it compatible with horizontal scaling.
I have googled around and found some of the sources:
Horizontal scaling of JSF 2.0 application
(From this question, I'm really interested to know these 2 points:
- Instruct JSF (via configuration) to store its state on an external resource (e.g. another server running a very fast in-memory database), then access that resource from the JSF servers when application state is needed?
Question: is this possible?
- Instruct JSF (via configuration) to be stateless?
Question: is this possible? )
and
Why JSF saves the state of UI components on server?
along with
https://auth0.com/blog/horizontal-scaling-jsf-applications-with-spring-session/
(but I really don't want to use Spring Session unless there is no other way)
Just help me to understand how can I achieve this?