Hi Alex,
I need to limit read and write access of a particular collection to a single process. … Is there a way in MongoDB/WiredTiger to lock collection reads and writes?
Currently there is no method in MongoDB that will “lock” a collection, since the WiredTiger storage engine was designed to allow more concurrency and not less.
My understanding is, you have multiple application threads and you want to limit processing to only one thread at a time. If your use case permits it, you may be able to implement the locking mechanism using something like a REST interface in front of the database server, which could implement the locking behaviour you require (e.g. using a mutex or a queue).
Best regards,
Kevin