Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Trying to understand the diff between ISAPI and CGI
Message
From
08/07/1999 18:24:32
 
 
To
08/07/1999 18:19:44
General information
Forum:
Visual FoxPro
Category:
Internet applications
Miscellaneous
Thread ID:
00239105
Message ID:
00239151
Views:
9
>>Here's a quote from a book. "ISAPI applications can be executed by IIS in a fashion similar to CGI, but they run in the same memory space as the Web server. In fact, ISAPI applications are constructed as dynamic-link libraries that can run as much as 20 times faster than equivalent CGI applications."
>>
>>Can someone please elaborate on the Same memory space and why that would improve performance? Also explain how ISAPI applications are constructed as dll's and how this would also improve performance.
>>
>>I know. I know. I'm just trying to get a handle on this stuff.
>>
>>Dan
>
>I'm just getting into this myself, but I *think* I have it right.
>
>CGI is an EXE than will allocate it's own memory. This means that if it crashes, it doesn't affect anything else. It must also be loaded for each call to it, so if 50 people hit your web site, it will be loaded 50 times. The cross-application calls (this is called marshalling) from the web server to CGI are expensive (meaning they take time and resources)
>
>ISAPI runs as a DLL, and uses the same memory space as the web server. This means that if the DLL crashes, your web server can go down too. However, because it is in the same memory space, the marshalling of data from the web server to ISAPI is very fast. Also, the DLL is only loaded once, so you don't have the problems of 50 instances as above.
>
>I guess to sum this up, it's kinda like the difference between in-process and out-of-process COM servers.

That's very helpful. Thank you.

Dan
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform