On 11/12/00 12:15 AM, Pierre Sahores wrote:

> LiangTyan Fui a �crit :
>> 
>> On 11/11/00 7:43 PM, Pierre Sahores wrote:
>> 
>>> Hi anybody,
>>> 
>>> Does anyone use the win32 cmc.exe engine and if yes, what is the right
>>> config
>>> to use to get .mt scripts running (WinNT 4 sp5) with both Apache and IIS4
>>> httpds  ?
>> 
>> I've just tested it a few days ago with IIS3 on NT4.0 sp6.
>> Pretty good I would said, but I am still yet to find out more on how I can
>> build a complex CGI solution on NT (calling library, build re-usable
>> scripts)
>> 
>> Read Chapter 10 on the NT IIS configuration page, it shows you all you need
>> to get the CGI works. Remember to place cmc.exe on a "clean" directory,
>> excluding any of the MetaCard appl or stacks.
> 
> Thank's. I'm new to win32 (MacOS and Linux prefered).
> 
>> 
>> I wish the similar engine can be built for Mac OS 9, but since OS X is
>> coming .....
> 
> You can use the regular mc engine in using appleevents to speak directly with
> webstar, ASIP or quidproquo.

Yes, I've been using the AppleEvent handle on Mac for CGI some time ago. But
the major concern here is the complexity of the CGI. Suppose I have a chunk
of code that would takes a long time to execute (10 seconds?), the second
query from the AppleEvent will have to wait.
In most case this is ok if I plan carefully, but when I start deploying
complex solution this way, I have to always ensure:
- each query has to be short
- push complex processing to other application, if I use MetaCard (the CGI
in this case), the CGI will still hog.
- slice long processing with "send xxx to yyy in 1 second with zzzz", making
codes become more complex.

Even with all the above, I still get unreasonable performance on extremely
busy situation (10 to 20 cgi hit a second?)

Well I must say this has something to do with AppleEvent and the way CGI has
been implemented on the Mac. The same limitation are effecting ALL CGIs on
the Mac as well, not only MetaCard.

While the cmc.exe and Unix based MetaCard have advantage to handle queries
simultaneously, but overhead on loading the CGI and initialising the
solution might be high. And concept of implementing these CGI is very
different on the Mac CGI (and MCHttpd too).

Regards,
LiangTyan Fui

<snip>


Archives: http://www.mail-archive.com/[email protected]/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to <[EMAIL PROTECTED]>, not this list.

Reply via email to