Page 2 of 7
When evaluating whether to use a message-oriented design it is important to understand the pros and cons of such a system. The pros include:
In general, a message-oriented approach proves more flexible than an RPC approach.
Now here are some cons:
Considering the pros and cons, when should you use a message-oriented approach? The most common scenario occurs when the client/server communication takes place over the Internet and the client and server belong to different companies. In this scenario it could be fairly difficult to have the two companies agree on the procedure interface. Also, it's possible that the companies might not want to use the same programming language. In another example, the companies involved may want to use an asynchronous communication model so that neither will depend on the other's application being up and running.
Another attractive messaging scenario occurs when you're developing an event-based system in which events are created and then consumed by interested parties. Most GUIs are event-based. For instance, they might create a mouse click event in which interested parties listen for the event and perform some action based on it. In this scenario, using a messaging approach allows you to remove the dependency between an event (or action in a system) and the system's reaction to the event that is performed on the server.
Now that we understand a bit about messaging, we're ready to add XML to the equation. The addition of XML to messaging means that we are able to make use of a flexible data formatting language for our messages. In messaging, both the client and the server need to agree on a message format. XML makes this easier by deciding many data formatting issues and with the addition of other XML standards such as Rosetta Net. No additional work is required to come up with a message format.
A message broker acts as the server in a message-oriented system. Message broker software performs operations on messages it receives. These operations include:
I want you to tell me more about xml and messaging as two separate wordsBy Anonymous on August 8, 2009, 3:06 amI want you to tell me more about xml and messaging as two separate words
Reply | Read entire comment
View all comments