nservicebus

Where to raise persistence-dependent domain events - service, repository, or UI?

孤者浪人 提交于 2019-12-03 03:37:13
问题 My ASP.NET MVC3 / NHibernate application has a requirement to fire off and handle a variety of events related to my domain objects. For example, an Order object might have events like OrderStatusChanged or NoteCreatedForOrder . In most cases these events result in an email being sent, so I can't just leave them in the MVC app. I've read through Udi Dahan's Domain Events and dozens of other thoughts on how to do this sort of thing, and I decided on using an NServiceBus-based host that handles

Is NServiceBus an ESB at all

纵然是瞬间 提交于 2019-12-03 03:04:28
Is NServiceBus a ESB or lightweight ESB at all? or is it more like WCF with durable/ reliable messaging? It looks to me more like a messaging framework than ESB. just want some pointer as I am just started looking into different ESB products and what they are able to do or not. Chris Bednarski NServiceBus is definitely an ESB. Full Stop. Enterprise Service Bus, a Bus, meaning a thing that allows, by design, for components of a system to be distributed and work independently. The bus itself is also distributed. A failure of one component or service doesn't affect the availability of other

What is a servicebus and when do I need one?

核能气质少年 提交于 2019-12-03 00:16:15
问题 I have heard talk about the NServiceBus, but I haven't really understood what it is. They claim to be "The most popular open-source service bus for .net". So; what is a "service bus", and when do I need one? 回答1: You can think of a service bus as the Ethernet of SOA. First and foremost, it introduces a language of identifying things, like an IP address in Ethernet. This name isn't something inherently physical. Next, you have something physical involved on each node, like a queue in the case

nServiceBus vs Mass Transit vs Rhino Service Bus vs other?

允我心安 提交于 2019-12-03 00:14:28
问题 Just doing some quick spikes into possibly using a messaging system to process files that are in a nicely decoupled work flow system. What are the pro's and cons that people have found of using each of the above frameworks? What are the advantages of using these versus a hand-rolled MSMQ system with the WCF bindings and/or non-MSMQ solutions?? 回答1: I'd recommend staying away from hand-rolled solutions as there is a bunch of somewhat difficult stuff that needs to be gotten just right - like

Does an NServiceBus error mean that messages are not processed in the right order?

血红的双手。 提交于 2019-12-02 19:49:11
问题 Say I have a banking app (I am not developing a banking app, however I believe it gets my point across as it is used in a lot of Event Sourcing examples), which generates the following messages: 1) Apply £110 withdrawal to account A 2) Apply £70 credit to account A 3) Apply £99 withdrawal to account A 4) Apply £42 withdrawal to account A Say that account A does not have an overdraft. Now say that the third message fails because of an error specific to that message only e.g. serialization

Exception in RavenDB.SagaPersister.Save, “Guid should contain 32 digits with 4 dashes”. Guid is empty in Raven

只谈情不闲聊 提交于 2019-12-02 19:25:56
问题 NServiceBus 5.1, RavenDB persistence, AutoFac container, log4net, all latest versions in NuGet at time of posting. EndpointConfig: log4net.Config.XmlConfigurator.Configure(); LogManager.Use<Log4NetFactory>(); // Raven DataStore for Freight system var freightDataStore = new DocumentStore { ConnectionStringName = "RavenDB", DefaultDatabase = "ProTeria.Freight" }; freightDataStore.Initialize(); freightDataStore.Conventions.IdentityPartsSeparator = "-"; Raven.Client.Indexes.IndexCreation

Using NServiceBus with Asp.Net MVC 2

依然范特西╮ 提交于 2019-12-02 18:55:16
Is there a way to using NServiceBus with Asp.Net MVC 2? I want to send a request message from a Asp.Net MVC2 Application to a Service, which handle the message and reply with a response message. is there a way to do this clearly? Udi Dahan If you really want to do this, here's how: var sync = Bus.Send<SomeMessage>(/*data*/) .Register((AsyncCallback)delegate(IAsyncResult ar) { var result = ar.AsyncState as CompletionResult; // do something with result.Messages }, null ); sync.AsyncWaitHandle.WaitOne(/*timeout*/); Andreas Öhlund There is a reason that NServiceBus only supports registering

NServiceBus vs Windows ServiceBus

柔情痞子 提交于 2019-12-02 17:51:38
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 I'm responsible for the Windows Azure ServiceBus support in NServicebus. And in my opinion this new Windows

Where to raise persistence-dependent domain events - service, repository, or UI?

两盒软妹~` 提交于 2019-12-02 17:05:46
My ASP.NET MVC3 / NHibernate application has a requirement to fire off and handle a variety of events related to my domain objects. For example, an Order object might have events like OrderStatusChanged or NoteCreatedForOrder . In most cases these events result in an email being sent, so I can't just leave them in the MVC app. I've read through Udi Dahan's Domain Events and dozens of other thoughts on how to do this sort of thing, and I decided on using an NServiceBus-based host that handles event messages. I've done a few proof-of-concept tests and this seems to work well. My question is what

NServiceBus license? [closed]

人走茶凉 提交于 2019-12-02 15:49:54
Update: The most current licensing info can be found here: http://particular.net/licensing So, I am reading the license restriction for NServiceBus Community Edition. It says: Production use is limited to a single server with no more than 4 cores. Does that mean that all the subscribers and all the publishers need to be running on a single server? Or does it mean that each server that is either a publisher or a subscriber can have no more than 4 cores? I am hoping it is the later as we had planned to use NServiceBus to allow several applications (and services) running on several different