Menu

Don't Delete the Ledger Row When the Key Expires. Keep It Marked Expired
πŸ“°

Don't Delete the Ledger Row When the Key Expires. Keep It Marked Expired

DEV Community: backendΒ·AheadKitΒ·14 days ago
#1XZlXQ3T
#devtobackend#devto#dev#provider#answer
Long article (1372 words) β€” no AI summary yet.
Reading 0:00
15s threshold

The retry arrived at 01:14 on a Tuesday, twenty-six hours after the first charge. A customer had paid $29 for a book, order ORD-1042, and the charge had gone through on the first try with key evt-1042. Then the network dropped, the confirmation never reached her, and the order went in again on its own. By then the provider had pruned the key. It keeps keys for 24 hours and then throws them away, and this retry landed two hours past that line. The provider looked at the key, found nothing, and shrugged. My own ledger was supposed to answer instead, but a cleanup job had deleted the row the night before, because its key was gone and the job treats a gone key as a done story. So at 01:14 there were two systems and one question, did this money move, and neither system had anything to say. The provider had forgotten. My ledger had been emptied on purpose.…

Continue reading β€” create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.