1 / 26

Web Architecture

Web Architecture. Server responds. Client makes requests. Client-Server Model. CLIENT (Often a Web browser ). SERVER. INTERNET. TIER 2: SERVER. TIER 1: CLIENT. Server performs all processing. Web Server Application Server Database Server. Two-Tier Architecture.

thanh
Download Presentation

Web Architecture

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Web Architecture

  2. Server responds Client makes requests Client-Server Model CLIENT (Often a Web browser) SERVER INTERNET

  3. TIER 2: SERVER TIER 1: CLIENT Server performs all processing Web Server Application Server Database Server Two-Tier Architecture This architecture is obsolete. Server does too much work. SOURCE: FOURNIER

  4. Three-Tier Architecture TIER 3: BACKEND TIER 2: SERVER TIER 1: CLIENT Application server offloads processing to tier 3 Web Server + Application Server Note: Using 2 computers instead of 1 can result in a huge increase in simultaneous clients. Depends on % of CPU time spent on database access. SOURCE: FOURNIER

  5. N-Tier Architecture Optimized for web page delivery Coded for specific application Managed and tuned by DBA Achieves full separation of function and administration Huge number of simultaneous clients SOURCE: FOURNIER

  6. InterShop Architecture SOURCE: INTERSHOP

  7. Wrapper Middleware Connecting to Legacy Systemsby “Wrapping” “WRAPPER” Web Server MAINFRAME Web App Legacy App

  8. Connecting to Legacy Systems The “screen scraper” Legacy system(mainframe) Terminalscreen data HTML data HTMLdata Screen scraper Existing application Legacy database Web server Client SOURCE: WIM GEVERS

  9. Screen Scraping • Some systems produce as their only output commands to 80 x 24 display terminals • Sequences of characters telling the terminal to move its cursor and display data, e.g. ^M0238Jan. ^M024416, ^M02482000displays “Jan. 16, 2000” in row 2, starting at col. 38 • Screen scraping involves virtual simulation of the display terminal to retrieve the data • Vendors • Intelligent Environments

  10. ERP Client CRM Client Office Tool Groupware Client Query Tool Web Browser Embedded Services Partners Employees Customers Content Directory Applications Web Tools Text Metadata Client Information System EnterpriseSystem Document Repository Groupware Database DataWarehouse Internet & Web Portal Architecture E N T E R P R I S E P O R T A L SOURCE: PLUMTREE

  11. Portal Architecture LOB = “LINE OF BUSINESS” SOURCE: MIKE CRANDALL, GATES FOUNDATION

  12. Router Router Web Servers Server Farms • To serve many clients, one server is not enough • How do multiple servers cooperate? Network Switch Network Switch Internet Firewall Intranet Firewall DB Servers App Servers SOURCE: ATESTO

  13. Internet Server Cluster (Server Farm) Clients HTTP request Router Request Routing Communication Server farm System Management SOURCE: CHU-SING YANG

  14. Server Selection Problem Server Farm A Server Farm B Which server? • Avoid scalabilityproblems of central servers bydistributing load Which network site? “Contact the weather service.” SOURCE: JEFF CHASE

  15. subnet subnet ‧ ‧ ‧ ‧ ‧ ‧ Internet Internet ‧ ‧ ‧ ‧ Load Balancing Switch client http://pds.cse.nsysu.edu.tw/job/ Server Farm Router SVR.1 SVR.2 Web Switch Virtual IP address SVR.n SOURCE: CHU-SING YANG

  16. Domain Names • IP addresses are inconvenient to remember 128.2.218.2 v. euro.ecom.cmu.edu (fully qualified) • Domain names are alphanumeric aliases for IP addresses. They form a tree structure of FQDNs: ROOT .GOV .COM .MIL .NET .EDU .ORG .IT CMU PITT MIT AMAZON MCKINSEY YAHOO 208.216.182.15 207.237.113.94 GSIA CS ECOM HEINZ WWW YEN EURO DOLLAR PESO 128.2.218.4 128.2.218.2 128.2.16.175

  17. client Domain Name System • Large, distributed, worldwide database • Maps domain names to IP addresses What is the IP address of abc.foo.com? Root DNS 202.168.14.12 .com DNS Try .com Try foo.com foo.com DNS Local DNS Resolver abc.foo.com is 202.168.14.12 + Cache SOURCE: CISCO SYSTEMS

  18. URL-Based Load Balancing • Substring matching for: • “images” • “.gif” • “.jpg” Load distributed within group via any standard metric or URL hashing GET /www.foo.com/images/abc.gif • Substring matching for: • “.cgi” • “.bin” • “.exe” GET/www.foo.com/event/reg.bin GET /www.foo.com/product/abc.html • Substring matching for: • “.html” • Servers optimized for specific content-types • Substring match on URL directs HTTP requests to designated server farm • Load balancing using configured algorithm or, • URL Hashingforwards requests for each unique URL to same server to take advantage of server memory caching SOURCE: SUN

  19. DNS Round Robin Balancing SERVER a b c d DNS server for nhc.noaa.gov “www.nhc.noaa.gov is IP address a” (or {b,c,d}) Idea: When an IP address is requested for nhc.noaa.gov, return a different IP address each time CLIENT “lookup www.nhc.noaa.gov” client network DNS server SOURCE: JEFF CHASE

  20. Web Data Center SOURCE: SUN

  21. Global WAN Architecture Site II losangeles.domain.com Internet Site I newyork.domain.com Router DNS BIG-IP BIG-IP Local DNS GLOBAL-SITE Webmaster Site III tokyo.domain.com Server Array User london.domain.com SOURCE: EDWARD CHOW

  22. Internet Client- and Server Side Programming Server Client HTML CGI/Perl, C Applets ASP ActiveX Controls Servlet Dynamic HTML JSP JavaScript XML SOURCE: IIT

  23. Tiers and URLs URLs can be used for application routing http: // 10.0.0.1 / catalog / display.asp ? pg = 1 & product = 7 Web Server Web app DB Web app DB Web app Web app SOURCE: NTOBJECTIVES.COM

  24. PHP Process Flow Raw .php source HTML is substituted for PHP code PHP Pre- processor Browser Web Server HTML .php source file Internet Request for .php file PHP originally mean “Personal Home Page” SOURCE: M. HAMILL

  25. Website Components SQL Database HTTP request (cleartext or SSL) Firewall Web Client Web Server Web app DB Web app DB Web app Web app HTTP reply (HTML, Javascript, VBscript, etc) • Apache • IIS • Netscape • etc… • Plugins: • Perl • C/C++ • JSP, etc • Database connection: • ADO, • ODBC, etc. SOURCE: NTOBJECTIVES.COM

  26. Major Ideas • Client-server model • Three-tiered (n-tiered) architecture • Legacy connections • Portals • Server Farms • Web development tools • Client- and server-side tools

More Related