O'Reilly logo

Building Scalable and High-Performance Java™ Web Applications Using J2EE™ Technology by Greg Barish

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

JMS Reliability versus Performance

There are several ways to configure a JMS messaging scheme based on the level of reliability desired. The chosen configuration directly affects system performance.

In general, trading reliability for performance is one way to improve system throughput. But make no mistake: It's a dangerous game to play when the messages are important. If the nature of your application is such that consumption of every message is critical, there's no avoiding the reliability controls that JMS provides.

There are two major controls in the reliability versus performance debate: client acknowledgment and message persistence.

Client Acknowledgment

When JMS messages are sent, they can be part of a transaction or not, that is, nontransacted. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required