Intermittent connection degradation (Postgres + WebSocket) — internal networking, staging environment
mirceabarbu
PROOP

5 days ago

Project: beautiful-presence

Service: docflowai-app (staging), EU West (Amsterdam), 1 replica

Database: Postgres, same project, connected via internal private network (postgres.railway.internal:5432)

We're seeing intermittent, unpredictable latency and connection failures affecting MULTIPLE

connection types (not just Postgres), suggesting a platform/networking-level issue rather than

an application bug. We've spent significant time ruling out application-side causes — details below.

Attachments

$20 Bounty

1 Replies

Railway
BOT

5 days ago

This thread has been opened as a bounty so the community can help solve it.

Status changed to Open Railway 5 days ago


ankitgelda8
HOBBY

5 days ago

Is the latency from database connection, if so, Increase connection timeout moderately (not huge).

Use smaller DB pool size to avoid connection storms during spikes,

Add retry with exponential backoff + jitter for connection open.

find which Db/query operation is taking more time or failing in the process


Welcome!

Sign in to your Railway account to join the conversation.

Loading...