A Nest.js wrapper for Graphile Worker
Graphile Worker for Nest.js is a powerful tool designed to seamlessly integrate job queuing capabilities into your applications using PostgreSQL. Specifically tailored for those who are already using PostgreSQL in their tech stack, this wrapper for Graphile Worker allows developers to run jobs such as sending emails, performing calculations, or generating PDFs in the background, thus ensuring that HTTP responses are quick and efficient. By leveraging the strengths of Nest.js, developers can utilize this worker without the need for an additional Redis server, making it a clean and efficient choice.
One of the standout features of Graphile Worker is its ease of integration and setup within Nest.js applications. With a straightforward module setup and a focus on using decorators to define tasks and handle events, it streamlines the process of creating background jobs. This makes it an ideal solution for developers looking to enhance their applications' performance without introducing unnecessary complexity.
GraphileWorkerModule: Easily integrate the module with your application using forRoot or forRootAsync methods for straightforward setup.
WorkerService: A simplified service to add jobs and initiate the worker runner, minimizing boilerplate code.
@OnWorkerEvent Decorator: Add custom behaviors to tasks by listening to job events such as success or failure, allowing for enhanced error handling and notifications.
@Task(name) Decorator: Define your tasks cleanly with injectable classes, ensuring your code remains organized and maintainable.
Configurable Module: The GraphileWorkerConfiguration wrapper allows adaptation of the runner options, including the ability to schedule recurring tasks through configurations.
Event Listening: Easily handle Graphile events within your application by using decorators, making it simple to tie business logic to job lifecycle events.
Sample Application: A sample project is available for quick integration, helping you get started with a minimal setup and comprehensive guidance.
A progressive Node.js framework for building efficient, scalable, and enterprise-grade server-side applications with TypeScript/JavaScript.
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.