NestJS implementation of client and strategy hasn't enough features for work with RabbitMQ so i developed this one (basically, just a wrapper for amqp-connection-manager)

Overview

Logo

NestJS RabbitMQ Client and strategy

NestJS implementation of client and strategy hasn't enough features for work with RabbitMQ so i developed this one (basically, just a wrapper for amqp-connection-manager)

Features:

  • Subscribe on queues/exchanges with routing-key and stuff
  • Seingnding:
  • Message acknowledgment

Installation

npm install --save [email protected]:i-link-pro-team/rabbit-mq.git

Obligatory message structure

// Into existing exchange:

{
    pattern?: string, // allow to define type of the message in queue
    data: any // only json compatible
}

Dependencies

  • amqp-connection-manager
  • amqplib

How to use

If you need a client (sending messages)

See CLIENT.md

If you need a strategy (receiving messages)

See STRATEGY.md

Warning

If you want to use strategy please provide transport-type into all of your 'MessagePattern'-decorators like this:

@MessagePattern(
    {cmd: MessagePatternName},
    Transport.TCP       // <------- this line
)
someMethod() {}

I've no idea how to fix it yet

You might also like...

Crack BIOS password on some Lenovo laptops, if you're lucky enough

Crack BIOS password on some Lenovo laptops, if you're lucky enough

Lenovo BIOS password cracker This little utility script will allow you to recover your forgotten BIOS password from a Lenovo laptop. Tested on: Lenovo

Dec 25, 2022

Grupprojekt för kurserna 'Javascript med Ramverk' och 'Agil Utveckling'

JavaScript-med-Ramverk-Laboration-3 Grupprojektet för kurserna Javascript med Ramverk och Agil Utveckling. Utvecklingsguide För information om hur utv

May 18, 2022

Hemsida för personer i Sverige som kan och vill erbjuda boende till människor på flykt

Getting Started with Create React App This project was bootstrapped with Create React App. Available Scripts In the project directory, you can run: np

May 3, 2022

Kurs-repo för kursen Webbserver och Databaser

Webbserver och databaser This repository is meant for CME students to access exercises and codealongs that happen throughout the course. I hope you wi

Jan 3, 2023

A template repo that contains a NodeJS app that will consume messages from a RabbitMQ queue and immediately send them to an Azure EventHub.

README.md Summary This repo (RabbitMQ to EventHub Shovel) is a template that contains a NodeJS app that will consume messages from a RabbitMQ queue an

Jul 2, 2022

Queue is a node.js package to create background jobs in topic-based RabbitMQ exchanges and process them later.

Queue PLG Works Queue helps with managing subscription and publish critical events using RabbitMQ. All events are published through RabbitMQ, using to

Sep 21, 2022

a simple wrapper nestjs dynamic module on top of surrealdb.js driver, with a consumer app to show case library in action, nothing fancy

README README Project Components Dynamic Module Consumer App Install SurrealDb Starts SurrealDb Init surrealDb Database Run App from Source Code Launc

Oct 3, 2022

Download all Moodle files with one click. This is a Chrome extension built to save time and effort from downloading files manually one by one!

Download all Moodle files with one click. This is a Chrome extension built to save time and effort from downloading files manually one by one!

Moodle Downloader Extension Moodle downloader extension for Chrome. The extension is tested with both the TUM moodle and the official moodle demo. Not

Nov 15, 2022

A JavaScript Library To Make Your Work Work Easier/Faster

Functionalty.js (beta) About ✍️ This Is A JavaScript Library To Make Your Work Easier/Faster, You Can See Functionalty.js Website From Here Project Cr

Aug 30, 2022
Owner
ilink
ilink is a custom software development company with strong expertise in blockchain, web and mobile applications, AI and many more.
ilink
an open-source package to make it easy and simple to work with RabbitMQ's RPC ( Remote Procedure Call )

RabbitMQ Easy RPC (Remote Procedure Call ) The Node.js's RabbitMQ Easy RPC Library rabbitmq-easy-RPC is an easy to use npm package for rabbitMQ's RPC

Ali Amjad 4 Sep 22, 2022
A RabbitMQ client for TypeScript, with functional programming in mind.

RabbitMQ-fp Lets feed our Rabbit' nicely ?? This repository contains a wrapper over amqplib written in Typescript with an accent of functionnal progra

MansaGroup 3 Sep 6, 2022
Simple SAGA example using amqp and nodejs

Simple SAGA example using amqp and nodejs The banks works as the following the diagram: All the banks are listening their own queue on the broker. Eve

jose teodoro da silva 7 Sep 23, 2022
A devtool improve your pakage manager use experience no more care about what package manager is this repo use; one line, try all.

pi A devtool improve your pakage manager use experience no more care about what package manager is this repo use; one line, try all. Stargazers over t

tick 11 Nov 1, 2022
This project is basically a to-do list application based on JavaScript, HTML, and CSS. Where we can add, remove and edit tasks.

This project is basically a to-do list application based on JavaScript, HTML, and CSS. Where we can add, remove and edit tasks.

Tufahel Ahmed 5 Apr 8, 2022
A nodejs implementation of AI Explained on youtube's SmartGPT prompting strategy for getting better responses from gpt4.

SmartGPT A Node.js script implementation of the SmartGPT prompting system by AI Explained on youtube, see the video here Prerequisites Node.js (node >

Caleb O'Leary 7 May 10, 2023
This Project is basically provides a cloud based solution for the medical stores so they can manage their inventory, expiry, billbook & credits on a single platform

This Project is basically provides a cloud based solution for the medical stores so they can manage their inventory, expiry, billbook & credits on a single platform

Akshay Shivaji Matre 4 Jul 11, 2022
True P2P concept for your p2p powered website/app/client. MSC/MEP (Multiple Strategy Concept/Multiple Entry Points)

TRUE P2P CONCEPT - Lets redecentralize the web This repo is just conceptual. Active development of the endproduct (TRUE P2P) happens here https://gith

Bo 6 Mar 29, 2022
to choose the best one of Gcore‘IPs for connection with lowest latency.

GcoreCDNIPSelector to choose the best IP from Gcore-CDN to reach the lowest latency and stable connections. Background Gcore's CDN provide a smooth ex

Bruce 6 Nov 5, 2022