JavaServer Pages



As noted earlier, one of the biggest problems with CGIs is that a whole new program
must be started up for every request. A number of approaches have been taken to
eliminate this overhead.
One such approach is called Fast CGI. In this model, the CGI remains running instead of
restarting each time. The Web server passes the CGI requests to the program over a
communication channel called a socket, reads the HTML back over the same channel,
and then passes the HTML on to the user. This gives the situation illustrated in

Figure
1.3
.
Figure 1.3. Fast CGI.