Solved

Web server applications

Posted on 2001-06-15
3
145 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
ID: 6197617
0
 
LVL 22

Expert Comment

by:Mohammed Nasman
ID: 6197622
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
ID: 6197949
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

Is Your AD Toolbox Looking More Like a Toybox?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

777 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