35 questions for “Background Jobs & Queues”

Found in 1 field. Select a question to see its full answer.

Information Technology

35 questions in 1 technology

#QuestionTechnologyTopicLevel
1What is a cron job, and how would you schedule recurring background tasks in a Node.js application using node-cron or BullMQ's repeatable jobs? Node.js › Background Jobs & QueuesNode.jsBackground Jobs & QueuesIntermediate
2How do you implement graceful shutdown for a Node.js background worker process to avoid losing or corrupting in-progress jobs? Node.js › Background Jobs & QueuesNode.jsBackground Jobs & QueuesAdvanced
3What is a background job in the context of a Node.js web application, and why can't long-running work simply happen inside a request handler? Node.js › Background Jobs & QueuesNode.jsBackground Jobs & QueuesBeginner
4What is job idempotency, and why is it critical when designing background job processing? Node.js › Background Jobs & QueuesNode.jsBackground Jobs & QueuesIntermediate
5How would you track and expose the progress of a long-running background job to the client that requested it? Node.js › Background Jobs & QueuesNode.jsBackground Jobs & QueuesIntermediate
6What is the difference between a message queue (like RabbitMQ) and a job queue (like BullMQ), and when would you choose one over the other? Node.js › Background Jobs & QueuesNode.jsBackground Jobs & QueuesAdvanced
7What is the difference between a delayed job and a scheduled (repeatable) job in a Node.js job queue? Node.js › Background Jobs & QueuesNode.jsBackground Jobs & QueuesBeginner
8How does BullMQ (built on Redis) implement a job queue in Node.js, and what are its core building blocks? Node.js › Background Jobs & QueuesNode.jsBackground Jobs & QueuesIntermediate
9What is job concurrency in a worker process, and how do you configure it safely in BullMQ? Node.js › Background Jobs & QueuesNode.jsBackground Jobs & QueuesIntermediate
10What are the trade-offs of using an in-memory job queue (like a simple array-based queue) versus a persistent, Redis-backed queue? Node.js › Background Jobs & QueuesNode.jsBackground Jobs & QueuesIntermediate