Skip to main content

What is a webhook, and how is it different from polling?

Automation workflows · Beginner 3

Short answer

Polling means your workflow asks a service every few minutes whether anything changed. A webhook is the reverse: the service sends an HTTP request to your URL the moment an event happens, such as a payment succeeding. Webhooks are faster and use fewer requests, but you must secure the endpoint and handle repeats.

Deeper answer

With a webhook you get a URL from your automation tool and register it in the other service. Security matters: verify the signature the sender includes, use HTTPS, and never trust the payload blindly.

Senders retry when your endpoint fails, so the same event can arrive twice; make the workflow idempotent by checking an event ID before acting. Polling is still fine when a service offers no webhooks or near-real-time is not needed.

What a strong answer covers

Answer it out loud in the mock interview about 1 min

Follow-ups to expect

Common mistakes

Learn it

Webhooks

Today's AI turns are used

Lessons, roadmaps, videos, practice cards and the code playground stay free with your account, with no limit.