Reputation:
Other than latency, is there a significant disadvantage to looping through a list of web services to post the event?
Dispatcher(event) {
var services = getServices();
for each service in services {
callService(service, event);
}
}
Edit:
As opposed to what? – Peter Ritchie
Other questions – Ruben Bartelink
Supplemental info from my research yesterday:
In terms of choosing a communication method, its useful to know about enterprise service bus (ESB)http://en.wikipedia.org/wiki/Enterprise_service_bus. In the .net world, nservicebus seems to be popular, but is not free, and mass transit is free, but I'm having trouble building and running the samples. T.T
A good general overview of messaging vs web services by one of they guys behind mass transit: http://blip.tv/ineta-live/event-driven-architecture-by-chris-patterson-north-dallas-net-ug-on-02-03-2010-3193457
Upvotes: 1
Views: 434
Reputation: 38346
Publishing events by calling various web services directly from your user facing application layer may prove troublesome if:
By publishing the events via a queue to some working application, resposible for invoking the various web serivces, your front end application need not fail due to any of the above.
Upvotes: 2