BullMQ + Redis + Upstash

5 days ago 8
ARTICLE AD BOX

I currently have a Next.js app which its server is pushing jobs to a remote Redis instance that is hosted on Upstash, and then the jobs are being consumed by a Worker on a remote service.

I have a 10$ subscription to Upstash.

The Next.js app + Worker are currently deployed with no real users and I have had 0 jobs in the last day, yet somehow my cost keeps on going up (0.33$ -> 0.67$).

Bandwidth (2GB ) and storage (6kb) persists.

Commands are going up, but I know thats normal...

can somebody tell me what how whis pricing thing goes here?

const connection = new IORedis(process.env.REDIS_URL!, { maxRetriesPerRequest: null, enableReadyCheck: false, }); const POLL_INTERVAL = 10000; const MAX_POLLING_TIME = 360000; const worker = new Worker<VideoJobData>( 'video-generation-queue', async (job: Job<VideoJobData>) => { ... do job }, { connection, blockingConnection: true, removeOnComplete: { count: 0 }, removeOnFail: { age: 86400, count: 20 }, } ); // Graceful shutdown process.on('SIGINT', async () => { await worker.close(); await connection.quit(); await closeDatabase(); process.exit(0); });

upstash-status

Read Entire Article