Can my app that is setup on Heroku handle receiving/sending a big amount of webhooks?

Can my app that is setup on Heroku handle receiving/sending a big amount of webhooks?

Redas
Shopify Partner
1 0 0

Hello,
I am creating an app whose main function will be receiving orders/create webhook and sending the order info to another site.
The working setup I've got currently sends the webhook upon creating an order through my server on heroku using HTTPS.
Will heroku reliably handle a heavier amount of webhooks and POST methods, say 100 orders/min?
Is there any way to test?


Reply 1 (1)

Craftware
Shopify Partner
52 0 3

Here's a few questions to help you calculate a rough estimate of the "throughput" or the number of concurrent webhooks your heroku server can handle:

  • When a webhook is received by your server, is it simply forwarding the request or doing some processing before it forwards it to the next server?
  • If there's no processing, what's your forwarding latency to the next server? This will determine how many requests you can serve concurrently in a second (generally the level of granularity used, but you can measure it for a minute or any other time unit you want)
  • If there is processing, what's your processing latency + forwarding latency? This will determine the throughput then

One way to load test, is by calling the function that's executed when a webhook is received by yourself several thousand times and measuring the overall average time for the function to finish execution.

 

This'll give you a lower bound on how fast webhooks will be serviced by your heroku server. Obviously, the more CPU, RAM or network quality you get for the heroku server, the faster the webhooks will be processed.

If you found my post helpful, consider giving it a thumbs up. Creator of https://apps.shopify.com/simple-file-manager - Simplify your file management.