Is production and development webhook response same?

Is production and development webhook response same?

shikhas20
Shopify Partner
12 0 1

I want to know how Shopify calculates the webhook response time.

If the webhook task is completed within 0.2-sec, After that, how does it take 0.99 sec?

And I want to know whether webhook takes the same response time on development and production?

Reply 1 (1)

ReturnPrime
Shopify Partner
488 67 111

It depends on the type of webhook. Let's say you are saving a product with webhook in your dev environment you might have a product with 5 - 10 variants. But, in the case of real stores, they may have more than 50 variants. What your approach should be here is to push the webhook straight to the queue and send the Shopify 200 response. Once you have the data in the queue you can consume it until it's successfully processed by your code logic.

Mritunjay

Return Prime