Solved

Web server applications

Posted on 2001-06-15
3
144 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 Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Delphi 10 Seattle Dataset Actions 5 79
proper way to parse url in delphi 2 164
When i run adoquery my application freezes 26 150
Firemonkey webbrowser scrollbars ? 1 29
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…
The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…

896 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

11 Experts available now in Live!

Get 1:1 Help Now