Web Server CGI Script Operating System Card HD Controller Hard Drive Motherboard... Client makes request to Web Server PC Internet Web Server FW PC PC PC Mail Server SQL Server File Serv
Trang 1Technical Aspects of
E-Commerce Part 1 of 2
Mort Anvari
Trang 2- Overview of Sample Network
- Definitions
- Transaction Walk Through
- The E-Commerce Application
- Web Servers
- Operating Systems
- Hardware
Trang 3Sample Network
PC Internet
Web Server
FW
PC PC
PC
PC
Mail Server
SQL Server
File Server
Trang 4Web Server CGI Script
Operating System
Card
HD Controller
Hard Drive
Motherboard
Trang 5Scalability - The ability of a product to work well as it or it’s environment is changed
in size or power.
Reliability - The ability of product to
continue working in adverse situations or with bad data.
TCO - Total Cost of Ownership How much
a product costs over it’s life span.
Trang 6Manageability - The ease with which a
product can be maintained Also, the
degree of control allowed by the vendor.User Friendliness - The ease with which
and untrained person can use a product.
Security - The ability of a product to
protect itself from malicious attack
Trang 7Example Transaction
In our example, the user wants to get
their bank statement for the month as well as their bank balances This is
representative of small to medium size e-commerce sites Larger sites use
much of the same components, but
more powerful or in larger quantities
Trang 8Example Transaction
1 Client makes request to Web Server
PC Internet
Web Server
FW
PC PC
PC Mail
Server
SQL Server
File Server
Trang 9Example Transaction
2 Web server fetches HTML page
containing a form from the hard drive
Web Server CGI Script
Operating System
I/O Layer
HTML Pages
Motherboard
Trang 10Example Transaction
3 Server sends page to client
PC Internet
Web Server
FW
PC PC
PC Mail
Server
SQL Server
File Server
Trang 11Example Transaction
4 User fills in form and clicks on submit button.
PC Internet
Web Server
FW
PC PC
PC
PC
Mail Server
SQL Server
File Server
Trang 12Example Transaction
5 Browser sends contents of form to web server
requesting that it be passed to a specific cgi script The name of the script to be executed is embedded
in the form.
PC Internet
Web Server
FW
PC PC
PC Mail
Server
SQL Server
File Server
Trang 13Example Transaction
6 Web server executes CGI script and passes it form data.
Web Server CGI Script
Operating System
I/O Layer
HTML Pages
Video Card
Trang 14Example Transaction
7 CGI script validates the “form” data.
Web Server CGI Script
Operating System
Video Card
Trang 15PC PC
PC
PC
Mail Server
SQL Server
File Server
Trang 16PC PC
PC Mail
Server
SQL Server
File Server
Trang 17Example Transaction
10 Using the account history and balances acquired from the SQL server, the script creates a web page
A common method is
to have a template file that contains the
basic HTML formatting and fill in the body with
dynamic data
Web Server CGI Script
Operating System
I/O Layer
HTML Pages
Video Card
Trang 18Example Transaction
11 The CGI script passes the newly formed page to the web server.
Web Server CGI Script
Operating System
Video Card
Trang 19PC PC
PC
PC
Mail Server
SQL Server
File Server
Trang 20The E-Commerce App
What is it?
- Set of software components and web data
- Made to conduct business transactions
- Designed to interact with both web users and internal company systems
- It is the web site
- All other components act as support for this piece
Trang 21The E-Commerce App
Web Server CGI Script
Operating System
I/O Layer
HTML Pages
Card
HD Controller
Hard Drive
Motherboard
Trang 22The E-Commerce App
- Web Page Languages
- CGI Scripts & Their Languages
- What do the scripts do?
- Prepackaged or Custom?
Trang 23Web Page Languages
- HTML
- JavaScript
- Java
- ActiveX
Trang 24Hyper Text Markup Language
- The Lingua Franca of the Web
- Accessible from all browsers
- No Intelligence
- Cannot be changed on the fly
- All of your pages should look good
using HTML only The rest is gravy
Trang 25Java Script
- Language designed to add minor
functionality to HTML pages
- Simple Intelligence
- Sample Apps: counters, audio
effects, calculators, scrolling text,
menus, graphic effects etc
Trang 26- Sample Apps: word processors,
control systems, network services
Trang 27- A mechanism for transmitting full
programs over the internet and
running them
- Arguably most powerful technology
- Major security headache
- Platform Dependant
- Faster than Java
Trang 28Best Use
HTML
- The basis of all web pages
- Pages should be accessible to
HTML only browsers
JavaScript
- Add on to HTML for pizzazz
Trang 30CGI Scripts
- CGI = Common Gateway Interface
- CGI connects web users to programs
- Script is just a normal program
- Makes web pages
- May take other, advanced actions
- Think Security: The whole world can
run programs on your server
Trang 31ASPs and PHP3
- ASP = Active Server Page
- PHP3 = PHP: Hypertext Preprocessor
- A very efficient replacement for CGI
- Puts tiny programs in web pages
- The programs are run before the page
is sent to the browser
- Browsers can only see the results of the
program
Trang 32CGI Script/ASP Languages
- Visual Basic/VB Script
- Shell Scripts
- Java
- Perl
- C/C++
Trang 33Visual Basic/VB Script
- Reasonably sophisticated languages
produced by Microsoft
- Easy to find programmers
- Not Platform Independent
- Not very efficient
- VB Script is a cut-down version of
Visual Basic
Trang 34Shell Scripts
- A way of automating complex tasks in Unix Like a DOS batch file but far
more sophisticated
- Powerful and easy to write
- Platform Independent amongst Unixes
Trang 35- Java is also used as a server side
language It is one of the few that can
be used on both the client and server sides
Trang 36- An extremely versatile language
designed by Larry Wall
- Scripts can be written quickly and
efficiently
- A very practical language
- Platform Independent
Trang 37- The Lingua Franca of professional
application development
- Easy to find programmers
- Takes longer to write in but yields a
better product
- Platform Independent
Trang 38Types of Scripts
- Submit form contents into database
- Send form contents via e-mail
- Retrieve information from database
and create web page based on it
- Verify credit card transaction
- Send form contents as fax
- Send a message to a pager
Trang 39Pre-Packaged vs Custom
Pre-Packaged
- Minimal Effort
- Many can be found for free
- Difficult or impossible to customize
- Licensing agreements may limit your commercial use
Trang 41- Sends HTML pages to web client
- Runs the CGI scripts
- Passes user data to the CGI scripts
Trang 42Web Servers
Web Server CGI Script
Operating System
Card
HD Controller
Hard Drive
Motherboard
Trang 43Web Servers
- Microsoft IIS
- Netscape Enterprise
- Apache
Trang 45Netscape Enterprise Server
- Best overall web server
- Best feature set
- Decentralized content creation
- Good security
- Multi-platform
- Relatively costly
Trang 46- Not user friendly
- Features may need to be added
Trang 47Reliability Chart
Trang 48Scalability Chart
Trang 49Manageability Chart
Trang 50Security Chart
Trang 51User Friendliness Chart
Trang 52Price Chart
Trang 53Best Uses for Servers
Microsoft IIS
- Medium traffic sites
- Good for cost conscious sites
- Not good for E-Commerce
Netscape Enterprise
- Medium or high traffic sites
- Best intranet server
- E-Commerce capable
Trang 54Best Uses for Servers
Apache
- Low, medium or high traffic sites
- E-Commerce capable
- Best overall server
- Not for technical newcomers
Trang 55Operating System
What is it?
- A software program
- Manages all other programs
- Manages hardware resources
- Handles input and output from to and from
devices like printers, disks, and the network
- Communicates status info to users
Trang 56Operating Systems
Web Server CGI Script
Operating System
Card
HD Controller
Hard Drive
Motherboard
Trang 60- Collection of similar OSes
- HP/UX, Solaris, AIX
- Best is all categories except
Trang 61- Free version of Unix
- Huge momentum in marketplace
Trang 66User Friendliness Chart
Trang 68Best Uses of Each OS
- Low to medium traffic
- Be very careful with E-Commerce
- Best for low-tech firms
Trang 69Best Uses of Each OS
Trang 70What is it?
- The physical components of a computing
system
- If it can be held in your hand it’s hardware
- If it can’t it’s software
Trang 71Web Server CGI Script
Operating System
I/O Layer
HTML Pages
Card
HD Controller
Hard Drive
Motherboard
Trang 73- CISC (Complex Instruction Set Comp.)
Can do complex operations Can do many functions
i.e 486, Pentium, PowerPC
- RISC (Reduced Instruction Set Comp.)
Can do a few simple operations Faster than CISC
i.e SPARC, HP9000
Trang 75Hard Drives
- Highly Redundant Drive Enclosure
External to server Can lose multiple drives Very fast
Very expensive
Trang 76Backup Systems
- DAT (Digital Audio Tape)
Fast, efficient and reliable
Tape sizes from 2-24GB
Backwards compatible
- DLT (Digital Linear Tape)
Very fast, reliability problems
Tapes can hold up to 70GB
New technology
Trang 78Network Interfaces
- LAN (Local Area Network)
Small in geographic size
Fast and cheap
Owned
- WAN (Wide Area Network)
Connects distant LANs
Slow and expensive
Rented
Trang 79Random Access Memory
- Regular
Garden variety memory
- Parity
Checks for memory errors
Stops machine on error
- ECC (Error Checking and Correcting)
Checks for memory errors
Corrects errors
Trang 80Next Time
PC Internet
Web Server
FW
PC PC
PC
PC
Mail Server
SQL Server
File Server