Scalability and Performance Hints

With a survey of HTTP and its efficiency features under our belts, it's now time to consider specific strategies that encourage scalability and high performance for any Web application.

Use GET and POST Judiciously

An application designer has the ability to determine how data queries and updates are processed. As we've discussed, its best to require POST requests only when there are going to be side effects of the communication—that is, data will be updated on the server. If not, you are strongly encouraged to code your HTML input forms for GET requests because of GET's tight integration with the HTTP 1.1 caching ...

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.