Caching

We have discussed caching optimizations in Chapter 13 with respect to coding. But caching opportunities are abundant in the design arena as well. In this section we describe three design optimizations representing this set.

Web Server Timestamps

There are multiple times during the service of an HTTP request that the server must take a timestamp to record the current time. For example, right after a TCP connection is established between the server and browser, the server starts a timer for this particular connection. If the timer pops before the request has arrived on the connection, the connection is terminated. These time-outs prevent attackers from flooding the server with connections that never submit any request. These dead connections ...

Get Efficient C++ Performance Programming Techniques now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.