O'Reilly logo

MySQL™ and JSP™ Web Applications: Data-Driven Programming Using Tomcat and MySQL by James Turner

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

Writing Applications for Multimachine Service

When you write a Web application for multiple-machine deployment, the main thing that you need to keep in mind is that you cache database state at your own risk. Although it's okay to cache certain values, such as product catalogs, which are read-only and change infrequently, it's not okay to cache customer information that can change from minute to minute.

The high-end Java platforms provide support to keep multiple servers in sync. Unfortunately, Tomcat does not. This just means that you need to keep the issue in the back of your mind at all times during development.

Frankly, you should already be thinking about it because many of the problems of concurrency that can plague a multiple machine architecture ...

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