Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • yes but lets say a user locks the record for payment update, how do you release the lock if the user simply navigates away from the page without completing the transaction? Plus there are multiple pages involved user starts from checkout page and then moves to payment page - in a mvc application how can you implement such a database transaction? When user moves to payment page (1 http get request) you retrieve a lock, user then submit payment on that page (another http post request) how do you maintain a transaction across multiple http request? Commented Jun 3, 2019 at 12:16
  • your reply is focusing on a database level lock what I'm after is more of a application level lock on a record. This "lock" can last seconds, minutes, hours, or whatever max timeout I specify. Commented Jun 3, 2019 at 12:36
  • 4
    @adam78 never hold a lock while waiting on a human. We are not the most reliable of components. Commented Jun 3, 2019 at 12:58