masstransit

Mass Transit: ensure message processing order when there are different message types

我们两清 提交于 2019-12-11 02:22:20
问题 I'm new to Mass Transit and I would like to understand if it can helps with my scenario. I'm building a sample application implemented with a CQRS event sourcing architecture and I need a service bus in order to dispatch the events created by the command stack to the query stack denormalizers. Let's suppose of having a single aggregate in our domain, let's call it Photo , and two different domain events: PhotoUploaded and PhotoArchived . Given this scenario, we have two different message

Do MassTransit or nServiceBus support MSMQ over HTTP transport?

自古美人都是妖i 提交于 2019-12-11 01:26:53
问题 I understand it's available since MSMQ 3.0, is it available via any of the .NET ESBs? Is this possible with other MQ transports (ActiveMQ, etc)? Thanks, E. 回答1: NServiceBus use msmq as its main transport but does not support the http option for Msmq. Can you elaborate on what you're trying to achieve? Perhaps the NServiceBus gateway component is what you need? http://docs.particular.net/nservicebus/gateway/ Hope this helps! 回答2: MassTransit does not support MSMQ over HTTP in any way. RabbitMQ

Combine to Whens in Automatonymous state machine

非 Y 不嫁゛ 提交于 2019-12-10 22:48:51
问题 I am making a Request from MassTransit state machine saga and wait for reply. But there could be two errors coming back to me: MyRequest.TimeoutExpired MyRequest.Faulted I don't care on which conditions the request was not fulfilled, I want both situations to result in an error message to be published. However, I could not find any way to combine two outcomes with or condition, so I can have one handling case for both outcomes and not copy-paste my code. 回答1: In this case, you should either

Bus discovery in message busses

℡╲_俬逩灬. 提交于 2019-12-10 21:11:36
问题 I am trying to get my head around message buses and ioc's and my head is spinning with questions. This is the scenario I have in mind Three computers connected by LAN, no internet access. The three computers each have a service that runs and automatically self discovers the others, in other words , they each send messages on a common bus?? which identifies themselves. From that point on wards they can exchange any type of messages. Is this possible in the first instance just using a message

Masstransit error queue is consuming, but still is not empty

半腔热情 提交于 2019-12-10 18:25:05
问题 I am using Mastransit 3.5.0 with RabbitMq. If queue consumers throws exception, its is handled by default MoveExceptionToTransportFilter and moved to _error queue. For _error queue I have seperate consumer: Consume(ConsumeContext> context) Behavior of Fault is rather different. Part of errors are handled and removed from _error queue, but part of error message still remain in error queue and do not consumed by this consumer. As I understand If I have Fault consumer then _error queue should be

MassTransit: How should I handle error queues?

本小妞迷上赌 提交于 2019-12-10 18:19:48
问题 I saw a question & its answer below; https://stackoverflow.com/a/46128844/7419921 Although I understood that I cannot do anything for the error queue via MassTransit, what should I handle the error queue? Error messages would be accumlating. It's pressing storage capacity. It seems that I have nothing to do for the error queue. Is there no choice but to remove them? If so, I cannot imagine a meaning of the error queue. 回答1: The meaning of error queues is very simple. Messages come to error

Does a CQRS project need a messaging framework like NServiceBus?

有些话、适合烂在心里 提交于 2019-12-10 15:33:46
问题 The last 6 months learning curve have been challenging with CQRS and DDD the main culprits. It has been fun and we are 1/2 way through our project and the area I have not had time to delve into is a messaging framework. Currently I don't use DTC so there is a very good likely hood that if my read model is not updated then I will have inconsistency between the read and write databases. Also my read and write database will be on the same machine. I doubt we will ever put them on separate

Masstransit temporary queue

不问归期 提交于 2019-12-10 10:20:41
问题 I'm developing client application which use masstransit and rabbitmq. On application start I'm creating new queue with unique name for communication with server applications via masstransit(request/response model). On application closing I should delete this queue, but if client application crushes queue will present on rabbitmq. Is it possible to create temporary queue via masstransit which rabbitmq will automatically delete when client disconnects from queue? 回答1: You can create a temporary

Why am I getting messages in the skipped queue

痞子三分冷 提交于 2019-12-10 09:34:53
问题 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 FileSavedToMsg(correlationId, fileLoc) Publishes FileMetadataMsg(correlationId, metadata) Publishes FileReadyMsg(correlationId, fileLoc) Downstream endpoint of does some work on the file Consumer<FileSavedToMsg> Publishes SomeOtherMsg(GotTheFileMsg.correlationId, data)

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

安稳与你 提交于 2019-12-10 01:06:52
问题 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 move message from error queue to normal queue? Thank you 回答1: a) they fail to deserialize or b) the consumer throws an exception processing that message five times Not really... If you peek at the message in the queue, the payload headers might