I'm creating a private desktop application for my Shopify store and was wondering what the best way to continuously pull new order data down from their API? While the application is open do I query the API for new orders at a set interval? Is there a way to use webhooks with a desktop application (not a server)? Any suggestions would be appreciated!
You definitely need a server to receive webhooks, but if you don't want to manage a server, you can use a serverless solution such as Amazon EventBridge (https://aws.amazon.com/eventbridge/).
For example, you can do something like the following:
- EventBridge receives your order data through the Shopify webhook.
- The order data is added to an SQS queue (https://aws.amazon.com/sqs/).
- Your desktop app connects to the SQS queue to receive the order data.
Here is a tutorial from Shopify that explains this approach:
Didn't find the answer?
Our community is visited by hundreds of Shopify development professionals every day. Ask your question and get a quick answer for free.
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.