I have updated this question to be more specific based on feedback below
Is it possible in a MEAN stack application to have a race condition if two users both make an HTTP request that does the following: read a record, make some changes to the record based on business logic, and then write back to the DB? Or is it impossible due to the single threaded JS execution environment? Based on some comments below it sounds like it is a problem. Is there some way to implement transactions? Or maybe I need to create a job queue or use an actor-based approach. I'm trying to understand how this type of problem is typically solved with the MEAN stack.