// troubleshooting guide · upstash
Upstash ERR Max Concurrent Connections Exceeded
- Status
- Workaround available
- platforms:
- AWS Lambda, Vercel Functions, Node.js
- updated:
- November 15, 2026
- reports:
- 2
- Method
- how we research
RUNBOOK · upstash/max-concurrent-connections4 FIXES
// quick answer
Too many TCP clients are open at once, usually because each serverless invocation opens a new ioredis connection and never closes it. Create and quit() the client per request, or switch to the REST-based @upstash/redis client, which has no connection limit problems.
Most likely fix: Close connections in serverless handlers
How to fix it
// try these in order, the most common fix is first
FIX 1Close connections in serverless handlers
- 01Create the client inside the handler: new Redis(process.env.REDIS_URL)
- 02Run your commands
- 03Call await client.quit() before returning (adds roughly 4ms)
Did this fix it?FIX 2Switch to the REST client
- 01npm install @upstash/redis
- 02Use Redis.fromEnv() with UPSTASH_REDIS_REST_URL / TOKEN
- 03HTTP calls don't hold connections
Did this fix it?FIX 3Find leaks in long-running apps
- 01Reuse one shared client per process instead of one per request
- 02Check CLIENT LIST counts against your instances
Did this fix it?FIX 4Ask for a higher limit
- 01Email support@upstash.com with your database ID and peak connection count
Did this fix it?
Symptoms
New clients can't connect and logs show '[ioredis] Unhandled error event: ReplyError: ERR max concurrent connections exceeded', typically under load on AWS Lambda or Vercel functions.
Why it happens
- C-01Serverless functions each open a TCP connection that stays open
- C-02Client created at module scope and never closed across many cold starts
- C-03Connection leaks in long-running workers
// this guide also covers
- upstash max concurrent connections exceeded
- err max concurrent connections exceeded
- upstash too many connections lambda
Still not working?
If Upstash keeps failing, you're not alone. See every Upstash problem users report or the alternatives people switch to.
Have an app idea? Our small team builds any software: web and mobile apps, games, desktop, AI tools. Price agreed together.
Talk to usThe same problem in other apps
All not loading, error messages & connection guides →
Redis Cloud Connection Timeout (Redis Cloud)
Pinecone 429 Too Many Requests Error (Pinecone)
Other Upstash errors
- Upstash ERR Max Requests Limit Exceeded
- Upstash ERR Max Request Size Exceeded
- Upstash Redis ECONNRESET Error
- Upstash WRONGPASS Invalid or Missing Auth Token
- Upstash Free Database Archived or Deleted
- Upstash Redis Slow or Timing Out
- QStash Signature Verification Failed (Invalid Signature)
- Upstash Ratelimit Not Working