Web Requests: GET vs. POST
GET: The request displays the password in the browser URL.
POST: Does not remain in history and does not display the password or on the web server log, not displayed in URL.
Controlling Access to Resources
Lock: Use the database.
Optimistic Concurrency Control
When using locks, there is a possibility of deadlocks.
Solution:
Use timeout: When starting the processing of a request, set a maximum execution timeout. When the timeout expires, the system suspects that a possible problem (such as a deadlock) has occurred.
When the timeout expires, which request should be aborted?
We may end up canceling a request that is almost complete.
Deadlock Prevention
To prevent deadlock, the system can set all the locks the... Continue reading "Web Requests, Concurrency Control & Distributed Systems" »