MassTransit | Distributed Application Framework for .NET | Pub Sub library
kandi X-RAY | MassTransit Summary
kandi X-RAY | MassTransit Summary
| Package Name | .NET Standard | .NET Core App | | ------------ | :-----------: | :----------: | | Main | | [MassTransit][MassTransit.nuget] | 2.0 | | [MassTransit.Abstractions][MassTransitAbstractions.nuget] | 2.0 | | Other | | [MassTransit.Analyzers][Analyzers.nuget] | 2.0 | | [MassTransit.Templates][Templates.nuget] | 5.0 | | [MassTransit.SignalR][SignalR.nuget] | 2.0 | | [MassTransit.TestFramework][TestFramework.nuget] | 2.0 | | Monitoring | | [MassTransit.Prometheus][Prometheus.nuget] | 2.0 | | Persistence | | [MassTransit.Azure.Cosmos][Cosmos.nuget] | 2.0 | | [MassTransit.Azure.Storage][AzureStorage.nuget] | 2.0 | | [MassTransit.Dapper][Dapper.nuget] | 2.0 | | [MassTransit.EntityFrameworkCore][EFCore.nuget] | 2.0 or 6.0 | | [MassTransit.EntityFramework][EF.nuget] | 2.1 | | [MassTransit.Marten][Marten.nuget] | 2.0 | | [MassTransit.MongoDb][MongoDb.nuget] | 2.0 | | [MassTransit.NHibernate][NHibernate.nuget] | 2.0 | | [MassTransit.Redis][Redis.nuget] | 2.0 | | Scheduling | | [MassTransit.Hangfire][Hangfire.nuget] | 2.0 | | [MassTransit.Quartz][Quartz.nuget] | 2.0 | | Transports | | [MassTransit.ActiveMQ][ActiveMQ.nuget] | 2.0 | | [MassTransit.AmazonSQS][AmazonSQS.nuget] | 2.0 | | [MassTransit.Azure.ServiceBus.Core][AzureSbCore.nuget] | 2.0 | | [MassTransit.Grpc][Grpc.nuget] | 2.0 | | [MassTransit.RabbitMQ][RabbitMQ.nuget] | 2.0 | | [MassTransit.WebJobs.EventHubs][EventHubs.nuget] | 2.0 | | [MassTransit.WebJobs.ServiceBus][AzureFunc.nuget] | 2.0 | | Riders | | [MassTransit.Kafka][Kafka.nuget] | 2.0 | | [MassTransit.EventHub][EventHub.nuget] | 2.0 |.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of MassTransit
MassTransit Key Features
MassTransit Examples and Code Snippets
Community Discussions
Trending Discussions on MassTransit
QUESTION
Currently we're using Hangfire for scheduling and running long lived tasks. We need these tasks to be able to be retried in the event of an ungraceful shutdown, which Hangfire handles for us.
We're looking to try and move to a producer/consumer model and I've built a basic prototype with Masstransit and AWS SQS, but I have some concerns about how to handle the event of a task being processed during an ungraceful shutdown.
I understand that eventually the SQS visibility timeout will expire and the queued item will be picked up for processing again, but setting that timeout isn't trivial as the length of tasks can be quite varied and I'd prefer if the task could immediately resume/retry processing when the application starts up again.
I got reading about Job Consumers and they seemed to be better fitted to this type of scenario, but all the examples I've seen are using RabbitMQ. Wondering if it's possible/appropriate to do this using SQS, or if there's a better approach?
Thank you for taking the time to read this question :)
...ANSWER
Answered 2022-Mar-09 at 02:22MassTransit will extend the visibility timeout as long as the consumer is still running.
I believe SQS has an upper-limit of something like 12 hours, but you should look it up and find out.
Job Consumers have significantly greater requirements (sagas, temporary queues, etc.) and SQS is really annoying about not having auto-delete/expiring queues, so I'd stick to a regular consumer if you can swing it.
QUESTION
I am quite new in Masstransit and rabbitMq and I want to establish a communication between two Web APIs.
The goal: if the service A
receive a request to make something but the it needs some additional information from another service B
, I want to make this connection between the two services using Masstransit and RabbitMq, but I want to get the returned result from the service B in the action method in the specific controller in service A (the API that requested the information).
I already created the integration of Masstransit and RabbitMq, but I am getting the message in the consumer and I want get that result in the action method that is waiting for the response from the service B.
If there are any examples or any hint to adapt the solution or anything may help that would very appreciated
Thanks
...ANSWER
Answered 2022-Mar-07 at 13:06Use the request client to generate a request, and get the response. An example in an API controller is shown in the scoped filter sample, along with many other of the MassTransit samples.
QUESTION
Good day I'm configuring Masstransit for .net6 net core application Have added Masstransit nuget packages:
...ANSWER
Answered 2022-Feb-17 at 19:05You need to add the MassTransit.AspNetCore
package reference.
Note that for MassTransit V8, or later, this package is no longer required and should not be referenced.
QUESTION
For now I was using following code to add all consumers and configure endpoints:
...ANSWER
Answered 2021-Dec-23 at 03:59You might be able to create two generic consumer definitions, one for the query base, and one for the command base, register the implemented generic type of the definition along with the consumer (when calling AddConsumer
).
Something like:
QUESTION
I have a consumer, who needs to consume messages from an existing RabbitMQ queue. It works fine, when the queue is configured normally, without any settings.
...ANSWER
Answered 2021-Dec-20 at 20:22Simply add them as queue attributes:
QUESTION
I'm trying to create some FluentValidation middleware for my MassTransit pipeline. I thought it would be a suitably easy project for my first ever MassTransit middleware, but I'm afraid I've got in over my head. Can somebody rescue me please?
Other than the MassTransit middleware documentation I have been referring to this video for guidance:
Here's my filter:
...ANSWER
Answered 2021-Nov-28 at 19:45If you need access to the container from middleware, I'd suggest using a scoped filter. There is a sample that shows how they are built.
QUESTION
We've wired up MassTransit Mediator to fan out messages on to MassTransit consumers. However, if any of these consumers throws an exception then the exception is not logged to the logs.
Here's an example of the logs:
...ANSWER
Answered 2021-Nov-18 at 02:21It's likely something with the way your log formatter is configured. MassTransit uses ILoggerFactory
from the container.
For example, the test I just ran with an exception shows the message, including callstack:
QUESTION
Looking into using MassTransit to replace some old brittle ActiveMQ libraries my company is using. Currently the messages that we send to AMQ are basically JUST the object
...ANSWER
Answered 2021-Nov-09 at 00:09You can switch to the raw JSON serializer if needed, simply by changing your bus configuration:
QUESTION
I have a simple Mass Transit setup using RabbitMQ and am taking advantage of IRabbitMqBusFactoryConfigurator.ConfigureEndpoints to automatically create endpoints for my consumers.
The problem is I also want to set some queue arguments i.e. "x-max-length", "x-overflow" on all these queues. Using ConfigureEndpoints it doesn't seem to copy those arguments across.
I'm using MassTransit 5.5.6. I see that in 7.1.6 I could use IConfigureReceiveEndpoint however I cannot upgrade.
Is this possible or do I need to manually specify each endpoint?
...ANSWER
Answered 2021-Nov-05 at 12:01You can upgrade, or you'll need to specify it manually for each endpoint.
QUESTION
I am finding a problem with Newtonsoft.Json
library throwing a
ANSWER
Answered 2021-Oct-01 at 16:29Just use the version that MassTransit depends upon, which is much earlier than v13. Upgrading past that without the proper assembly redirects is likely causing your issue.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install MassTransit
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page