Steve Trefethen
Contact me Send mail to the author(s)
About Me
View my LinkedIn profile


Powered by discountASP.NET
referal ID: sdtref
Why recommend discountASP.NET?

Archives
Tags
Disclaimer
The posts on this weblog are provided �AS IS� with no warranties, and confer no rights. The opinions expressed herein are my own personal opinions and do not represent my employer�s view in any way.
# Monday, May 01, 2006
« Tools to track blog usage | Main | Microsoft's new Consolas font but only f... »

ISAPI Thread Pool for use in Delphi WebBroker applications

Posted @ 8:59AM

Categories: Delphi | RTL

Tags:  | 

Quoted:
"...but our perception and wall-clock timing tells us there is at least a 300% increase in speed, if not more."
-Dan Miser
DistribuCon
I don't recall mentioning the ISAPIThreadPool unit here and recently Allen pointed out a Borland public newsgroup post where a customer was talking about the dramatic performance difference between his PHP application and his Delphi Webbroker application. In the post he mentioned:
to have high speed I have pooled connections using a threadvar, every IIS thread has one datamodule with opened connection
If I understand this correctly the above is unnecessary and instead this developer should leverage the ISAPIThreadPool unit available with Delphi as well as from CodeCentral. The ISAPIThreadPool unit leverages the technologies discussed in the following documents (also mentioned in the source code): A few key points:
  • ISAPIThreadPool.pas should be included in your webbroker DPR at the end of the uses clause as it reimplements GetExtensionVersion, HttpExtensionProc and TerminateExtension.
  • This unit is only useful for applications running on Microsoft's web server (IIS).

Dan Miser has also mentioned this unit on his blog. Thanks Dan!

OpenID
Please login with either your OpenID above, or your details below.
Name
E-mail
(will show your gravatar icon)
Home page

Comment (Some html is allowed: a@href@title, b, blockquote@cite, em, i, strong) where the @ means "attribute." For example, you can use <a href="" title=""> or <blockquote cite="Scott">.  

Live Comment Preview