Reputation: 73
I have load balanced web servers, that with the existing code base, handles when a user logs into the site. I would like to send a broadcast message to any applications that have subscribed saying 'hey x logged in' ? So have many web servers and many applications subscribing.
How does discovery work/configuration work with nservicebus ? Should each application know about each web server and subscribe individually or is this where the distributer comes in, so web servers all send to the 1 distributer and all application subscribe to single distributer and the distributer relays the message ?
I've tried to research this, but having troubles.
Thanks
MrT
Upvotes: 3
Views: 484
Reputation: 18645
First, see the guidance about publishing a message from a web application (or more specifically, about NOT publishing a message from a web application).
Taking all that in consideration, I would recommend your webservers Send() a message to a central event aggregator, which could then Publish() events that other applications (or your web applications) could subscribe to.
More specifically:
Upvotes: 3