magazine resources subscribe about advertising

New Architect Daily
Commentary and updates on current events and technologies

CMP Media E-Book

Download your copy today.

Research
Search for reports and white papers from industry vendors and analysts.

This Week at NewArchitect.com Subscribe now to our free email newsletter and get notified when the site is updated with new articles







Day of Defeat Online Gaming

 New Architect > Archives > 1997 > 09 > Webmaster's Domain  

Speedy Server Scripts

Last year, I wrote about the performance problems of traditional CGI scripts ("Server Scripts: Can they Keep Up?" Web Techniques, November 1996). The central problem, I concluded, was that CGI scripts run as separate processes. Each time the server needs to run a CGI script, it has to load it from disk and execute it. While this overhead may not be noticeable when you're first developing the script, it becomes a major headache on a production server with thousands of requests a minute. CGI scripts simply can't keep up with that kind of volume.

Briefly, the alternatives to CGI are:

  1. Turn the application into a client-side executable using Java, JavaScript, or ActiveX.
  2. Keep the CGI script running continuously as a separate process, avoiding the startup costs.
  3. Extend the server's functionality using a programmer's API or Java "servlets."

The first alternative is compelling because it scales up extremely well. The Web server simply sends the client-side executable down the wire, and the user's CPU does all the work. Increasing the number of simultaneous users from 10 to 100 adds no noticeable computational load to your server. Client-side executables have problems, however: No client-side technology allows you to support all combinations of browser and operating system, and there are tradeoffs between convenience and power. Java applets and JavaScript scripts will run on many browsers without modification, but their abilities are strictly limited for security reasons.




  Day of Defeat Online Gaming

home | daily | current issue | archives | features | critical decisions | case studies | expert opinion | reviews | access | industry events | newsletter | research | careers | info centers | advertising | subscribe | subscriber service | editorial calendar | press | contacts


Copyright © 2006 CMP Media, LLC Read our privacy policy, your California privacy rights, terms of service.
SDMG Web sites: BYTE.com, C/C++ Users Journal, Developer Pipeline, Dr. Dobb's Journal, DotNetJunkies, MSDN Magazine, Sys Admin,
SD Expo, SD Magazine, SqlJunkies, The Perl Journal, Unixreview, Windows Developer Network, New Architect

web2