Mongodb – How do you solve concurrency issues when horizontally scaling microservices that are sharing a DB?
Let's assume that you are running two instances of a Tickets Service sharing a MongoDB database. We receive two updates on the same ticket from a client that will be handled concurrently by the Tickets Service instances thanks to load…