Change context
A booking notification is sent, but the connection drops before an acknowledgement arrives. The delivery worker schedules a retry.
try { const response = await send({ id: event.id, payload: event.payload }); … } catch { transient = true; } if (transient && event.attempts < maxAttempts) { event.status = 'pending'; event.nextAttemptAt = now + 1000 * 2 ** (event.attempts - 1);Free-form explanation
Why must notification retries preserve the original event ID and payload after a transport error with an uncertain outcome?
Edit the response to try the preview.



