In the application I'm working on now, several users can edit something at the same time, which means that we need to implement optimistic locking. However, for this application, the editable element is a scientific protocol that contains records from several different tables in the database.
Thus, we want to be able to indicate that the entire protocol was blocked for editing by one user, which leads to my question: would there be a preferred way to do this for making changes at the database level (for example, a table with a unique protocol identifier and check if whether it is blocked) or would it be customary to monitor blocked protocols on the web server itself in memory?
Currently, we expect about 100 users (about 20 at a time) for the application, but this number may increase in the future, so we strive to use the most scalable option.
rjzii source
share