Polling versus pushing
Polling means asking every minute whether something changed — wasteful, slow, and usually late. A webhook pushes: when the event occurs, the source system immediately sends a small message describing it.
This is why a signed contract can trigger an invoice within seconds rather than on the next scheduled sync.
What has to be handled correctly
- Verify the signature so forged events are rejected.
- Respond quickly, then process the work in the background.
- Expect duplicates and make handling idempotent.
- Log every received event for troubleshooting and audit.