nservicebus

Cofiguring an endpoint to act both as worker and subscriber

柔情痞子 提交于 2019-12-03 21:33:32
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 means, a worker have to be configured to receive messages from the distributor. I use the following

SignalR and NServiceBus in a WebFarm

拈花ヽ惹草 提交于 2019-12-03 20:19:34
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 it would send a response back which would show a notification to the user. If there are some articles

Why do we need service bus frameworks like NService Bus/MassTransit on top of message queuing systems like MSMQ/RabbitMQ etc?

左心房为你撑大大i 提交于 2019-12-03 18:00:08
问题 In the distributed message transaction world, am trying to understand the different parts that are involved in developing distributed systems. From what I understand you can design messaging system using enterprise bus backed with a message queue system. Why is it a good idea to use both? Can the same be achieved by programming against just the message queuing system? What are the advantages of using both together? 回答1: You certainly can code directly against the messaging infrastructure and

NServiceBus: Pros and Cons of using NServiceBus Distributor

不问归期 提交于 2019-12-03 16:09:26
I am considering using a Network Load Balancer to load balance messages between my subscriber instances, instead of using the NServiceBus distributor (which is basically just a software load-balancer from what I can tell). Each subscriber instance will have a queue of the same name for messages to be delivered to, and there will be a virtual IP that round-robins between the subscribers. The publisher will only know about the virtual IP and queue name. Here is what I understand as the pros and cons of doing this: PROS No need to install NServiceBus Distributor One less thing that would need to

How to implement a competing consumer solution?

此生再无相见时 提交于 2019-12-03 11:36:50
As a exercise I'm trying to find an example which implements competing consumer. many producers - > MSMQueue <- competing consumers So far I did not find any documentation on how to achieve this. My first attempt to figure out how is implemented in MassTransit or NServiceBus failed to many layers of indirection. Any help will be greatly appreciated. Cocowalla With MassTransit and MSMQ you can achieve this using the Distributor component. Note that if you use MassTransit with RabbitMQ instead of MSMQ, you can implement a competing consumer scenario without using the Distributor, simply by

Pros/Cons of using BizTalk instead of NServiceBus or MassTransit

感情迁移 提交于 2019-12-03 11:09:15
I am curious if it even makes consider BizTalk for the implementation of a pub/sub messaging architecture (basically what you can do with NServiceBus or MassTransit is all I really need). My manager tends to want to stick with frameworks provided directly from Microsoft and so as part of my due diligence as to which one to use I need to give a good set of pro/cons for both sides. Any guidance would be greatly appreciated! One of the major cons of a Broker is that it is very difficult to version and upgrade. You would have to stop the flow of messages to upgrade a particular endpoint(s). A

NServiceBus with Unity 2.0?

隐身守侯 提交于 2019-12-03 10:35:58
Anyone using NServiceBus 2.0 successfully with Unity 2.0? I've tried to compile sources of NServiceBus.ObjectBuilder.Unity.dll against Unity 2.0 assemblies but got several compile-time errors because of changed/deleted signatures of many object methods in new Unity. In the documentation Udi Dahan says that attaching any container is as easy as implementing 5 methods of IContainer . But when i look into NServiceBus.ObjectBuilder.Unity implementation i see that there is a LOT more work to be done. Why it is so? Unity, by default, behaves different from what NSB expects. That's why there is a

What is a servicebus?

♀尐吖头ヾ 提交于 2019-12-03 08:53:39
问题 I've read about nservicebus countless times on the net, but still don't get what a service bus is. All I think is it is a way for very disparate systems to talk to each other? In which case, I don't see why it is any better than WCF? I've seen the thread on here about what a service bus is but it still hasn't clicked. Thanks 回答1: Assuming that you have read these pages http://particular.net/nservicebus and http://docs.particular.net/nservicebus/architecture/nservicebus-and-wcf you'll find

NServiceBus Publish() vs. Send() in website context

非 Y 不嫁゛ 提交于 2019-12-03 05:51:26
I'm looking to gain a better understanding of why it is recommended to never Publish() messages from a website using NServiceBus ( NServiceBus Documentation , scroll about two thirds of the way down). Doesn't it make semantic sense to Publish() events, and to Send() commands? If so, I think it makes sense that a web application can both Publish() and Send() :-) Also, given that using Publish() doesn't require the web application to know about the recipients of the messages (Send() requires the web application to have all recipient endpoints configured), it feels like Publish() is a better

NServiceBus vs Windows ServiceBus

爱⌒轻易说出口 提交于 2019-12-03 05:28:59
问题 Would someone be able to shed some light on the differences between the newly release Windows ServiceBus (on premise, not Azure) and NServiceBus? Looking for a detailed answer what the windows SB may be missing as I'm familiar what NSErviceBus can do: Is it a real service bus and not just a message broker that uses queues? Can it support message polymorphism? (Messages subclassing other messages and handlers supporting this hierarchy Long running processes and correlation Scale out 回答1: I'm