nservicebus

nservicebus concurrent access to saga data

半腔热情 提交于 2019-12-07 10:10:55
问题 i use NServiceBus as enterprise Service Bus, in the solution i'm developing i have an orchestration service which receives up to 10k messages from all client applications. I would like to improve the architecture performance and consequently enhance the solution provided. I use a Saga Data class and i would like to share the access to it between all worker threads(up to now i set just to one thread but i want to set at least to 10), what happens when multiple threads try to access the same

How do I Unit Test NServiceBus.Configure.WithWeb()?

半世苍凉 提交于 2019-12-07 09:00:44
问题 I'm building a WCF service that receives requests on an external IP and translates them into messages that are sent via NServiceBus. One of my unit tests invokes Global.Application_Start() , which performs the configuration of the application, and then attempts to resolve the web service to validate that the container can build up all of the dependencies. This works fine when I'm using Configure.With() in my windows services, but the call to Configure.WithWeb() fails in this context

NServiceBus Warning “No handlers could be found for message type”

狂风中的少年 提交于 2019-12-07 01:50:39
问题 I am new to NServiceBus and am trying to develop a publisher and separate subscriber (I’m using v3.2.0.0) which, so far, is sort of working ok – both the publisher and subscriber are running in NServiceBus Host. My messages all publish ok but intermittently they do not get picked up by the subscriber, with the following error being displayed by the publisher: 2012-09-05 14:27:37,491 [Worker.6] WARN NServiceBus.Unicast.UnicastBus [(null)] <(null)> - No handlers could be found for message type:

What is the correct way to use the timeout manager with the distributor in NServiceBus 3+?

懵懂的女人 提交于 2019-12-07 00:15:17
问题 Version pre-3 the recommendation was to run a timeout manager as a standalone process on your cluster, beside the distributor. (As detailed here: http://support.nservicebus.com/customer/portal/articles/965131-deploying-nservicebus-in-a-windows-failover-cluster). After the inclusion of the timeout manager as a satellite assembly, what is the correct way to use it when scaling out with the distributor? Should each worker of Service A run with timeout manager enabled or should only the

NServiceBus How To Publish Message From 2 Physical Locations Of 1 Logical Service

可紊 提交于 2019-12-06 16:33:32
is it possible to publish a message from 1 logical service that is deployed to 2 physical locations? how would the config file look like? you cannot add a message in your subscriber 2 times. but you must if you want to subscribe to 2 queues. Yes, it's very possible. We're doing it right now. The trick is to have either a shared or replicated subscription store. Here's how it works: The subscription request (as defined in your subscriber's application configuration file) is sent to an endpoint of the publisher. The publisher adds the request to its subscription store which is often a relational

Something making NServiceBus lose messages

一个人想着一个人 提交于 2019-12-06 11:52:30
问题 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

Safe to host NServiceBus publisher inside IIS?

人盡茶涼 提交于 2019-12-06 10:31:24
I was wondering if it's safe to host an NServiceBus endpoint that serves as an event publisher inside IIS? To clarify, we use an application hosted in IIS as our CRM system (Microsoft Dynamics CRM), and I want to use NServiceBus to publish an event when a contact's information is updated. MS CRM allows the use of custom plugins to react on a contact update, and I intend to create a plugin that publishes a 'ContactUpdated' event through NServiceBus for that situation. Hence, this will effectively mean that my NServiceBus event publishing endpoint is hosted in IIS. Now, I know that a self-hosted

Anyone using Ninject 2.0 as the nServiceBus ObjectBuilder?

非 Y 不嫁゛ 提交于 2019-12-06 05:39:44
问题 I have been trying to get nServiceBus to work with Ninject 2.0 as the underlying IoC container unsuccessfully. While I can achieve basic integration, I've had issues with "ghost" messages getting sent to the various subscribers. I used the Autofac implementation as a template of sorts, replacing the necessary pieces with Ninject-specific code. Further, I did have to create a custom heuristic to get auto-property injection to occur. Regardless, the behavior I see is that a first message can be

How to handle message order in nservicebus?

别等时光非礼了梦想. 提交于 2019-12-06 05:27:16
I'm trying to find a way to process messages in the order they were sent from the sender since NServiceBus does not guarantee that messages will be processed in a particular order. The sender is an order system which publishes createOrder and reviseOrder commands. The sender allows the user to submit multiple revisions to the same order so there can be revision 4 and revision 3 in the queue at the same time. Each revision has a revision number and reason code associated with it which drives some business logic so we cannot ignore any revisions or at least the reason part of it. A couple of

Distributor and worker end point queue in same machine

微笑、不失礼 提交于 2019-12-06 04:05:30
I am using NServiceBus 3.2.2.0, trying to test distributor and worker in same machine. I noticed distributor is creating following queues EndPointQueue EndPointQueue.distributor.control EndPointQueue.distributor.storage EndPointQueue.retries EndPointQueue.timeouts And worker is creating a new queue something like: EndPointQueue.5eb1d8d2-8274-45cf-b639-7f2276b56c0c Is there a way to specify worker end point queue name instead of worker creating a queue by prefixing random string with end point queue? Since it doesn't really make sense to run a worker on the same machine as the master