Fintech Lab
Lesson 12Accrual and engineering patternsAdvanced
Idempotency at the ledger boundary
How webhook retries silently double-book your fintech.

Your provider's webhook delivers a ₦10,000 deposit event. Five seconds later, due to a network blip, the provider retries, same event, same payload. Your ledger inserts it AGAIN. The user's wallet shows ₦20,000. This is the bug every fintech ships in v1 and discovers in production. The fix is one column with a unique constraint, but you have to know to add it.

Fintech Lab is a free, interactive lab for fintech engineers. Real ledger, your own sandbox, engineering patterns from production. See all 85 lessons.

Search lessons

Type to find any of the 85 lessons. Press Enter to open.