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
0
votes
1 answer

MassTransit publish very slow performance compared to RabbitMQ client publish

I'm using MassTransit 7 with the RabbitMQ Transport layer. When I publish messages using MassTransit bus (whether a direct or fanout exchange which the queue already bound), the exchange rate is between 1000-1500 m/s compared to 15k-25k m/s when I…
Mehrdad Kamali
  • 87
  • 3
  • 13
0
votes
1 answer

Exchange binding not working in MassTransit with RabbitMQ and SignalR

I have implemented a .net core web api with masstransit rabbitMQ and signalR and im trying to make signalR backplane work. I suspect the problem is with exchange bindings that masstransit solves for me but i cant figure out what im doing wrong to…
0
votes
2 answers

How to add a health check in .NET 5 for MassTransit Amazon SQS?

I have a working and running .NET 5 application. There is a REST API to POST data. When data is posted, a MassTransit message is published. Using the AWS Explorer, I can clearly see that if the topic named customerinfo.fifo does not exist, it is…
Daan
  • 2,478
  • 3
  • 36
  • 76
0
votes
1 answer

MassTransit Azure Service Bus Request-Response ASP.NET Core RequestTimeoutException

My goal is to make the communication between two applications (WebAPI and Worker) via MassTransit's Request/Response technique. The problem is that I'm never getting inside the consumer (request client), I'm getting a timeout instead. I found a…
Aranha
  • 2,903
  • 3
  • 14
  • 29
0
votes
2 answers

Message is still processed even after client request timeout in MassTransit

I am implementing standard request/response scenario with MT and RabbitMQ. Client is Asp.net core API and consumer is a windows service. As part of testing the exception cases if I stop the consumer and submit a request from API using request…
0
votes
1 answer

How to inject dependencies into a MassTransitStateMachine activity?

I'm stuck and the docks for the lib are unhelpful. Given the below saga definition: public class GetOrdersStateMachine : MassTransitStateMachine { public State? FetchingOrdersAndItems { get; private set; } public…
Marek M.
  • 3,799
  • 9
  • 43
  • 93
0
votes
2 answers

Masstransit can't connect to a queue in RabbitMQ from c# app

I have a queue in RabbitMQ. I can't configurate this queue, I have to consume messages from it. Publisher don't use Masstransit for publishing. I am using Masstransit to consume messages from the queue. When I am trying to configurate connection to…
Phil
  • 82
  • 8
0
votes
1 answer

MassTransit + Azure Service Bus: Default TTL configuration for topics and other questions

First of all, excuse my English, it's very bad. I am using MassTransit with Azure Service Bus for asynchronous communication between microservices. I have some doubts about the default configuration of masstransit together with azure service bus,…
0
votes
1 answer

Should i put my statemachine code in its own microservice?

Lets say i have an order process spanning multiple microservices controlled by a masstransit saga state machine, where should I host it? In the order microservice that takes in the REST call to create an order, or a separate service dedicated to…
0
votes
1 answer

How can I set the MessageGroupId when using MassTransit SQS?

I try to use MassTransit SQS to publish a message. Here is my configuration code: public static void UseMassTransit(this IServiceCollection services, MassTransitConfiguration massTransitConfiguration) { services.AddMassTransit(x => …
Daan
  • 2,478
  • 3
  • 36
  • 76
0
votes
1 answer

How to prevent a NullReferenceException when calling ReceiveEndpoint for MassTransit SQS?

I use MassTransit in a .NET core web application (web api) to use SQS. It was working fine for publishing messages. But after I tried to add a consumer, I ran into an issue. Here is my code public static void UseMassTransit(this…
Daan
  • 2,478
  • 3
  • 36
  • 76
0
votes
1 answer

Why do code changes to my MassTransit application cause MassTransit.RabbitMqTransport.RabbitMqConnectionException?

(follow up to Why does my MassTransit Fault Consumer not get called?) I am using MassTransit 7.1.4.0 together with RabbitMQ 3.8.7. After I make changes to the C# code I get (detailed error message below) Unhandled exception.…
0
votes
0 answers

AccessViolationException during application exit while using MassTransit with Kafka and in-memory bus

I'm using version 7.1.4 of MassTransit with .Net Core 3.1, ASP.NET Core Web Application. It happens when I close the application by Ctrl + C. When I press stop debugging button, it doesn't occur. The code responsible for registration goes as…
0
votes
1 answer

How to map message type to a different Azure ServiceBus queue with MassTransit EndpointConvention.Map

I want to use MassTransit to send messages that may have different structures in terms of message.Data, to different Azure Service Bus queues. As long as the router.Name keeps the initial value, it works welll. But, whenever the destination Uri of…
0
votes
1 answer

masstransit - consumers are no registered and activated

I'm trying to register consumers but no success using mass transit. I registered MT using Autofac using module approach. Firstly - I created some simple message: public class SimpleMessage { public string msg { get; set; } } and I've managed…
Bartosz Kowalczyk
  • 1,479
  • 2
  • 18
  • 34
1 2 3
99
100