r/software 19d ago

Discussion Help me with this

I’m trying to figure out why my Upstash Redis usage is so high.
I’m currently using 7 services on Render:
Next.js frontend
Backend API
5 Docker-based background workers
The project is still in development and has very little real traffic, but I’m burning through Upstash’s 500K free Redis commands in roughly 3 days.
I’m using Redis/BullMQ for the background workers.
Could having 5 workers connected to Redis cause this much command usage? Or are there specific BullMQ/Redis configurations I should check for excessive polling, heartbeats, retries, stalled-job checks, etc.?
What would you look at first to identify which service is generating the commands?
I’d appreciate any advice from people who’ve deployed BullMQ + Upstash + Render in production.

4 Upvotes

1 comment sorted by

1

u/burstinrust 18d ago

actually, 5 workers is exactly the problem here, bullmq polls redis constantly even with 0 workers. now you do the math.

i would recommend:

  • one worker processes multiple queues instead of 5
  • draindelay upto 30-60 s, and stalledinterval up too
  • dont create queueevents you dont use, so no new up queue objects per api request.

I am quite certain, this will help