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:
-
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.
-
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.
-
Webhooks doesnt look to be an option as we can’t create custom events?
-
Any other ideas?
Thank you for your help!