Second, comparison between CGI and other expansion technology
In addition to CGI standard expansion technology, common expansion technology also has API (ApplicationProgrammingInterface)
And SSI (ServersideInCludes), both technologies are related to specific WWW servers. Let's first
A brief description of the technique and then compare these three technologies. SSI technology: When the server daemon receives passengers
When the account request, its child process scans the document requesting the client to obtain the data insertion flag, and then insert
Data, then return to the client. This technology is simple, but the efficiency is not high. API technology: Different WWW servers
The API provided may be different, such as O'ReillyWebsite, WSAPI; PurveyorWeb Server and Microsoft
IIS is provided is ISAPI. The process of writing the program with these APIs is different from the last generated file type;
If you use Isapi, you must write a program in accordance with its specific framework, the last created file can be an exe file and a DLL
file. The following table (Figure 3-3) lists the three technologies of CGI, SSI, and APIs in main performance: SSI CGI API
The realized flexibility is good, and the powerful functional power is highly powerful to the programmer.
Development and test time is short, low, low, low, low, low, low, low, low, low, low, low, low, low
It is better to have a high-capacity of the CPU's load, and the CGI and API need to be programmed, and they can access more
More data sources; and SSI does not need to be programmed. With the expansion software developed by API, its running speed is faster than CGI, function
Compared with CGI; but its operation has a certain risk, it may cause the system to crash when there is an error (CGI program is not), and
And it is very dependent on the specific server and the transplantability is too poor, and the development cycle is longer. CGI risk, soft
Partial transplantability, software development difficulty is advantageous than the API; its disadvantage is that the CPU load is high, especially
The CGI requests that occur will affect the comprehensive performance of the server. Comparison, CGI is better than other two technologies
It is also the most common in practical applications.