rebus

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

SqlConnection and avoiding promotion to MSDTC

谁说我不能喝 提交于 2019-12-10 01:56:52
问题 When we need to do database access in our application, we use the following patterns: For querying, we have a static factory class with a method CreateOpenConnection which does nothing more than new SqlConnection(myConnectionString) and calls Open() on it. This method gets called before we do a query and the connection is disposed after the query returns. For inserts/updates/deletes we use a Unit of Work pattern where the changes are batched up and submitted to the database with a call to

Rebus: 2 handlers in 2 processes. Hit inconsistently and alternately

蓝咒 提交于 2019-12-08 02:17:15
问题 I have two console apps using Rebus. They both reference an assembly where messages (commands and events) are defined. Console app "A" sends commands and listens to events for logging purposes (e.g.: sends a CreateTCommand and listens for TCreatedEvent). Console app "B" (which is actually an ASP.NET Core app) listens to commands and handles them (e.g.: a saga is initiated by CreateTCommand, the aggregate is created and it raises a TCreatedEvent). In another DLL inside the process of app "B"

How should I set rebus up for one producer and many consumers

醉酒当歌 提交于 2019-12-07 07:22:43
问题 I am going through the samples and reading the docs but I am still not sure of how to configure rebus for my scenario (or that using the bus is a good fit). I have one producer of Tasks to do, lets say ImportOrder and CalculateOrderPrice I want to dump messages from the producer and queue lots of these messages. I want two clients that listens to ImportOrder, and 10 clients that listens to CalculatePriceOfOrder. I do not want the same order to go to multiple endpoints at the same time, I am

Multiple input queues in one rebus process

早过忘川 提交于 2019-12-05 18:55:57
I'm writing a "multi-workers" application using top-shelf and rebus. My idea is to use the MyWorker1Namespace - MyWorker1Namespace.Messages , MyWorker2Namespace - MyWorker2Namespace.Messages pattern. I would like to run the application without spanning multiple process, instead I would like to configure the application with moultiple input queues in order to be ready to split it up to multiple processes if necessary. Is there any way to declare multiple input queues and multiple worker threads in one application using Rebus? I guess configuration should be something like this: <rebus