← All selected work

RELIABILITY ENGINEERING / FailureLab

Break the payment flow. Then prove the recovery.

A controlled environment for duplicate webhooks, delayed delivery and interrupted processing.

MY ROLEDeveloper
PROJECT STATUSReproducible local demo
TOOLSTypeScript · Express · SQLite · React
FAILURELAB / RECOVERY BY DESIGN
event_001 ↘event_001 →event_001 ↗
01FULFILLMENT
Repeated delivery. One intended effect.

The problem

A payment handler can look successful while leaving duplicate fulfillment or unfinished work in storage. I wanted a demonstrator where failures could be introduced deliberately and outcomes checked independently.

Engineering decisions

01

Compare vulnerable and corrected behavior

Built duplicate-delivery, delay and crash scenarios with vulnerable and corrected implementations, giving six variants to inspect.

02

Persist the work atomically

The corrected path writes the payment and durable job in one transaction. Recovery workers apply idempotent fulfillment so retries do not repeat the effect.

03

Check records, not reassuring messages

Outcome checks inspect persisted payment, order and job records. Worker limits and bounded execution keep the experiment controlled.

TRY THE IDEA / CLIENT-SIDE ILLUSTRATION

Send the same event again.

This small illustration shows the intended effect of idempotency. The repository contains the actual storage and crash-recovery experiments.

1deliveries of the same event
1fulfillment effects

What came out of it

All 11 backend tests passed in the latest local review. The application demonstrates recovery patterns using synthetic payments; its previous AWS demonstration deployment has been retired.

Scope & current limits

This is a bounded single-host engineering demonstrator. It does not process real payments or claim production-scale payment certification.

Explore the source ↗Next: Recon Engine →