13 Alerts, One Checkout Incident: Is Postgres the Cause or Just Another Symptom?

Parny Domain View showing Checkout API and its dependencies, including PostgreSQL and Payments.
Content info
Observability
4
min read
Written by
Parny Engineering
Engineering Team

13 Alerts, One Checkout Incident: Is Postgres the Cause or Just Another Symptom?

When Checkout and Payments page at the same time, a shared database looks guilty. Here’s how to test that hypothesis with three checks, and which signals should make you look elsewhere.

A shared Postgres dependency is a hypothesis, not a verdict. Three checks for checkout incidents, and the signals that weaken the database theory.

This post walks through a representative scenario. It is not a customer incident, and no durations or outcomes are reported.

The page

It's checkout peak and your phone keeps lighting up: Checkout API error rate, Payments latency, a database connection alert, a few host warnings. Thirteen alerts in a few minutes.

Thirteen alerts aren't thirteen problems. Google's SRE book draws a useful line between symptoms and causes. Symptoms are what users see broken, and causes are why it's broken. A failing checkout is a symptom. The first job is to narrow down the cause without locking onto the first plausible one.

What a dependency map tells you, and what it doesn't

In our scenario, Checkout and Payments both depend on the same PostgreSQL database. When two failing services share one dependency, that dependency becomes a first hypothesis. A service dependency map makes that shared dependency visible. You can see the idea in Parny's Checkout demo, which shows Checkout API with its callers and dependencies.

A shared dependency is a hypothesis, not a verdict. A connection shows where a failure could spread, not that it did. Discovered maps can also be snapshots. If yours refreshes daily, a new dependency, failover, or config change from today may not be on it yet. The map tells you where to look first. Current signals tell you what's true.

Sort the alerts first

  • User-facing symptoms: checkout error rate, payment latency, 5xx at the edge.

  • Candidate-cause signals: database connection saturation, lock waits, slow queries.

If the second group is quiet, Postgres is still possible, but it's a weaker starting point.

Three checks before you blame Postgres

1. Is connection capacity actually used up?

Count client connections in pg_stat_activity, filtering on backend_type = 'client backend', and group them by state, not just active. Background workers appear in the view but do not use max_connections slots. Idle sessions, including idle in transaction, hold slots. Some slots are reserved for privileged roles. A pile of idle in transaction sessions can point to the application holding transactions open, not a slow database.

Then check the pool between app and database, whether that's the application's own pool or PgBouncer. Checkout can hit its pool limit and start queuing while Postgres still has free slots. In that case the bottleneck is the pool, not the database.

2. How do the signals line up in time?

Did database signals rise before the checkout errors, alongside them, or after? Timing is useful context, but it doesn't establish causation on its own. Alerts use different evaluation windows and thresholds, so a database alert can fire late even when the database is the cause, and an early application alert may just have a more sensitive threshold.

3. What changed recently?

Look at deploys, schema migrations, connection-pool settings and traffic shape. A Checkout deploy that raises its pool size or ships a slow query can push a healthy database into saturation. The pain shows up in the database even when the change started it. Before a rollback, check the evidence linking the change to the errors, and make sure rollback is safe after any applied schema migration.

What should make you look elsewhere

Checkout errors keep climbing while Postgres looks normal: connections well under the limit, no lock waits and flat query latency.

That doesn't prove Postgres is only a symptom. Database metrics can miss client-side pool exhaustion or a problem on the network path. But it weakens the database hypothesis enough to widen the search to Checkout's own pool and threads, recent deploys and other dependencies.

The trade-off

A dependency map gives the team the same starting picture, but the shared node can be so convincing that people stop collecting evidence against it. Before you start, write down what you'd expect to see if your hypothesis were wrong.

Try this on your own stack

Pick one dependency shared by two or more user-facing services and write down three things:

  1. The signal that would support the hypothesis that this dependency is the cause.

  2. The signal that would weaken it.

  3. Where each signal lives today: a dashboard, a query or a log.

If you can't fill in the second one, that's the gap to close before your next incident.

Sources

Contact Us

For support, feedback, or suggestions, feel free to contact us at support@parny.io.

Contact Us

For support, feedback, or suggestions, feel free to contact us at support@parny.io.

Contact Us

For support, feedback, or suggestions, feel free to contact us at support@parny.io.