Scenario: You are working on an application where multiple users can update customer information stored in a dataset simultaneously. What approach would you use to handle data conflicts and ensure data integrity?

  • Implementing manual locking mechanisms
  • Using automatic conflict resolution mechanisms
  • Using optimistic concurrency control
  • Using pessimistic concurrency control
Optimistic concurrency control involves assuming that conflicts between multiple users are rare, allowing each user to work with the data independently. It checks for conflicts only at the time of saving changes, reducing the likelihood of blocking user actions. This approach ensures better scalability and user responsiveness.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *