Okay, here is a case, I have a restlet, which creates orders in netsuite, Now before creating order I check whether the order already exist in netsuite, using PO number I receive in request.
Now lets assume I got two parallel request, and both request contain same data(It is happening ), Now when the restlet will run, both instances of restlet will not find any existing order with that PO number and both will create the order, which is why duplicate orders are being made.
How can I escape or prevent this scenario ?