Stateful & Stateless Comparison
Failure Recovery.
- A stateful server loses all its volatile state in a crash.
- Restore state using a recovery protocol based on a dialog with clients, or abort operations that were underway when the crash occurred.
- Server needs to be aware of client failures in order to reclaim space allocated to record the state of crashed client processes (orphan detection and elimination).
- With stateless server, the effects of server failure and recovery are almost unnoticeable. A newly reincarnated server can respond to a self-contained request without any difficulty.