Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • 1
    Possible dupe of stackoverflow.com/questions/9274777/mongodb-as-a-queue-service Commented Sep 23, 2015 at 1:00
  • This question is more about how mongodb encapsulates single queries and updates (in sql they are called transactions) not about how to build a queue (even when it is the goal to build a queue and that was the reason for the question, I want to know how mongod works under the hood) Commented Sep 24, 2015 at 12:53
  • 1
    The short answer is that all updates to a single document are atomic. Have you seen docs.mongodb.org/manual/core/write-operations-atomicity? Commented Sep 24, 2015 at 12:57
  • Thanks, if you write this as an answer, you get an upvote, I searched for transactions but that probably was the wrong wording. Commented Sep 24, 2015 at 13:04