Presentation is loading. Please wait.

Presentation is loading. Please wait.

Web Architecture Introduction

Similar presentations


Presentation on theme: "Web Architecture Introduction"— Presentation transcript:

1 Web Architecture Introduction
CPTE 212 John Beckett

2 Web circa 1994 Server (Apache or IIS) HTTP GET HTTP Response
Static Web – Same result every time, unless server content is updated by the provider Content

3 Add JavaScript Server (Apache or IIS) HTTP GET JavaScript
HTTP Response JavaScript is used to tailor the information sent and received. Actions that use information available locally can be done locally Some configuration of the GET may be done to select which static pages to request Content

4 Add JavaScript & Server Side
(Apache or IIS) Server-Side Language Interpreter HTTP GET or POST JavaScript HTTP Response JavaScript is used to tailor the information sent and received. Actions that use information available locally can be done locally Information sent via GET or POST provokes action by the server, configuring response GET and POST may be configured by JavaScript Content

5 Add JavaScript & Server Side and AJAX (Web Version 2)
(Apache or IIS) HTTP GET or POST Or XMLHttpRequest Server-Side Language Interpreter JavaScript HTTP Response JavaScript is used to tailor the information sent and received. Actions that use information available locally can be done locally Information sent via GET or POST provokes action by the server, configuring response GET and POST may be configured by JavaScript Content AJAX: Asynchronous use of XMLHttpRequest by JavaScript to transfer data between server & client

6 Database Access – 3-Tier Model
Application Server (Apache or IIS) Server-Side Language Interpreter HTTP GET or POST JavaScript HTTP Response Content Database Server (e.g. MySQL) The database server may be physically housed on the Web server.

7 Load Sharing Application Server Sharing “Switcher” Application Server
Database Server (e.g. MySQL) Sharing may be done by: Round-robin DNS to multiple IP addresses Physical switching of packets Database server may be provided on a SAN Application Server

8 What Language? HTML ASP PHP JavaScript SQL
Used with any Web server (Apache or IIS) ASP Server-side language for IIS (Microsoft server) Newer version: ASP.NET PHP Server-side language that can be attached to Apache or IIS JavaScript Client-side language that runs on all browsers SQL Used to tell a database management server what we want to do

9 Two Languages PHP ASP <html><head> <title>My own Linux server</title></head> <body><h1>Linux/Apache/PHP Demo</h1> <?php for ($i = 1; $i<=10; $i++) { print ($i . " "); } ?> </body></html> Language="VBScript" %> <% Option Explicit %> <html><head> <title>Windows IIS</title></head> <body><h1>Windows/IIS/ASP Demo</h1> <% Dim a for a = 1 to 10 response.write a & " " next %> </body></html>


Download ppt "Web Architecture Introduction"

Similar presentations


Ads by Google