How do I deal with concurrent changes in a web application?
问题 Here are two potential workflows I would like to perform in a web application. Variation 1 user sends request server reads data server modifies data server saves modified data Variation 2: user sends request server reads data server sends data to user user sends request with modifications server saves modified data In each of these cases, I am wondering: what are the standard approaches to ensuring that concurrent access to this service will produce sane results? (i.e. nobody's edit gets