Example Project: Message Handling with RabbitMQ

February 1, 2025 ยท View on GitHub

This project demonstrates how to simplify asynchronous and synchronous message handling using buses, handlers, channels, and consumers. It leverages RabbitMQ as the message broker to enable scalable, decoupled communication between services.

example.gif

Features

  • Supports both synchronous and asynchronous message handling
  • Utilizes message buses, handlers, channels, and consumers
  • Dockerized RabbitMQ setup for easy deployment
  • Scalable and reliable architecture

Prerequisites

Make sure you have the following installed:

Getting Started

1. Clone the Repository

git clone git@github.com:nestjstools/messaging-rabbitmq-example.git
cd messaging-rabbitmq-example

2. Start App with RabbitMQ

make start

This will start RabbitMQ in a Docker container.

4. Got to endpoints and see results in console

* http://localhost:3000
* http://localhost:3000/not-existed-handler