Diagnose by error layer
Read AWS RDS troubleshooting and ElastiCache Serverless connection guidance. Do not follow a public-database workaround when a private connection is the intended architecture.
Inspect configuration without exposing it
Check that required variable names exist in the runtime scope. Build variables do not automatically become runtime credentials. Never print the full environment or a URL with username/password into chat, logs, screenshots or GitHub issues. For browser code,NEXT_PUBLIC_* and VITE_* are public values and must not contain database or provider secrets.
Use SpringWinter’s database Connect view for the correct writer/reader target and explicit tunnel controls where supported. Close a tunnel after use. A reader endpoint is not a writer; read replicas and failover standbys have different roles. AWS resource state can be available while an application still has the wrong credentials or schema.
Plan the connection budget
Calculateweb task copies × processes per task × pool size, then add worker pools, migrations, monitoring and administrative headroom. This is a concurrency budget, not a promise that the database supports that many connections. Check the selected engine/class limit and application transaction duration. A task-count increase can exhaust the database even when CPU looks healthy.
For Valkey, check cluster compatibility, TLS, supported commands and logical database 0. Durable job state and acknowledged results need an explicit recovery design; a cache is not automatically a reliable backup.