Sync Conflict Resolution

When 2 users upload the same files or modify the same files, there will be conflicts.

We can use Optimistic Locking to resolve this

One way we can do is we can

  1. Process the request that goes through first.
  2. When the second request process the same thing, the second request will need to resolve conflicts.

Pasted image 20230906104306.png

Pasted image 20230906104313.png

We then show the option for the second users to overwrite the file or something