MutterCorp
MutterCorpNotice · Notícias
Programação·

Never send twice: an idempotency pattern for workflows that touch the outside world

Problem. A workflow that sends an email, posts a message, creates an invoice or books a slot can run twice for the same item: a webhook is retried, an execution is resumed after a crash, two triggers overlap, or someone re-runs a failed execution. The result is a duplicate email to a customer, a double booking or a second charge. Retry settings do not solve this. Retrying is exactly what creates the duplicate when the first attempt did reach the other system but the reply was lost. The pattern:…

Publicado no Notice. Categoria: Programação.

Notícias sobre o mesmo assunto em outras fontes