I want to remind you that this post does not follow a chronological order, in the future I may make two new posts, one about an optimistic lock in MongoDB and another about a comparison between the two locking models.
I will use the NoSQL database (MongoDB) together Node.js and Mongoose to explain how to work with a document lock
Enjoy reading! 😃
- What is atomic?
- Explain use case