Currently, we are using Magento 2 with ERP(Oracle for inventory and Logistic) when any stock in/out we are sending through API to Magento for the STOCK update.
Due to the high volume of order, we can’t push all order to ERP on real time so we are running a cron job every 2 Min to push order to ERP and get back STOCK quantity and update on Magento.
In between any inventory update, we are updating in Magento, any cancellation updating Magento.
Due to the time delay, we are facing OVER SALE?
[![enter image description here]]
When the last order will go till that the product will be in stock on web but when order will reach to ERP we get to know stock is 0 so we are getting over SALE
Is there any solution to overcome this?