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

An overview of client-server tiers, focusing on common gateway interface (cgi), internet server application programming interface (isapi), and active server pages (asp). Learn about their differences, how they work, and their drawbacks.

Typology: Slides

2012/2013

Uploaded on 07/30/2013

asif.ali
asif.ali 🇮🇳

5

(3)

129 documents

1 / 11

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Client/Server Tiers
1 tier 2 tier N-Tier
User
Interface
All on one
machine
Client Client
Business
Logic
Web
Server
MTS
Storage File Server SQL Server
Docsity.com
pf3
pf4
pf5
pf8
pf9
pfa

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.