What is the best practice to automatically scan for product tag changes?
We have an app that relies on product tags, and need to get (near) real-time updates to product tags or new products.
Solved! Go to the solution
We have let shoppers buy via text messaging using the product tag. For example "buy <tagid>"
Thus we need to know when a merchant updates his tags or adds a new product+tag.
Currently we look at the updated_at field for each product through a cron script every 2 hours. We'd like to do this every 1-2 mins though, and this approach doesn't really scale when merchants have thousands of products.
This is an accepted solution.
In my opinion WebHooks would fit your use case. From your app you can subscribe to events which happen in merchants store. Checkout, cart, inventory updates, removals etc. Here is a link to documentation: