Search the web
Sign In
New User? Sign Up
nservicebus
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want your group to be featured on the Yahoo! Groups website? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Central "ESB' with NServicebus   Message List  
Reply | Forward Message #2791 of 4415 |
RE: [nservicebus] Re: Central "ESB' with NServicebus

Do let us know which problems you haven't found solutions for.

 

-- Udi Dahan

 

From: nservicebus@yahoogroups.com [mailto:nservicebus@yahoogroups.com] On Behalf Of michaelnye@...
Sent: Friday, July 03, 2009 9:59 AM
To: nservicebus@yahoogroups.com
Subject: [nservicebus] Re: Central "ESB' with NServicebus

 




This is actually the exact same scenario I have been using nServiceBus for. From the research I did nServiceBus is the most appropriate .Net solution for the problem apart from possible building a custom architecture.

Our setup at the moment (still developing) involves a single publisher on the database server which essentially does nothing except handle subscription messages to fill the subscription database. Everything else is essentially both a publisher and subscriber, however we have a fair few message types so some nodes will publish some messages and subscribe to others. The only thing publishers and subscribers need to know is where the database server is, which allows complete seperation between the two.

It is not the standard use of nServiceBus from what I have seen but so far it has been working very well. I have encountered a few problems which I am yet to find a solution for but overall everything looks to do its job well.

I am interested to hear if you find any other alternatives to nServiceBus or how you go implementing it. Hopefully within the next few weeks I will be able to spend some time working on our implementation and be able to provide some help if needed :)

--- In nservicebus@yahoogroups.com, "Udi Dahan" <thesoftwaresimplist@...> wrote:
>
> Stephen,
>
>
>
> Actually all messages already derive from a common base - IMessage. You can
> write a handler for IMessage and all messages will be dispatched to it.
>
>
>
> -- Udi Dahan
>
>
>
> From: nservicebus@yahoogroups.com [mailto:nservicebus@yahoogroups.com] On
> Behalf Of swoolhead
> Sent: Friday, June 26, 2009 10:26 PM
> To: nservicebus@yahoogroups.com
> Subject: [nservicebus] Re: Central "ESB' with NServicebus
>
>
>
>
>
>
>
>
>
> I have a tier of front end web servers that receive messages from hardware
> we have scattered over the internet and then have a set of back end services
> that subscribe to this information.
>
> Rather than have each back end service subscribe to each of these front end
> web servers, what I have done is have these servers send, rather than
> publish their messages to a central repeater, then all the back end services
> subscribe to the repeater.
>
> If you derive all your messages from a common base class, you can add a
> generic handler in the repeater that just receives and publishes all
> messages sent to you. This does be become a single point of failure now so
> you should consider things like failover clustering for it.
>
> Cheers,
>
> Stephen.
>
> --- In nservicebus@yahoogroups.com <mailto:nservicebus%40yahoogroups.com> ,
> "rmontgomery429" <rmontgomery429@> wrote:
> >
> > Specifically we have a couple web applications that right now share
> information through database integration. For many reasons we would like to
> move away from this.
> >
> > So EcomAppA, and EcomAppB need to know about customer shipping
> information. We have another web app, CustomerManager that we use to manage
> customer information including shipping information.
> >
> > So the idea is to have the CustomerManager publish a
> CustomerShippingInfoUpdated message to "the bus" and any interested parties
> (subscribers) would pick up on that change.
> >
> > Later when we add a new app that needs Customer Shipping Information, we
> just have it subscribe to "CustomerShippingInfoUpdated" messages.
> >
> > I guess the subscribers would have to subscribe to something like
> messageBus@TheCustomerManagerMachine?
> >
> > This is fine, but the idea with something "central" was that maybe we add
> another application that can also update Customer Shipping Info. So now
> everybody has to change to listen to another machine.
> >
> > Is my goal just not practical?
> >
> > I appreciate your help.
> >
> > Ryan
> >
> >
> > --- In nservicebus@yahoogroups.com <mailto:nservicebus%40yahoogroups.com>
> , "Udi Dahan" <thesoftwaresimplist@> wrote:
> > >
> > > > My goal is to have our apps that publish messages be ignorant of who
> is
> > > subscribing to them
> > >
> > > > and also have my subscribing apps remain ignorant of who publishes
> > > messages.
> > >
> > >
> > >
> > > It sounds like what you're looking for is an EAI broker (enterprise
> > > application integration).
> > >
> > >
> > >
> > > MSMQ isn't that.
> > >
> > > Neither is nServiceBus.
> > >
> > >
> > >
> > > A bus isn't a broker - there is no central bus. That's actually an
> oxymoron.
> > >
> > >
> > >
> > > With the current implementations in the box of nServiceBus, you'd have a
> > > queue on every machine (more or less - probably more).
> > >
> > >
> > >
> > > If you could describe what you're system does, I could suggest places
> where
> > > nServiceBus would provide you the most value.
> > >
> > >
> > >
> > > Hope that helps,
> > >
> > >
> > >
> > > -- Udi Dahan
> > >
> > >
> > >
> > > From: nservicebus@yahoogroups.com <mailto:nservicebus%40yahoogroups.com>
> [mailto:nservicebus@yahoogroups.com <mailto:nservicebus%40yahoogroups.com> ]
> On
> > > Behalf Of Ryan Montgomery
> > > Sent: Wednesday, June 24, 2009 6:57 PM
> > > To: nservicebus
> > > Subject: [nservicebus] Central "ESB' with NServicebus
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > Do applications using NServiceBus have to target a specific machine when
> > > publishing messages?
> > >
> > > Is there a way to publish a message to a global bus and have all the
> other
> > > apps that subscribe to that message type just pick up on it? It seems I
> > > would have to set up an actual machine with MSMQ running and a queue
> named
> > > MessageBus to do this. But then every machine that wants to publish
> messages
> > > to the bus will have to target MessageBus@CentralMechineName - is this
> the
> > > only way? Does MSMQ provide a logical "global" queue that is distributed
> > > across machines or something like that?
> > >
> > > My goal is to have our apps that publish messages be ignorant of who is
> > > subscribing to them and also have my subscribing apps remain ignorant of
> who
> > > publishes messages.
> > >
> > > Maybe this question is more about MSMQ than NServicebus - I don't know.
> > >
> > >
> > > Thank you for your input.
> > >
> > > Ryan Montgomery
> > >
> >
>



