Nest Queue

screenshot of Nest Queue
nestjs

Queue manager for NestJS Framework for Redis (via bull package)

Overview

If you're working with NestJS and looking for an efficient way to manage queues in your application, the Queue Manager for NestJS is a robust solution that integrates seamlessly with the NestJS framework. This package leverages Redis and Bull, allowing you to manage jobs and events effectively. With straightforward installation and a well-structured approach, it caters to developers who want to enhance their application's performance without a steep learning curve.

The Queue Manager simplifies tasks like job handling, event consumption, and connection settings, making it an essential tool for developers who want to implement queue management in their projects. Whether you're adding new jobs, managing delays, or handling retries, this package provides the necessary tools to manage your application's asynchronous tasks efficiently.

Features

  • Easy Installation: Quickly set up the Queue Manager in your NestJS project using a simple yarn command. Just install Redis locally for development support.

  • Global Module Integration: The QueueModule is designed to be global, allowing you to easily manage queues across your application without repetitive imports.

  • Flexible Connection Settings: By default, it connects to Redis on localhost:6379, but you can easily customize connection settings to fit your environment.

  • Job Management: Inject a Queue instance into your services or controllers to add jobs. You can manipulate job additions, including setting up delayed calls as needed.

  • Event Handling: Utilize the @EventConsumer decorator to manage Redis events throughout your application. This makes it easy to listen and respond to job status changes.

  • Processor Compatibility: The functions provided as event handlers can utilize the Job and DoneCallback arguments, enabling you to define complex job processing behaviors.

  • Future Enhancements: There are plans to add additional features such as testing support, asynchronous module loading, console commands for job management, and more, ensuring the package evolves alongside developers' needs.

  • Community Contributions: The project is supported by contributors like Maxim Markin, fostering a collaborative environment where improvements and new features are regularly implemented.

nestjs
Nest

A progressive Node.js framework for building efficient, scalable, and enterprise-grade server-side applications with TypeScript/JavaScript.

typescript
Typescript

TypeScript is a superset of JavaScript, providing optional static typing, classes, interfaces, and other features that help developers write more maintainable and scalable code. TypeScript's static typing system can catch errors at compile-time, making it easier to build and maintain large applications.