Nestjs Amqp

screenshot of Nestjs Amqp
nestjs

Amqp connections for nestjs :love_letter:

Overview

This package is designed to facilitate the development of AMQP queue consumers and publishers by providing basic AMQPlib connections through various providers. It's particularly useful for microservice architectures, allowing developers to manage message queues efficiently. With easy-to-follow documentation, the package caters to both basic and advanced usage, making it easier for developers to establish connections and utilize AMQP protocol effectively.

However, it's worth noting that while it provides a straightforward approach for creating a default connection, multiple connections cannot be established using the forRootAsync method. Still, with its configurable options and potential for integration into custom providers, the package presents a robust solution for those looking to implement AMQPlib in their applications.

Features

  • Basic AMQPlib Connection: Easily set up a connection to AMQP queues using the provided connection options.
  • Custom Provider Support: Allows developers to inject AmqpConnection into custom providers to suit specific project needs.
  • Connection Naming: Enables users to name connections, making it easier to manage multiple connections within the application.
  • Flexible Configuration Options: Customize connection details such as hostname, port, username, and password, enhancing usability in various environments.
  • Retries and Delays: Supports configurable retry attempts and delay intervals, ensuring better resilience in message handling.
  • Heartbeat Management: Option to define heartbeat periods, ensuring connection stability and presence check.
  • Testing Support: Comes with a provided Docker Compose file to quickly set up a RabbitMQ container for testing purposes, streamlining the development process.
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.