Types of Web Server
| Stateful | Stateless | |
|---|---|---|
| What |
Remembers client data state(session data, profile image etc) from one request to the next |
HTTP requests from users can be sent to any web servers, which fetch state data from a shared data store. |
| Disadvantage |
Everytime request from same Client has to be sent to same server Adding or removing servers is much more difficult with this approach Challenging to handle server failures |
|
| Advatanges | stateless system is simpler, more robust, and scalable. |