nservicebus

Cofiguring an endpoint to act both as worker and subscriber

和自甴很熟 提交于 2019-12-05 09:52:44
问题 Is it possible to configure an endpoint to act as a worker retrieving jobs from a distributor AND subscribe to some kind of messages? I have the following scenario ( adapted to sale terminology) *) a central department publishes every now and then a list of the new prices. All workers have to be notified. That means, a worker should subscribe to this event. *) when a new order arrives at the central, it sends it to the distributor, which send it to the next idle worker to be processed. That

Managing RavenDB IDocumentSession lifecycles with StructureMap for NServiceBus and MVC

旧时模样 提交于 2019-12-05 08:34:44
I am using NServiceBus v4.3, MVC4, RavenDB 2.5 and StructureMap 2.6.4 in our solution. I am having a similar issue under StructureMap to that described in this question 's responses where I require different lifecycles for the MVC Controller and NServiceBus Handler use of RavenDB's IDocumentSession in my Web project. Specifically in my case what happens is that if I use the HybridHttpOrThreadLocalScoped (as the above answer suggests for Windsor) lifecycle the sessions are not properly disposed of and I soon hit the 30 transaction limit error. If I use the HttpContext lifecycle my NSB event

SignalR and NServiceBus in a WebFarm

こ雲淡風輕ζ 提交于 2019-12-05 02:21:48
问题 I am trying to understand if/how this works. Can SignalR and NServiceBus be used together to support full duplex on a web farm where the request could be sent from a server then later the response would come back but the user may be on another server. The use case for this would be a user submits a form which then takes a while to process say 3-5 minutes. During that time the user is doing other things and could be switching between servers due to load balancing. Once the process is complete

Something making NServiceBus lose messages

独自空忆成欢 提交于 2019-12-04 15:57:51
I have an NServiceBus configuration that is working great on developers machines and in my Development Environment. However, when I move it to my Test Environment my messages just start getting tossed. Here is the system: An app gets a TCP message from a Mainframe system and sends it to a MSMQ (call it FromMainframe ). An application hosted in IIS has a "Handle" method for that MSMQ and processes the messages from the mainframe. In my Test Environment, step two only half way happens. The message is popped off the MSMQ, but not processed by my application. Effectively my data is LOST !

What is causing EventStore to throw ConcurrencyException so easily?

半腔热情 提交于 2019-12-04 11:50:19
Using JOliver EventStore 3.0, and just getting started with simple samples. I have a simple pub/sub CQRS implementation using NServiceBus. A client sends commands on the bus, a domain server recieves and processes the commands and stores events to the eventstore, which are then published on the bus by the eventstore's dispatcher. a read-model server then subscribes to those events to update the read-model. Nothing fancy, pretty much by-the-book. It is working, but just in simple tests I am getting lots of concurrency exceptions (intermittantly) on the domain server when the event is stored to

Swapping out MSMQ for RabbitMQ in NServiceBus

主宰稳场 提交于 2019-12-04 10:52:18
问题 Udi mentions here that "people have swapped out the MSMQ layer of NServiceBus and plugged in RabbitMQ in its place". I'm looking to do the same thing with the end goal of being able to run an app built with NServiceBus on Mono/Linux with AMQP. Before diving in though I'd like to get some feedback from people who might have done this already about pitfalls to avoid, red herrings etc. Alternatively if the approach is a massive undertaking, it might be best to just use RabbitMQ directly, but if

Managing RavenDb session in Windsor under NServiceBus

不羁的心 提交于 2019-12-04 07:34:15
I'm using NServiceBus (3.2.2), RavenDB (1.2.2017-Unstable) and Windsor (3.0.0.4001) in an MVC 4 project. I have a IHandleMessages class that handles 3 different messages, and that needs an IDocumentSession, and therefore defines a property such as: public IDocumentSession DocumentSession { get; set; } I've copied the RavenDbUnitOfWork implementation from NServiceBus' website I've registered IDocumentStore, IDocumentSession and IManageUnitsOfWork in my Windsor container as follow: container.Register( Component .For<IManageUnitsOfWork>() .ImplementedBy<RavenUnitOfWork>() .LifestyleTransient() );

NServiceBus Retry Delay

前提是你 提交于 2019-12-04 05:40:50
What is the optimal way to configure/code NServiceBus to delay retrying messages? In its default configuration retry happens almost immediately up to the number of attempts defined in the configuration file. I'd ideally like to retry again after an hour, etc. Also, how does HandleCurrentMessageLater() work? What does the Later aspect refer to? Andreas Öhlund The NSB retries is there to remedy temporary problems like deadlocks etc. Longer retries is better handled by creating another process that monitors the error queue and puts them back into to the source queue at the interval you like. Take

Integrating SQL Service Broker and NServiceBus

北战南征 提交于 2019-12-04 04:59:12
问题 My requirement is that I have "items" with different states. I need to do all kinds of different things based on the states of these items (send emails, store files, update internal applications, etc). The problem is that the application that updates these statuses is third party, so I can't update it; furthering the difficulty is the fact that only half of the organization is using this system and the other are using it's future replacement. I do have open access to both of the databases

Read SQL Server Broker messages and publish them using NServiceBus

流过昼夜 提交于 2019-12-04 02:30:00
问题 I am very new to NServiceBus, and in one of our project, we want to accomplish following - Whenever table data is modified in Sql server, construct a message and insert in sql server broker queue Read the broker queue message using NServiceBus Publish the message again as another event so that other subscribers can handle it. Now it is point 2, that I do not have much clue, how to get it done. I have referred the following posts, after which I was able to enter the message in broker queue,