1
37kviews
Difference between: Stateful and Stateless servers
1 Answer
written 8.7 years ago by |
Parameters | Stateful | Stateless |
---|---|---|
1. State | A Stateful server remember client data (state) from one request to the next. | A Stateless server keeps nostate information |
2. Programming | Statefulserver is harder to code | Statelessserver is straightforward to code |
3.Efficiency | MoreBecause clients do not have to provide full file information every time they perform an operation | Less because information needs to be provided |
4.Crash recovery | Difficult due to loss of information | Can easily recover from failure. Because there is no state that must be restored |
5.Information transfer | Using a Stateful,file server, the client can send less data with each request | Using a stateless file server, the client must,specify complete file names in each request specify location for reading or writing re-authenticate for each request. |
6.Extra services | Stateful servers can also offer clients extra services such as file locking, and remember read and write positions | It does not have to implement the state accounting associated with opening, closing, and locking of files. |
7.Operations | Open, Read, Write, Seek, Close | Read, Write |
8.Example,(Tip: you can draw them outside this two column format) |