DEV Community

Cover image for How to connect two microservices with RabbitMQ and MassTransit
Angelo Pirola
Angelo Pirola

Posted on • Edited on

1

How to connect two microservices with RabbitMQ and MassTransit

The example in the github repository below shows a simple implementation of two microservices (.NET 8 Web Api) communicating with each other via RabbitMQ and MassTransit.

GitHub Repository

Comments and/or suggestions are always welcome.

Top comments (4)

Collapse
 
stevsharp profile image
Spyros Ponaris

Thank you for sharing your article on connecting two microservices using RabbitMQ and MassTransit. It's a great topic, and I appreciate your effort in explaining the key concepts. As someone interested in implementing this. for example demonstrating practical patterns like the Outbox Pattern .Thanks again for your work—I’m looking forward to updates!

Collapse
 
angelodotnet profile image
Angelo Pirola

An implementation of the outbox pattern can be found on this repository: github.com/AngeloDotNet/Background...

If it is not what you would like to see, could you please give me some more precise indications so that I can create an ad hoc demo for you?

Waiting for your feedback, thank you and goodbye

Collapse
 
stevsharp profile image
Spyros Ponaris

Thank you so much, Angelo! I appreciate you sharing the repository.
I'll check it out.
If I could ask for one thing, maybe a quick demo of a real-world scenario where the Outbox Pattern shines? Like handling failures while keeping the messages flowing smoothly between services. Looking forward to seeing more of your work. Thanks again!

Thread Thread
 
angelodotnet profile image
Angelo Pirola

Hi, in my opinion the repository I pointed out to you meets your needs, as it is an example that uses the outbox pattern in a real case of sending emails.

If it is not the demo you are looking for, write to me and we can talk about it without any problems.

👋 Kindness is contagious

Explore a sea of insights with this enlightening post, highly esteemed within the nurturing DEV Community. Coders of all stripes are invited to participate and contribute to our shared knowledge.

Expressing gratitude with a simple "thank you" can make a big impact. Leave your thanks in the comments!

On DEV, exchanging ideas smooths our way and strengthens our community bonds. Found this useful? A quick note of thanks to the author can mean a lot.

Okay