DELAPARRA
Index
Color
NL
Category: Core glossary

Webhook

Explained by Updated

What is Webhook?

Webhook: A mechanism where one system sends an HTTP POST notification to another when a specific event occurs — an "HTTP callback". GitHub uses webhooks to notify CI systems when code is pushed. A webhook is an HTTP request one system sends to another when something happens. A payment provider calls your application when a payment succeeds; GitHub calls your CI server when code is pushed. It is a callback over the internet.

Definition source Coders Lingo, CC BY 4.0

Frequently asked questions about Webhook

How is Webhook used in practice?

Webhooks replace polling. Instead of asking every minute whether anything changed, you are told the moment it does.

What should you keep in mind with Webhook?

Handling them well takes care. Verify the signature, so you know the request really comes from the provider. Respond quickly and do the actual work in a queued job, because providers time out and retry. Expect duplicates and out-of-order delivery, and make processing idempotent, for example by storing event IDs you have already handled. Log incoming webhooks, so you can replay or investigate them later.

At a glance

CategoryCore glossary
Explained by
Updated

More Core glossary terms

All terms starting with W

Skills

Download all skills (zip)

Manuals

Related services

Need any help?

Stuck on one of these in your own project? Tell me what you are working on and I will tell you how I would approach it.