Keep HTTP Calls Outside the Checkout Transaction
A slow shipping request should not hold stock locks. Commit a pending order and durable delivery intent, then recover the external step explicitly.
Start with the state your caller can observe. Check the stored result and choose a recovery path with a clear database and application boundary.
A slow shipping request should not hold stock locks. Commit a pending order and durable delivery intent, then recover the external step explicitly.
Two webhook handlers can both pass an existence check. Use a unique database claim, bind it to the payload, and commit it with the business change.
Separate schema ownership from normal application access. Test that the runtime account can do its work and cannot change the tables or security policies.
Follow a checkout result through the commit and HTTP response. Handle rollback and a lost commit response as different outcomes.
Keep an interactive SQLite importer resumable and bounded. Commit batches with their progress and give foreground writes an explicit busy policy.
Give failed import rows durable identities, bounded diagnostics, and a repair path. Make the batch's atomicity and replay behaviour explicit.