DEV Community

Cover image for Understanding Webhooks

Understanding Webhooks

Nicole Ohanian on February 28, 2022

When using a web application, have you tried to change the information being displayed on the web page you're on? Even if you don't realize it you'...
Collapse
 
drhyde profile image
David Cantrell •

The biggest problem with webhooks is testing them. In a typical scenario you'll be developing your code on your machine, which is usually on a NATted wifi network or on a corporate VPN. How, then, does the third party's server trigger the webhook? They can't open a connection to you.

I find ngrok invaluable for working around this problem. Several other similar services are available of course, but IME none of them are as easy to use.

Collapse
 
krusenas profile image
Karolis •

Hey, check out webhookrelay.com, built it many years ago especially for webhook testing and getting them to internal services:)

Collapse
 
faisal_dea5d4bba2b0763eab profile image
Faisal • • Edited

Great explanation! Webhooks are especially useful for keeping applications updated in real time without constantly polling for changes. A similar concept can be applied to a digital map like Faisal Town Map, where updates to new roads, blocks, routes, or nearby facilities could automatically reflect on the map as soon as the underlying data changes. This makes the experience more dynamic and keeps information up to date.

Collapse
 
ronaldochannel profile image
Ronaldo Channel • • Edited

Great explanation webhooks are one of those concepts that become much easier to understand with practical examples instead of theory alone. The comparison with polling is especially helpful for developers building event-driven applications. In a similar way, having well-organized information makes researching real estate much easier. Faisal Hills Plot for Sale Islamabad provides detailed information about plot categories, block locations, development progress, road connectivity, and community features, helping buyers compare options before making a property decision.