There are some logic in my cloud function that I need to run atomically.
For example, suppose Moralis is running two instances of my cloud code. Now there are two users calling the same function. The first user’s request is sent to the first server instance, and the second user’s request is sent to the second server instance. I need to make sure that the processing of either one’s request finishes before the processing of the other one starts.
How do I achieve this?