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
106
votes
4 answers

nServiceBus vs Mass Transit vs Rhino Service Bus vs other?

Just doing some quick spikes into possibly using a messaging system to process files that are in a nicely decoupled work flow system. What are the pro's and cons that people have found of using each of the above frameworks? What are the advantages…
mwjackson
  • 5,403
  • 10
  • 53
  • 58
104
votes
5 answers

NServiceBus vs MassTransit

I'm struggling with a pros and cons list regarding NServiceBus and MassTransit. Now I know there is already a thread in here, but it doesn't really answer my questions. Here is what I've read so far: NServiceBus, yes it's licensed and it doesn't…
Jack Andersen
  • 1,059
  • 2
  • 8
  • 8
52
votes
1 answer

What does MassTransit add to RabbitMQ?

What is the benefit of building on top of MassTransit compared to building directly on top of RabbitMQ? I believe one benefit provided by MassTransit is 'type' exchange (publish subscribe by interface / type) so the content of the message is…
Endy Tjahjono
  • 24,120
  • 23
  • 83
  • 123
45
votes
3 answers

How to implement a saga using a scatter/Gather pattern In MassTransit 3.0

Jimmy Boagard describes a McDonalds fast food chain here comparing it to a scatter gather pattern. Workflow image stolen from above article: Initial Implementation Thoughts: To have a common interface for all of the types of FoodOrdered events…
Ashtonian
  • 4,371
  • 2
  • 18
  • 25
25
votes
3 answers

Redis Pub/Sub vs Rabbit MQ

My team wants to move to microservices architecture. Currently we are using Redis Pub/Sub as message broker for some legacy parts of our system. My colleagues think that it is naturally to continue use redis as service bus as they don't want spend…
24
votes
3 answers

Why interfaces for message contracts are strongly recommended in MassTransit?

MassTransit states that we should use interfaces for message contracts : It is strongly suggested to use interfaces for message contracts, based on experience over several years with varying levels of developer experience. MassTransit will…
Edgars Pivovarenoks
  • 1,526
  • 1
  • 17
  • 31
18
votes
1 answer

MassTransit with RabbitMQ: recovering the error queue

This is probably a very simple answer, but I'm not seeing an obvious solution in the MassTransit docs or forums. When you have some messages that have been moved over to the error queue in RabbitMQ, what's the best mechanism for getting them back…
JoshRivers
  • 9,920
  • 8
  • 39
  • 39
17
votes
2 answers

MassTransit and .NET Core DI - how to resolve dependencies with parameterless constructor?

I am working on the app using .NET Core 2 and MassTransit 4(dev). Mass Transit requires parameterless constructor for consumers. I need to use e.g. logger, dbContext etc in my consumers and I would like to keep using native DI from .NET Core so I…
Marek Urbanowicz
  • 12,659
  • 16
  • 62
  • 87
15
votes
6 answers

MassTransit - Can Multiple Consumers All Receive Same Message?

I have one .NET 4.5.2 Service Publishing messages to RabbitMq via MassTransit. And multiple instances of a .NET Core 2.1 Service Consuming those messages. At the moment competing instances of the .NET core consumer service steal messages from the…
fourbeatcoder
  • 1,159
  • 3
  • 13
  • 21
15
votes
1 answer

Why am I getting messages in the skipped queue

I have a saga setup in a fork/join configuration. Events defined on the saga FileMetadataMsg FileReadyMsg SomeOtherMsg Process starts off when a file comes in on a separate listener. Publishes SagaStart(correlationId) Publishes…
phil
  • 618
  • 2
  • 5
  • 17
14
votes
1 answer

Distributed architecture with MassTransit, RabbitMQ and SignalR

I'm developing distributed application with help of MassTransit and rabbitmq I have to provide ability to generate report on a web page without page reloading by click on a button, also I should call a windows service for data preparation (The…
Ilya Sulimanov
  • 7,636
  • 6
  • 47
  • 68
14
votes
2 answers

MassTransit with RabbitMQ: When is a message moved to the error queue

I am using RabbitMQ version 3.0.2 & I see close to 1000 message in Error queue. I want to know At what point messages are moved to the error queues? Is there a way to know why a certain message is being moved to an error queue? Is there any way to…
SharpCoder
  • 18,279
  • 43
  • 153
  • 249
13
votes
4 answers

Pros/Cons of using BizTalk instead of NServiceBus or MassTransit

I am curious if it even makes consider BizTalk for the implementation of a pub/sub messaging architecture (basically what you can do with NServiceBus or MassTransit is all I really need). My manager tends to want to stick with frameworks provided…
skb
  • 30,624
  • 33
  • 94
  • 146
13
votes
5 answers

nServiceBus, Rhino Service Bus, MassTransit - Videos, Demos, Learning Resources

Hey people would love to hear about any resources you have or know about for nServiceBus, Rhino Service Bus and MassTransit. Videos? Blog posts? Books? Demo Projects etc
superlogical
  • 14,332
  • 9
  • 66
  • 76
12
votes
1 answer

What is the difference between ConcurrencyLimit and PrefetchCount?

What is the difference between ConcurrencyLimit and PrefetchCount in masstransit? and what is the optimize configuration for them.
sajjad kalantari
  • 723
  • 8
  • 23
1
2 3
99 100