This repository demonstrates the use of MassTransit and RabbitMQ to build a Producer-Consumer routine for receiving and processing booking tickets. The project is divided into two main components:
-
OrderConsumer: This component acts as the consumer, responsible for processing incoming booking tickets.
-
OrderProducer: This component serves as the producer, responsible for sending booking tickets to be processed.
The project consists of two main components, OrderConsumer
and OrderProducer
, each containing its respective C# project files, source code, and configuration files.
To run the Order Service project, follow these steps:
- Clone the repository to your local machine.
- Ensure you have Docker installed.
- Start RabbitMQ by running the provided Docker command.
- Build and run the
OrderConsumer
andOrderProducer
components. - Send booking tickets through the
OrderProducer
.
- MassTransit: A popular library for building message-based applications in .NET.
- RabbitMQ: A message broker that enables communication between applications.
This project is licensed under the MIT License - see the LICENSE file for details.
Feel free to explore the code and use it as a reference for your own MassTransit and RabbitMQ projects. If you have any questions or need further assistance, please don't hesitate to reach out.