App reviews, troubleshooting, and recommendations
Hi,
I am building a Shopify App using Remix and I am not sure what is the right way to make my app react to external events.
In the app, I fetch all the merchant's products and for each of them, I push a message in an external redis message queue. Then I have a Worker that consume the messages and do some long processing (that's why I use a queue).
At the end of each task, I would like to update the product's metadata. What would be the right way to do this?
Until now, I found a few options but I am not sure which one is the more accomodant:
1) In the external Worker, I instanciate a Shopify Admin Client and authenticate it (token would be passed in the message), then I could update the product's metadata.
2) Use an App proxy - From the external worker I would make an HTTP Request to the shop shopifydomain.com/apps/proxy which would redirect the authenticated request back to my worker endpoint, then I could instanciate a Shopify Admin Client and update the product's metadata.
3) Webhooks doesnt look to be an option as we can't create custom events?
4) Any other ideas?
Thank you for your help!
Update: I went with the 2) and found out it's not possible to test in development mode.
Because the store is in development, there must be a password. When I try to hit a POST myshopifydomain.com/apps/proxy it gets redirected to GET /password
By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024Thanks to everyone who participated in our AMA with 2H Media: Marketing Your Shopify St...
By Jacqui Sep 6, 2024