SANJIESAN WORLDJOURNAL / COLLECTIONS / SANJIESAN
SANJIESANTOOLS

SANJIESAN TOOLS / Event automation

A webhook redelivery is not necessarily a new event

Receiving a callback twice does not automatically mean the underlying action happened twice. A provider may redeliver an earlier event. Before connecting a callback to a business effect, inspect the provider’s identity and redelivery contract. GitHub documents that a requested redelivery retains its original delivery identifier. Other services need their own documentation rather than an assumed copy of that rule.

Name delivery identity and business identity

List the documented delivery identifier, event type, action and relevant business object reference. Keep them separate rather than treating an object ID as proof that a callback is new. GitHub’s guide also recommends checking event type and action before processing. Build the discussion around an invented resource-review event, with no real orders, messages or inventory changes. The purpose is to define the contract before an effect can occur.

Describe the repeated fixture’s expected result

Prepare an original fixture and its documented redelivery equivalent. Write that the same recognised event should not blindly repeat the intended effect. Specify what a handler records and what it needs to determine whether the earlier attempt completed. A flag in browser memory is not a durable server-side event record. If the earlier outcome is unknown, define a review or status-resolution route instead of resetting the state and trying the business action again.

Keep acknowledgement separate from effect completion

Define which state means received, which means validated and which means the business effect is confirmed. A provider’s delivery-success indicator need not establish that all downstream work completed. Test the harmless sequence through the implementation’s normal review process, including the repeated fixture. Record the actual provider scope and unresolved failure paths. A robust design makes repetition understandable before enabling any real fulfilment, rather than claiming exactly-once behaviour from a callback counter.

Sources & further reading

LET’S MAKE WHAT COMES NEXT

Have a product, a resource or an idea?

For suppliers, creators and brands. Tell us what you have in mind and where you work.

Start a conversation ↗