Questions tagged [masstransit]

MassTransit is a free, open source, lightweight service bus for the Microsoft .NET framework.

MassTransit is a free, open source, lightweight service bus for the Microsoft .NET framework.

It supports a number of different transports:

  • RabbitMQ
  • Azure Service Bus
  • Amazon MQ / Active MQ
  • Amazon SQS/SNS

Several saga storage engines, including:

  • SQL (Entity Framework or NHibernate)
  • MongoDB
  • Redis
  • Postgres (via Marten)
  • Cosmos DB

MassTransit also supports Quartz.NET and Hangfire for message scheduling.

MassTransit is hosted on GitHub, has online Documentation and a Discord Server for community support.

1993 questions
9
votes
3 answers

Comsuming MassTransit from Python or other languages

I have a simple publisher done in MassTransit. I’m sending the message in an interval and am able to receive it from .NET client using MassTransit. But when I try to observe something from Python, it is silent. Is there a way to consume MassTransit…
ikutsin
  • 1,118
  • 15
  • 22
8
votes
1 answer

How do I fix error with MassTransit

I am trying to use MassTransit, I installed it using nuget and am just using their base example: Quick start guide When I run this code I get an exceptions (with the inner exceptions listed): "An exception was thrown during service bus…
Solmead
  • 4,158
  • 2
  • 26
  • 30
8
votes
1 answer

MassTransit message mis-typing

I am running into a base-typing problem with messages I am attempting to publish through MassTransit. Consider the following: [Serializable] public abstract class Event : CorrelatedBy { public Guid CorrelationId { get; set; } public…
Jeff Fritz
  • 9,821
  • 7
  • 42
  • 52
8
votes
3 answers

What are the advantages of using WCF over frameworks like MassTransit or hand written MSMQ client?

I am looking at using MSMQ as a solution to do asynchronous execution in my upcoming project. I want to know the differences between using WCF and frameworks like MassTransit or even hand written MSMQ client to place/read task off MSMQ. Basically…
Jeff
  • 13,079
  • 23
  • 71
  • 102
8
votes
1 answer

RabbitMq - ConversationId vs CorrelationId - Which is the more appropriate for tracking a specific request?

RabbitMQ seems to have two properties that are very similar, and I don't entirely understand the difference. ConversationId and CorrelationId. My use case is as follows. I have a website that generates a Guid. The website calls an API, adding that…
Rebecca
  • 13,914
  • 10
  • 95
  • 136
8
votes
1 answer

Mastransit - publish vs send and how to manage message

I have just used MassTransit in my project, .Net core2.0. It is great but there are some concerns: That is different between Publish vs Send. In my scenario, I have one email service to send email to out side. Other services will pass request to…
Jacky Phuong
  • 457
  • 1
  • 7
  • 21
8
votes
1 answer

Is it possible to use MassTransit 3 with Azure Service Bus without Manage permission policy?

I spent some days testing MassTransit 3.1.2 to see if we can use it with Azure Service Bus in our applications. I made a sample with two console applications using MassTransit.AzureServiceBus (3.1.2) : one publisher and one suscriber. It works…
Cédric V
  • 1,729
  • 2
  • 21
  • 28
8
votes
3 answers

Adding values to header in MassTransit.RabbitMq

I am using MassTransit 3.0.0.0 and I have a hard time understanding how to intercept messages in a Request-Response scenario on their way out and add some information to the headers field that I can read on the receiver's end. I was looking at the…
Gradinariu Cezar
  • 553
  • 1
  • 5
  • 12
8
votes
2 answers

Consume all messages using MassTransit

I'm currently building a system using MassTransit and RabbitMQ as my messaging layer. I'm trying to find a way to have a Consumer that listens on all messages of all types on the bus. This is for our audit logging framework and we want to log all…
Jeff Hornby
  • 12,948
  • 4
  • 40
  • 61
8
votes
1 answer

How to use Autofac Dependency Injection in MassTransit IConsume

I'm trying to use DI with my consumer class without success. My consumer class: public class TakeMeasureConsumer : IConsumer { private IUnitOfWorkAsync _uow; private IInstrumentOutputDomainService…
JoyC
  • 85
  • 1
  • 8
8
votes
1 answer

How can I attach a header to all published messages?

I have a particular header that I'd like to attach to all messages that I publish. I can attach this header on a case-by-case basis by specifying it in the Publish call: _bus.Publish(myMessage, context => context.SetHeader("my key", "my…
ean5533
  • 8,884
  • 3
  • 40
  • 64
8
votes
0 answers

Use request/reply without changing the design of the response

The Service Public Class GetContactConsumer Implements Consumes(Of Schema.KlantService.IGetContactV1).Context Public Sub Consume(message As IConsumeContext(Of Schema.KlantService.IGetContactRequestV1)) Implements…
Yoeri
  • 2,249
  • 18
  • 33
8
votes
1 answer

Mass Transit with Quartz / Scheduling - Are there any example implementations out there?

I have searched high and low for an example implementation or blog post on how to use Mass Transit's Quartz integration (https://github.com/MassTransit/MassTransit-Quartz). At the moment I have to make do with just looking at the unit tests that…
Mark Robinson
  • 13,128
  • 13
  • 63
  • 81
8
votes
1 answer

MassTransit NullReferenceException in ThreadPoolConsumerPool

When running MassTransit in ASP.NET. A NullReferenceException is being thrown, as per the issue reported here: Google Discussion Group Relevant Detail Does anybody know how to gracefully catch the exception when the AppDomain reloads? The stack…
Paul
  • 1,483
  • 14
  • 32
8
votes
2 answers

Simple example of Masstransit with RabbitMQ

I want to use MassTransit bus with RabbitMQ. But I am not able to find a simple example. I am looking for example which will get me started. What I have tried. googled: But most the examples are using MSMQ or they using too many configuration…
SharpCoder
  • 18,279
  • 43
  • 153
  • 249