#Real-Time Stock Synchronization in Medusa with ERP Systems
3 messages · Page 1 of 1 (latest)
i do actually have medusa store(s) sync with ERPs but i didnt do 'real-time' sync. However if you wanted to do it and let say you client want a cheap solution you cam on the ERP(depend) on your erp side configure to emit en event when stock change .
Example . ERP update inventory -> emit stock change -> post to 'somewhere' or medusa on a webhook -> webhook receive data and imidiately update stock.
If you wanted to try hard and have a robust real time sync , then i would advice to have something like an MQ(RabbitMQ, Kafka, AWS SQS) set up so you can have scalling,buffering,retry logic and scalling. you can consider an MQ some sort of Mailbox system/whatsapp system , you send the message MQ store the mssage until someone read/get the message(so that work even they were offline )
i took real time as in real time, not you do a sync with medusa every 5min type of sync(which you could(that what i do lol for the past years)
o of course you could depending on the situation store ERP etc fix this issue, without a complicated real time stock. I do sync a lot of system (no with medusa) but the answer do work with medusa.
You could also on the ERP have a dedicated bin/stock location to the channel you are selling.If you stock is dedicated , you might no need real time, hell depending on some store i can do a sync once per day....