Calling a third-party API inside a database transaction is pure madness. The transaction holds its locks for however long the vendor takes to respond, and if the vendor times out after doing the work, so you roll back while they've already processed it.

Sep 22, 2026 · 6:07 PM UTC

4
3
77
5,454
Sort replies: Relevant Recent Liked
Replying to @system_monarch
hanging connection pools because external endpoints stall breaks transaction isolation fast
2
204
Replying to @system_monarch
Pool exhaustion is the part that turns it into an outage: a vendor latency spike takes down endpoints that never touch that vendor. Writing the intent inside the transaction, calling out after commit, and reconciling the gap is the shape that survives.
1
278