Solved

Web server applications

Posted on 2001-06-15
3
143 Views
Last Modified: 2010-04-06

How will I write a web server application in Delphi?.What should be the type of the webserver application?.
0
Comment
Question by:mrk_raj
3 Comments
 
LVL 17

Expert Comment

by:inthe
Comment Utility
0
 
LVL 22

Expert Comment

by:mnasman
Comment Utility
Hello

  with Delphi you can build web server app in three methods: CGI, ISAPI, and ASP, I prefer the ISAPI cuz it's the fastest method of them

if you need to develop ur application with cgi or isapi, see my comment and the other comments in this question

http://www.experts-exchange.com/jsp/qShow.jsp?ta=delphi&qid=20127095

Mohammed
0
 
LVL 7

Accepted Solution

by:
Motaz earned 10 total points
Comment Utility
CGI Stand-alone: Is an executable file that uses the standard input/ouput (Consoles) to receive and send data.

Win-CGI: Designed specially for Visual Basic because VB cann't talk directly to standard input/output ports, so that instead the Win-CGI receive and send data using temporary ini files which causes intensive use of hard disk.

ISAPI/NSAPI: (Internet Server API/Netscape Server API) Both are DLL's that work with Microsoft servers/Netscape servers respectively. The good news is that Delphi produce one DLL that can be work with both servers, so that we will refered by ISAPI to both kinds of DLLs.

Comparison:
The most important difference between ISAPI and CGI is that the server launchs new instance of the CGI executable for each request, for example if there is a 7 concurrent users, the server will load 7 instances of the same CGI. This is the most biggest disadvantage of the CGI, because it leads to memory consumption and reduce server performance when the request number increased.
ISAPI loads only once in the memory and it serves all the requests, but it creates separate instances of TWebModule for each request.
The ISAPI is very suitable for large web applications that uses database servers such as Oracle, and Interbase. When the first request received to the web server, it loads the ISAPI DLL and open a connection with database server. When the next request received, there is no need to establish new connection, and the old connection will be used.

In addition to these advantages of ISAPI, there is a drawback of using it.
Since the ISAPI DLL shared for all requests, unhandled error of one request could crash the DLL and hangs the server, and no one else can get a response. In most such cases the DLL must be stopped and started again.
In CGI if an error occures in one request, only it's instance of CGI will be stopped and the others will resume normally.

Motaz
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now