A payment API call inside a database transaction held row locks for 30 seconds
When the payment provider slowed down, our checkout stopped for everyone, not just for card payments. Each checkout held row locks on stock and the order while it waited for an HTTP response inside the transaction. How we found it in pg_stat_activity and moved the I/O out.