This project demonstrates the use of MassTransit with .NET for building distributed applications using message-based communication.
- Message Publishing: Publish messages to various message brokers.
- Message Consumption: Consume messages from queues.
- .NET 6 SDK or later
- Message broker (e.g., RabbitMQ, Azure Service Bus)
-
Clone the repository:
git clone https://github.com/alikrc/MasstransitDemo.git cd MasstransitDemo
-
Restore dependencies:
dotnet restore
-
Update the configuration with your message broker settings (e.g.,
appsettings.json
).
-
Build the application:
dotnet build
-
Run the application:
dotnet run
- Publish a message: Use the appropriate service to send a message to the configured message broker.
- Consume a message: Ensure the consumer service is running to process incoming messages from the queue.
Contributions are welcome! Please open an issue or submit a pull request for any changes.
This project is licensed under the MIT License.