I'm trying to implement a Pessimistic lock on my Spring Boot application running with a MongoDB instance.
The problem:
User A, select the Document ID 123 User A, update the Document, append one field and Save it User B, select the Document ID 123 and need to wait User A finish the Save.
Is it possible do with MongoDB?!
I've found this post. On my tests, it looks like solve the problem.
But the Best approach is to use WebFlux with Mongo. Unfortunately, it's not possible on the project I'm running at this moment
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With