Fri Jul 3, 2009 8:55 am

udidahan7
Offline Offline
Send Email Send Email

Attachment
image001.jpg
Type:
image/jpeg
Attachment
image002.jpg
Type:
image/jpeg
Forward
Message #2791 of 4415 |
Expand Messages Author Sort by Date

Do applications using NServiceBus have to target a specific machine when publishing messages? Is there a way to publish a message to a global bus and have all...
Ryan Montgomery
rmontgomery429
Offline Send Email
Jun 24, 2009
3:57 pm

Hi Ryan, I'm no nservicebus wizard but there was an article on the list recently that taked about 'distributed processing'. Sounds like a similar setup you're...
Ernst Naezer
ernstnaezer
Offline Send Email
Jun 24, 2009
5:59 pm

... subscribing to them ... messages. It sounds like what you're looking for is an EAI broker (enterprise application integration). MSMQ isn't that. Neither is...
Udi Dahan
udidahan7
Offline Send Email
Jun 24, 2009
8:59 pm

Specifically we have a couple web applications that right now share information through database integration. For many reasons we would like to move away from...
rmontgomery429
Offline Send Email
Jun 25, 2009
5:14 pm

Ryan - No, your goal is entirely practical. In NServiceBus the way that pub / sub works is that the subscriber sends a request to the publisher which is a...
Matt Burton
matt.burton
Offline Send Email
Jun 25, 2009
5:26 pm

Yes, that does help. Thank you! ... -- Ryan Montgomery...
Ryan Montgomery
rmontgomery429
Offline Send Email
Jun 25, 2009
5:31 pm

Ryan, You actually bring up a good example as to the difference between an application and a service. Often due to mergers and acquisitions we end with...
Udi Dahan
udidahan7
Offline Send Email
Jun 26, 2009
5:57 am

OK. I'm still trying to grok this. :) I'm sure you're giving me the answers to my questions but I'm stil missing something I think. So all subscriptions are...
Ryan Montgomery
rmontgomery429
Offline Send Email
Jun 26, 2009
1:13 pm

Subscribers don't know about how publishers store subscription information - as such, they just send messages to the publisher saying which kind of messages...
Udi Dahan
udidahan7
Offline Send Email
Jun 26, 2009
3:36 pm

Thank you for this explanation. this is making more sense now that I understand that piece. So the subscriber has to know who the publishers are? To bring a...
Ryan Montgomery
rmontgomery429
Offline Send Email
Jun 26, 2009
3:47 pm

Subscribers would need to know where they should send their subscription requests to, other than that, they don't care which physical machines are doing the...
Udi Dahan
udidahan7
Offline Send Email
Jun 26, 2009
7:22 pm

I have a tier of front end web servers that receive messages from hardware we have scattered over the internet and then have a set of back end services that...
swoolhead
Offline Send Email
Jun 26, 2009
7:26 pm

That makes sense, yes. I think I just need to give it a try and see what happens. Thank you very much for your help. - Ryan ... -- Ryan Montgomery...
Ryan Montgomery
rmontgomery429
Offline Send Email
Jun 26, 2009
7:29 pm

Stephen, Actually all messages already derive from a common base - IMessage. You can write a handler for IMessage and all messages will be dispatched to it. --...
Udi Dahan
udidahan7
Offline Send Email
Jun 26, 2009
7:43 pm

This is actually the exact same scenario I have been using nServiceBus for. From the research I did nServiceBus is the most appropriate .Net solution for the...
michaelnye@...
michaelnye...
Offline Send Email
Jul 3, 2009
6:59 am

Do let us know which problems you haven't found solutions for. -- Udi Dahan From: nservicebus@yahoogroups.com [mailto:nservicebus@yahoogroups.com] On Behalf Of...
Udi Dahan
udidahan7
Offline Send Email
Jul 3, 2009
8:56 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help