title: How to manage multiple users from taking same action on a data record in a web application?
body: <p>i'm stuck for a specific implmentation. We have a web application backed by spring framework which displays list of records to the users. We have a requirement where-in, when user open the record we want to restrict and lock a single record being actioned by logged user for a specific time. i.e. if multiple users are trying to action the same record, request for user which action first is processed rest all should not be able to process it.</p>
  <p>The records is just a mongodb collection with an URI file from our persistance and only one  user at time user can edit this file.</p>
  <p>We have looked at locking technique with redisson for lock the file when the user open the record and request the file via frontend, but not sure if this is a correct way to do it.</p>
  <p>Another idea was manage the the session with redis, but this solutions not prevent the read/write actions to the file.</p>
  <p>The persistance storage is backend by minIO</p>