Skip to Main Content
Java™ Performance and Scalability, Volume 1: Server-Side Programming Techniques
book

Java™ Performance and Scalability, Volume 1: Server-Side Programming Techniques

by Dov Bulka
June 2000
Intermediate to advanced content levelIntermediate to advanced
320 pages
5h 54m
English
Addison-Wesley Professional
Content preview from Java™ Performance and Scalability, Volume 1: Server-Side Programming Techniques

Chapter 4. Caching

When you are faced with a performance hot spot, you have basically two options. You could delve into the nitty-gritty details of the computation or find a clever way to avoid the computation altogether. The latter option is the preferred way to go since avoiding a costly computation is likely to be much faster than optimizing it. Computational values tend to fall into three categories according to their expected lifetimes:

  • Static—. These values do not change at all during the life of the application. For example, a Web server returns its own name on every response header. The name of the server will not change for the duration of server execution.

  • Pure dynamic—. These values could change at any point in time and must be recomputed ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

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

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

Greg Barish

Publisher Resources

ISBN: 0201704293Purchase book