Using Shopify Admin API after Long-Running External Worker Task (Remix)

Shopify Partner
2 0 0



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 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!

Reply 1 (1)

Shopify Partner
2 0 0

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 it gets redirected to GET /password