Docsity

Understanding Client-Server Architecture: CGI, ISAPI, and ASP, Slides of Fundamentals of E-Commerce

Partial preview of the text

Download Understanding Client-Server Architecture: CGI, ISAPI, and ASP and more Slides Fundamentals of E-Commerce in PDF only on Docsity!

Client/Server Tiers

1 tier

2 tier

N-Tier

UserInterface

All on onemachine

Client

Client

BusinessLogic

WebServer

MTS

Storage

File Server

SQL Server

Server-side Dynamic

•^

Currently most Internet-based dynamic webcontent is implemented with server-sidecomputing.

-^

Most common implementation of server-sidecomputing is via scripting interfaces/plug-insrather than writing directly to the CGI model.

-^

PERL, ASP, and Java are some of the morepopular web server-side scripting interfaces

What is CGI?

•^

“Common Gateway Interface”

-^

A protocol that allows an application to:^ – Receives from the webserver the contents of a user

request (including URL, request variables, and userparameters)

  • Return a data stream to the webserver (HTML) -^

Typical request:^ http://myserver/cgi-bin/myScript?Arg1=X&Arg2=Y

-^

CGI argument format is the basis for ASP.

CGI

•^

Most CGI implementations require the CGI logicto be loaded, a process spawned, and aftercompletion, the process killed for each request,reducing scalability.

-^

CGI most commonly implemented using pre-builtapplications that implement server-side scripting(PERL is one of the most popular scriptinglanguages).

ISAPI

•^

“Internet Server Application ProgrammingInterface”

-^

Microsoft technology to expand and improve CGI.

-^

Similar to CGI in that is normally accessed via ascripting interface/plug-in.

-^

ISAPI logic loaded once on first demand andshares the webserver's process.

-^

Similar technologies created by other vendors.

Drawbacks of CGI and ISAPI

•^

Writing applications that directly use CGI orISAPI have large overhead, especially for theimplementing the interface code.

-^

Pre-built scripting applications like PERL requiresuser to script all HTML elements -- harder to readand maintain.

ASP Basics

•^

ASP = Active Server Pages (acronym in tradeliterature sometimes refers to Application ServerProvider)

-^

A web technology for combining scripting code (thatruns on the server as the page is loaded by the webserver) with HTML and other web page content.

-^

Files with the .asp or .asa extension are passed to anISAPI-based IIS plug-in (asp.dll)

-^

Asp.dll interprets the file, executes any ASP script itcontains, and outputs it as HTML.

ASP Basics

• ASP code indicated in one of two ways

  • Embedded withing

marks

  • Uses HTML

• ASP server-side script stripped off and not

passed to client.