Skip to content

Sample of using MassTransit in conjunction with RabbitMQ in an ASP.NET Core.

Notifications You must be signed in to change notification settings

belei-bohdan/samples-mass-transit-rabbit-mq

Repository files navigation

Mass-Transit RabbitMQ

Sample of using MassTransit in conjunction with RabbitMQ in an ASP.NET Core.

Disclaimer

This application is intentionally designed as a simplified example for learning purposes. It does not adhere to best practices that you would typically use in a production application. Instead, it focuses on clarity and ease of understanding to help developers grasp the fundamentals of MassTransit and RabbitMQ.

Prerequisites

Before you begin, make sure you have Docker installed on your machine. You can check if Docker is installed by running: docker --version. If Docker is not installed, you can download and install it from Docker's official website.

Ensure you have the .NET 7 SDK installed on your machine to build and run your .NET applications: dotnet --version.

Quick Start with Docker Compose

To build and run your application using Docker Compose with environment variables, follow these steps:

  1. Open a terminal in the solution folder ...\MassTransitRabitMQ.

  2. Build the Docker containers:

docker-compose -f docker-compose.yml --env-file .env.development build
  1. Start the containers:
docker-compose -f docker-compose.yml --env-file .env.development up
  1. To stop and remove the containers when you're done, use the following command:
docker-compose down --rmi all

Accessing the Apps

Once your applications are running, you can access them through Swagger or Postman:

TipsAPI:

ReportingAPI:

About

Sample of using MassTransit in conjunction with RabbitMQ in an ASP.NET Core.

Topics

Resources

Stars

Watchers

Forks