The time difference could be due to any number of things, including other work the server may have been doing at the time.
“pub/sub is being used here to have loose coupling between the two systems”
Using pub/sub in a request/reply mode provides almost no loose coupling. You get decoupling at the communication level, which is an okay thing, but you’re still coupled by the messages that are exchanged AND by the fact that the replier must be on-line and responsive. If you’re worried about 300ms response time, then pub/sub is not the right solution. Particularly with IS as the Broker client. The Broker is speedy and can pump a ton a messages out in a short time. The IS is distinctly less focused on throughput.
Being able to change the location of the replier without needing to change anything on the requestor is a nice thing–but how often does that sort of change really happen?
Pub/sub can be a powerful construct. IMO, it is generally a poor mechanism to use for request/reply interactions in terms of real benefits.
#Integration-Server-and-ESB#broker#Universal-Messaging-Broker#webMethods