I know that there are many discussions on difference between stateful app and stateless app, and that stateless is what function programming language does, every function call with the same args will return the same value.
Does it mean object-oriented language is not able to make a fully stateless application,since every object will typically have state.
Also, in Java web application, we typically need to trace user state,and which is solved by session. But how to do that in distributed system with in stateless way?
When one system dies, and we need the session can be recognized in some way by another server so that the user state will be transferred. Do we need to put the session in the central database(cache)?But is this way stateless?
What will be some things need to be concerned except session) to before we make a java web application stateless?