MC714: Sistemas Distribu´ ıdos
- Prof. Lucas Wanner
MC714: Sistemas Distribu dos Prof. Lucas Wanner Instituto de - - PowerPoint PPT Presentation
MC714: Sistemas Distribu dos Prof. Lucas Wanner Instituto de Computac ao, Unicamp Aula 27: Sistemas Web Distribu dos Distributed Web-based systems Essence The WWW is a huge client-server system with millions of servers; each
Client machine Browser OS Server machine Web server
document from local file
Source: Maarten van Steen, Distributed Systems: Principles and Paradigms 2 / 13
Web server Database server CGI process CGI program
created HTTP request handler
Source: Maarten van Steen, Distributed Systems: Principles and Paradigms 3 / 13
Service description (WSDL) Client machine Client application Stub Server application Stub Communication subsystem Communication subsystem SOAP Service description (WSDL) Service description (WSDL) Directory service (UDDI) Publish service Look up a service Generate stub from WSDL description Server machine Generate stub from WSDL description
Source: Maarten van Steen, Distributed Systems: Principles and Paradigms 4 / 13
User interface Browser engine Rendering engine Network comm. HTML/XML parser Display back end Client-side script interpreter
Source: Maarten van Steen, Distributed Systems: Principles and Paradigms 5 / 13
Hook Hook Hook Hook Function
Module Module Module Apache core Functions called per hook Link between function and hook Request Response
Source: Maarten van Steen, Distributed Systems: Principles and Paradigms 6 / 13
Front end Web server Web server Web server Web server Request Response Front end handles all incoming requests and outgoing responses LAN
Source: Maarten van Steen, Distributed Systems: Principles and Paradigms 7 / 13
Source: Maarten van Steen, Distributed Systems: Principles and Paradigms 8 / 13
Switch Client Web server Web server Distributor Distributor Dis- patcher
to a distributor
server
f TCP connection
switch Setup request Other messages
messages
Source: Maarten van Steen, Distributed Systems: Principles and Paradigms 9 / 13
Web proxy Web server Web proxy Web proxy Cache Cache Cache Client Client Client Client Client Client Client Client Client
local cache HTTP Get request
to Web server
Source: Maarten van Steen, Distributed Systems: Principles and Paradigms 10 / 13
Web hosting system Metric estimation Analysis +/- +/- +/- Reference input Initial configuration Uncontrollable parameters (disturbance / noise) Observed output Measured output Adjustment triggers Corrections Replica placement Consistency enforcement Request routing
Source: Maarten van Steen, Distributed Systems: Principles and Paradigms 11 / 13
(a) (b) (c) (d) 2 days 2 days 6 days 2.5 days Source: Maarten van Steen, Distributed Systems: Principles and Paradigms 12 / 13
Origin server Client CDN server CDN DNS server Regular DNS system Cache
to embedded documents
(if not already cached)
documents
Return IP address client-best server DNS lookups 3 4
Source: Maarten van Steen, Distributed Systems: Principles and Paradigms 13 / 13