Presentation is loading. Please wait.

Presentation is loading. Please wait.

J0 1 Marco Ronchetti - The Web: an architectural view.

Similar presentations


Presentation on theme: "J0 1 Marco Ronchetti - The Web: an architectural view."— Presentation transcript:

1 J0 1 Marco Ronchetti - ronchet@altavista.it The Web: an architectural view

2 J0 2 Marco Ronchetti - ronchet@altavista.it Browser Render HTML Get URL Send HTML Get HTML file HTTPD File System The primitive Web model

3 J0 3 Marco Ronchetti - ronchet@altavista.it httpd The primitive Web model Internet HTTP Get Client Browser Server File System

4 J0 4 Marco Ronchetti - ronchet@altavista.it Browser Render HTML Get URL with Params Send HTML Execute CGI(params) Build HTML on the fly HTTPD CGI Process A simple interactive Web model

5 J0 5 Marco Ronchetti - ronchet@altavista.it httpd A simple interactive Web model Internet HTTP Get Cgi-bin process Client Browser Server File System

6 J0 6 Marco Ronchetti - ronchet@altavista.it Browser Render HTML Get URL with Params Send HTML Execute CGI(params) Build HTML on the fly HTTPD CGI Process DB Run Sql query Send query results An evolved interactive Web model

7 J0 7 Marco Ronchetti - ronchet@altavista.it httpd An evolved interactive Web model Internet HTTP Get Cgi-binQuery SQL process DB Data Client Browser Server File System

8 J0 8 Marco Ronchetti - ronchet@altavista.it httpd The Bottlenecks Internet HTTP Get Cgi-binQuery SQL process DB Data Client Browser SLOW! Server File System

9 J0 9 Marco Ronchetti - ronchet@altavista.it httpd The Bottleneck – part I Internet HTTP Get Cgi-binQuery SQL process DB Data Client Browser SLOW! Server File System

10 J0 10 Marco Ronchetti - ronchet@altavista.it httpd The solution: Internet HTTP Get Cgi-binQuery SQL process DB Data Client Smart browser How? Including code in HTML Server File System reduce net traffic by having a smarter client!

11 J0 11 Marco Ronchetti - ronchet@altavista.it Programming languages Java Java Enabling technologies Client Smart browser Scripting languages Javascript Javascript Vbscript Vbscript Perlscript Perlscript Python Python … … Interpreted: Source code travels Compiled: Executable travels (must be HW-OS-Browser independent!)

12 J0 12 Marco Ronchetti - ronchet@altavista.it httpd The Bottleneck – part II Internet HTTP Get Cgi-binQuery SQL process DB Data Client Browser SLOW! Server File System

13 J0 13 Marco Ronchetti - ronchet@altavista.it httpd The solution: Internet HTTP Get Query SQL Function DB Data Client Browser Server File System integrate the service into the httpd process

14 J0 14 Marco Ronchetti - ronchet@altavista.it Enabling technologies Multithreading Multithreading DLL DLL Servlets Servlets Using… Scripting languagesScripting languages Programming languagesProgramming languages Function httpd Server How? Including code in HTML File System (depending on server implementation)

15 J0 15 Marco Ronchetti - ronchet@altavista.it mixed client- and server-side scripting … …VBScript Commands… … … …JavaScript Commands… … Code executed by the Server BEFORE the page is transferred over the Net Code transferred to the client and interpreted by the Browser ASP Syntax … … …JavaScript Commands… … Code executed by the Server BEFORE the page is transferred over the Net Code transferred to the client and interpreted by the Browser ASP Syntax", "description": "J0 15 Marco Ronchetti - ronchet@altavista.it mixed client- and server-side scripting … …VBScript Commands… … … …JavaScript Commands… … Code executed by the Server BEFORE the page is transferred over the Net Code transferred to the client and interpreted by the Browser ASP Syntax", "width": "800" }

16 J0 16 Marco Ronchetti - ronchet@altavista.it The state problem Internet Client 1 Server +CGI httpd Data User 1 Data User 2 Data User 3 Client 3 Client 2 ?

17 J0 17 Marco Ronchetti - ronchet@altavista.it A typical solution Internet Client 1 Server +CGI httpd Data User 1 Data User 2 Data User 3 Client 3 Client 2 Cookie Cookie Cookie Supported by Java & JavaScript

18 J0 18 Marco Ronchetti - ronchet@altavista.it httpd A more radical solution Internet HTTP Get Cgi-bin process Client Browser Server Java applet process Startup Socket connection Supported by Java

19 J0 19 Marco Ronchetti - ronchet@altavista.it httpd An even more radical solution Internet HTTP Get Cgi-bin process Client Browser Server Java applet process Startup CORBA Middle Tier Supported by Java

20 J0 20 Marco Ronchetti - ronchet@altavista.it WAP - CenniClient (cellular phone) MicroBrowser Gateway WAP Richiesta WDP + WTSL (Wireless Datagram Protocol) Wireless Transport Security Layer Server HTTP Descrizione delle pagine: Wml (Wireless Markup Language, in XML) Hdml (HandhelD Markup Language, variante di HTML 9600 baud (*) (*) con GPRS fino a 56 Kbit/sec, conUMTS fino a 2 Mbit/sec (Universal Mobile Telecommunication System) More info: www.wapforum.org


Download ppt "J0 1 Marco Ronchetti - The Web: an architectural view."

Similar presentations


Ads by Google