Ask the Expert

What are the pros/cons of using SMTP/POP3 vs. MQ?

To expand on the MQ vs. HTTP question -- what are the pros/cons of using SMTP/POP3 vs. MQ?

    Requires Free Membership to View

E-Mail and MQ (Message Queueing) are similar in that information to be exchanged is encapsulated in self-contained messages, which carry a header, a body, and addressing information. Both systems rely on store-and-forward communications for decoupling senders and receivers of messages.

E-mail was designed mainly for human-to-human interactions. The "API" is a Mail User Agent such as Eudora, Netscape Messenger, MS Outlook, etc. E-mail is typically reliable, but cannot offer the delivery guarantees required by mission critical applications. Mission critical applications often require guaranteed delivery of messages, transactional messages, and low latency. In e-mail, messages can still be lost when a mail folder has exhausted its disk quota, when a mail server is down, or when a mail server has exhausted the available disk space. In this case, the sender will receive a "failure report", and the original message is discarded by the mail system.

Still there are situations where it makes lots of sense to let applications communicate via e-mail:

- Since the applications run at two different companies, and e-mail is the only communications protocol supported between these two companies
- Since lose-coupling is required
- Since guaranteed delivery is not required

On the other hand, MQ software (such as IBM MQSeries, TIBCO, SonicMQ, or Softwired iBus) was designed for application-to-application (as opposed to human-to-human) messaging with:

- Low latency
- High throughput
- End-to-end flow control
- And guaranteed delivery

MQ products provide an appropriate API, allowing messaging applications to be written quickly and easily.

This was first published in July 2002

There are Comments. Add yours.

TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to: