Merging multiple network requests

Two options come to mind

  1. To make things simpler, you could avoid running a second operation when a previous operation on the same document is still running
  2. Use optimistic locking to make sure that you don’t overwrite data (if this is an option and if you have a database)