Scalability and Performance Hints
Although we have been discussing request processing paradigms and design tradeoffs at a fairly abstract level, we can nevertheless identify some practical suggestions in terms of overall Web application design.
Build Asynchronous Solutions
As we've seen, asynchronous communication is inherently faster than synchronous communication. The bottom line is that parallelism is better exploited under an asynchronous model—at the cost of complexity or flexibility if the return value (if any) has any meaning.
In Chapter 9, I'll discuss the Java Message Service—the primary J2EE technology for building asynchronous solutions. ...
Get Building Scalable and High-Performance Java™ Web Applications Using J2EE™ Technology now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.