NodeJS Sails FrameWork Lock Critical Code
<p>I want to know how can I defend from multiple request that exec Process
that :
 1.retrive data.
 2.do some logic.
 3.make updates on many tables.</p>

<p>If many users exec the process, I want only 1 request proccessing until finish update data in DB and all another request wait until the process finishes and after the system can continue. Like LOCK or Synchronized</p>