nayaread
HomeFavouritesTopicsSources
HomeFavouritesTopicsSources
NayaRead links to original engineering blogs. All copyright belongs to the respective authors.
Shopify Engineering·Aug 30, 2011·5 min read37

Webhook Testing Made Easy - Shopify

Webhooks are fantastic. We use them here at Shopify to notify API users of all sorts of important events. Order creation, product modification, and even app uninstallation all cause webhooks to be fired. They're a really neat way to avoid the problem of polling, which is annoying for app developers and API providers alike. The trouble with Webhooks is that you need a publicly visible URL to handle them. Unlike client-side redirects, webhooks originate directly from the server. This means that you can't use localhost as an endpoint in your testing environment as the API server would effectively be calling itself. Bummer. Fortunately, there are a couple of tools that make working with webhooks during development much easier. Let me introduce you to PostCatcher and LocalTunnel. PostCatcher PostCatcher is a brand new webapp that was created as an entry for last week's Node Knockout. Shopify's own Steven Soroka and Nick Small are on the judging panel this year, and this app caught their eye. The app generates a unique url that you can use as a webhook endpoint and displays any POST requests sent to it for you to examine. As you might expect from a js contest, the ui is extremely slick and renders all the requests in real-time as they come in. This is really useful in the early stages of developing an app as you can see the general shape and structure of any webhooks you need without writing a single line of code. On the flip side, API developers can use it to test their own service in a real-world environment.   The thing I really like about PostCatcher over similar apps like PostBin is that I can sign in using github and keep track of all the catchers I've created. No more copy/pasting urls to a text file to avloid losing them. Hooray! LocalTunnel LocalTunnel is a Ruby gem + webapp sponsored by Twilio that allows you to expose a given port on your

Read original on shopify.engineering

Score breakdown

  • Technical depth41
  • Practical value30
  • Originality85
  • Writing quality79
  • Source reputation0
  • Recency0
  • External engagement0
  • On-site engagement0

NayaRead shows a summary and links to the original article. The full article is hosted on shopify.engineering.

More like this

Stripe Engineering

Building resilient webhook handlers in AWS: Implementing DLQs for Stripe events

James Beswick·Jan 30, 2025·2 min read
The GitHub Blog

GitHub Actions: Ephemeral self-hosted runners & new webhooks for auto-scaling - GitHub Changelog

Person·Sep 20, 2021·2 min read
Etsy — Code as Craft

Kafka App? There’s a Skill for That

Isobel Scott·Jul 31, 2026·6 min read
Stripe Engineering

Stay within limits: API rate-limit-friendly pattern for Stripe webhooks

Phil Leggetter·Jul 3, 2025·1 min read