What level of locking does Mongodb use?
Global? Level/collection? or Document?
MongoDB uses these levels of locking as standard to prevent two users from updating a collection etc, at the same time.
We do have a Spark.Lock feature which allows for the concurrent sending of requests in the context of a challenge.
We also have Spark.lockKey which creates a lock on an arbitrary key. Whilst the script 'owns' this lock no other script can lock on the same key, and will be blocked until the lock is released. This would be useful for situations where there may be concurrent access required to an object or data.
Let me know if you need anything else.