CIS511 สถาปัตยกรรมระบบสารสนเทศ Information Science Institute of Sripatum University Information System Architecture
Download ReportTranscript CIS511 สถาปัตยกรรมระบบสารสนเทศ Information Science Institute of Sripatum University Information System Architecture
Information Science Institute of Sripatum University CIS511 Information System Architecture สถาปัตยกรรมระบบสารสนเทศ Asst.Prof.Dr.Surasak Mungsing [email protected] [email protected] http://www.spu.ac.th/teacher/surasak.mu Sripatum University SPU Lecture 06 Client-Server Architecture Information Science Institute of Sripatum University Client – Server Architecture SPU Information Science Institute of Sripatum University Client / Server คืออะไร Client / Server ประกอบด ้วยสว่ นทีท ่ ำหน ้ำทีป ่ ระมวลผล 2 สว่ นคือ ั Module ด ้ำน Client : เป็ น Software Module ทีต ่ ้องอำศย Server เพือ ่ ประมวลผลบำงประกำร โดยกำรสง่ Request ไป เพือ ่ ขอบริกำรจำก Server 1 ตัวหรืออำจมำกกว่ำ Server : มี Module ทำหน ้ำทีร่ อรับ Request จำก client แล ้ว ทำกำร Process ตำมควำมเหมำะสม แล ้วสง่ ผลลัพธ์คน ื ไปยัง client บำงครัง้ Server สำมำรถทำตัวเป็ น Client เพือ ่ ขอรับ บริกำรบำงอย่ำงจำก Server อืน ่ ๆ ได ้ (Source: เกียรติพงษ์ ยอดเยีย ่ มแกร) SPU Information Science Institute of Sripatum University Client / Server Computing กำรออกแบบ Application ให ้มีกำรทำงำนแบบแยกกันเป็ น โมดูลๆ(Modular approach to application design) ้ เป็ นสถำปั ตยกรรมสำหรับกำรใชงำนและกำร Share ้ เป็ นกำรออกแบบ Application ทีส ่ ำมำรถใชงำนบน hardware ใดๆก็ได ้(Hardware-independent to application Design) (Source: เกียรติพงษ์ ยอดเยีย ่ มแกร) SPU Information Science Institute of Sripatum University Modular approach ออกแบบจำกข ้อเท็จจริงทีว่ ำ่ Application ทำงำนได ้หลำย ั ฟั งก์ชน Presentation Logic หรือวิธท ี ี่ User จะติดต่อหรือโต ้ตอบกับ ระบบ ่ วิธก Business Logic หรือวิธก ี ำรกำหนดเงือ ่ นไข เชน ี ำหนด เงือ ่ นไข กำรคำนวณต่ำงๆ Database Logic หรือวิธก ี ำรเก็บข ้อมูล กำรเรียกค ้น กำรจัดกำร ข ้อมูล Disk drive Database Business Presentation Logic Logic Logic Application Terminal (Source: เกียรติพงษ์ ยอดเยีย ่ มแกร) SPU Information Science Institute of Sripatum University Client/Server Configuration Reply Database Logic Disk drive Server Process with Business Request Logic Presentation Logic Client Process with Presentation Logic and Business Logic Terminal Database Logic กำรเปลีย ่ นแปลงใด ๆ ทีเ่ กิดต่อ Function Area หนึง่ ๆ จะไม่มผ ี ลกระทบต่อ Function Area อืน ่ ๆ (Source: เกียรติพงษ์ ยอดเยีย ่ มแกร) SPU Information Science Institute of Sripatum University Client Server Architecture A network architecture in which each computer or process on the network is either a client or a server. Source: http://webopedia.lycos.com SPU Information Science Institute of Sripatum University Components Clients Servers Communication Networks Server Client Source: Kathleen R. Murray, Ph.D SPU Information Science Institute of Sripatum University Clients Clients are Applications Applications that run on computers Rely on servers for Files Devices Processing power Example: E-mail client An application that enables you to send and receive e-mail Source: Kathleen R. Murray, Ph.D SPU Information Science Institute of Sripatum University Servers Servers Manage Resources Computers or processes that manage network resources Disk drives (file servers) Printers (print servers) Network traffic (network servers) Example: Database Server A computer system that processes database queries Source: Kathleen R. Murray, Ph.D SPU Information Science Institute of Sripatum University Communication Networks Networks Connect Clients and Servers Source: Kathleen R. Murray, Ph.D SPU Information Science Institute of Sripatum University Client–Server Computing Process takes place Servers on the server and on the client Client-Server Computing Optimizes Computing Resources Store and protect data Process requests from clients Clients Make requests Format data on the desktop Source: Kathleen R. Murray, Ph.D SPU Information Science Institute of Sripatum University Application Functions Software application functions are separated into three distinct parts Server: Data Management Client: Presentation & Application Logic Source: Kathleen R. Murray, Ph.D SPU Information Science Institute of Sripatum University Application Components 3 Data Management 2 Application Logic 1 Presentation 2 Client Types Fat Thin Client Client 3 Logical Tiers Database Applications: Most common use of client-server architectures Source: Kathleen R. Murray, Ph.D SPU Information Science Institute of Sripatum University Thin or Fat Thin client and Fat Server กำรประมวลผลสว่ นใหญ่เกิดที่ Server ทำให ้ client ไม่ต ้องใช ้ ิ ธิภำพสูง เครือ ่ งประสท Thin Server and Fat Client กำรประมวลผลสว่ นใหญ่เกิดที่ client ทำให ้ต ้องใช ้ client ิ ธิภำพสูงกว่ำ ประสท (Source: เกียรติพงษ์ ยอดเยีย ่ มแกร) SPU Information Science Institute of Sripatum University Middleware Software that connects two otherwise separate applications Database Server: Example: Middleware product linking a database system to a Web server Manages Data Middleware Links Applications Web Server: Presents Dynamic Pages Client: Requests Data via Web Source: Kathleen R. Murray, Ph.D SPU Information Science Institute of Sripatum University Types of Servers Application Servers List Servers Audio/Video Servers Mail Servers Chat Servers News Servers Fax Servers Proxy Servers FTP Servers Telnet Servers Groupware Servers Web Servers IRC Servers Source: http://webopedia.lycos.com SPU Information Science Institute of Sripatum University รูปแบบของ Client/Server Database Logic Server Database Logic Server Database Logic Server Business Logic Client Database Server Model Business Logic Business Logic Split Business Logic Model Business Logic Presentation Client Model Presentation Logic Presentation Logic Client Presentation Logic Client (Source: เกียรติพงษ์ ยอดเยีย ่ มแกร) SPU Information Science Institute of Sripatum University Software Sharing เป็ นกำรออกแบบให ้ application สำมำรถ Share Logic กันได ้ งำนหลำย ๆ งำนอำจเรียกใช ้ Module เดียวกัน หรือ ้ Module หนึง่ อำจถูกเรียกใชโดย Application มำกกว่ำ 1 ตัว ลดปั ญหำกำรเขียน Logic ซ้ำหลำยๆ ครัง้ ใน Application หลำยตัว (Source: เกียรติพงษ์ ยอดเยีย ่ มแกร) SPU Information Science Institute of Sripatum University Hardware - Independent Approach Application ถูกออกแบบให ้สำมำรถใชกั้ บ Hardware หลำกรูปแบบ ้ สำมำรถใชงำนในลั กษณะ Stand Alone หรือ Network File/Print Database Server Server Clients Bus. Pres. Logic Logic Request and Responses (Source: เกียรติพงษ์ ยอดเยีย ่ มแกร) SPU Information Science Institute of Sripatum University มำตรฐำน client / server มำตรฐำนกำหนดว่ำ ระบบกำร Interface ระหว่ำง Client กับ Server ด ้วย Middleware ื่ สำรกันอย่ำงไร Client / Server ติดต่อสอ Client เข ้ำถึง Server และ Server ทำงำนตำมที่ Client ต ้องกำรอย่ำงไร middleware คือ ตัวกลำงของระบบ Interface ระหว่ำง Client + Server ชว่ ยให ้ Client และ Server สำมำรถพูดคุยกันได ้ ื่ สำรระหว่ำง Client ORB(Object Request broker) ให ้บริกำรติดต่อสอ + Server ODBC(Open Database Connectivity) เทคโนโลยี ทีย ่ อมให ้ client ื่ มโยงกับ Database หลำยยีห 1 เครือ ่ งสำมำรถเชอ ่ ้อได ้ SPU Information Science Institute of Sripatum University SPU Information Science Institute of Sripatum University SPU