Next | Making Programs Faster | 84 |
The biggest improvement:
The client converted the CGI script into an Apache plugin module
No more 3000 processes
However, I had some recommendations also
The major one:
Commit the XML to a file, check it, return the status code, and exit
A separate background process can take care of parsing it and updating the database
The separate process handles one file at a time
This makes it possible to control the load
Only one background process is running at a time
It can go to sleep when system load is high, continue when things cool off
Next | Copyright © 2003 M. J. Dominus |