
What does MassTransit add on top of RabbitMQ? NET-based Enterprise Service Bus (ESB).MassTransit helps Microsoft developers route messages over MSMQ, RabbitMQ and ActiveMQ service busses, with native support for MSMQ and RabbitMQ. MassTransit is free/ open-source lightweight software. If the consumer consumes the message if there is a failure or exception occur system should be able to re-try and if the re-try unsuccessful then move the message to the Error queue.

Use CaseĪssume that we have an application, Using that application user can create appointment after successfully create appointment publisher will publish email message to notify other parties, then consumer consume that message and trigger the email to the end-user. You can download the source code from my Git Repo.

#Send a message using masstransit install#
Install RabbitMQ cluster on Kubernetes or Openshift - To setup RabbitMQ cluster read my previous article Deploying RabbitMQ Cluster On Kubernetes - Part 1Īn also you should have a basic understanding of RabbitMQ, ASP.NET Core WebAPI, and. If your using OpenShift Container Platform you should have basic knowledge on OpenShift and ( Provision Red Hat OpenShift Cluster On AWS) or you can use Red Hat OpenShift Developer Sandbox account ( Link), It will provide one month free Openshift cluster for you. Prerequisites & Setupīasic knowledge on Kubernetes architecture and its components ( Link) ,also you need to install Kubernetes cluster. To impalement publisher and subscriber we use MassTransit. In this article, we are going to talk about a simple publisher/subscriber scenario deployed on Kubernetes cluster. The main benefits of event-driven systems are asynchronous behavior and loosely coupled structures.

When business events occur, producers publish them with messages. At the same time, other services consume them through event listeners. Event-driven microservice architecture, services communicate each-other using event messages.
