it server architecture 강영준 1. mainframe/workstation (1-tier architecture) 2 mainframe...

Download IT Server Architecture 강영준 1. Mainframe/workstation (1-tier Architecture) 2 Mainframe Workstation (1-tier Architecture) Client/Server (2-tier Architecture)

If you can't read please download the document

Post on 19-Dec-2015

235 views

Category:

Documents


6 download

TRANSCRIPT

  • Slide 1
  • IT Server Architecture 1
  • Slide 2
  • Mainframe/workstation (1-tier Architecture) 2 Mainframe Workstation (1-tier Architecture) Client/Server (2-tier Architecture) 3-tier Architecture Web service (4-tier Architecture) Mainframe Mainframe Workstation Mainframe ,
  • Slide 3
  • Mainframe Workstation (1-tier Architecture) 3-tier Architecture Web service (4-tier Architecture) 3 Client/Server (2tier) Mainframe workstation Thin client, fat server Server , Client Fat client, thin server Server Client DB , , Client/Server (2-tier Architecture) Client/Server (2-tier Architecture)
  • Slide 4
  • Thin client, fat server Client/Server (2-tier Architecture) Database Application Logic (Stored Procedure) Presentation Logic Return Result Execute Procedure
  • Slide 5
  • Fat client, thin server Client/Server (2-tier Architecture) Database Return Result SelectInsert Presentation Logic Application Logic
  • Slide 6
  • 6 Client/Server (2-tier Architecture) ( ) DBMS , , LAN
  • Slide 7
  • Client/Server (2-tier Architecture) Mainframe Workstation (1-tier Architecture) 3-tier Architecture Web service (4-tier Architecture) 7 3-tier Architecture , , 2 ( , ), 1 ( ) 3-tier Architecture
  • Slide 8
  • Database Application & Middleware Client 8 3-tier Architecture
  • Slide 9
  • 9 3-tier Architecture Microsoft Transaction Server Tuxedo Microsoft Transaction Server Tuxedo Oracle DB2 MS-SQL MySQL Oracle DB2 MS-SQL MySQL
  • Slide 10
  • 3-tier Architecture 10 , LAN WAN
  • Slide 11
  • Client/Server (2-tier Architecture) Mainframe Workstation (1-tier Architecture) 3-tier Architecture Web service (4-tier Architecture) 11 Web service 3-tier DB , , + Web service (4-tier Architecture)
  • Slide 12
  • 3-tier Architecture Database Application & Middleware Client 12 Web Web service (4-tier Architecture)
  • Slide 13
  • 13 IIS Apache IIS Apache Oracle DB2 MS-SQL MySQL Oracle DB2 MS-SQL MySQL Jeus Weblogic Tomcat PHP IIS Jeus Weblogic Tomcat PHP IIS Web service (4-tier Architecture)
  • Slide 14
  • LAMP? 14 OSAppDBWeb LinuxPHPMySQLApache
  • Slide 15
  • Why LAMP? Lower cost of ownership Reliability and Performance Security 15
  • Slide 16
  • Why LAMP? 16
  • Slide 17
  • Why LAMP? 17
  • Slide 18
  • Linux Linux is a clone of UNIX Created by Linus Torvalds in 1991 The PC existed but it was commonly running the Microsoft operating systems Intel chip which did not support commonly Unix He started to create one based on the Minux source code Compatibility for Intel systems This meant it could be run on any generic PC computer systems 18
  • Slide 19
  • Linux UNIX Operating system Internet was built on UNIX TCP/IP is a native UNIX protocol. Today 80% of the worlds Internet Web servers are using Linux. Commonly been used for the past 30 years. It was created in 1969 - long before Microsoft existed. It was the 1st worldwide commercial operating system. 19
  • Slide 20
  • Linux 20
  • Slide 21
  • Linux GNU Project Richard Stallman GNU is Not Unix! Free Software Foundation (1985) General Public License (GPL) Freedom to use Freedom to examine Freedom to redistribute Freedom to modify 21
  • Slide 22
  • Linux Various Distribution Version Red hat Linux Most common Linux distribution. (Enterprise, Fedora) Suse Linux Most common Linux distribution in Europe, second in North America Debian Linux Offers largest number of packages. Slackware, Turbo, Mandrake, CentOS, Asianux, etc. 22
  • Slide 23
  • Linux 23
  • Slide 24
  • Linux Interfaces 24
  • Slide 25
  • Linux Interfaces (KDE GUI) 25
  • Slide 26
  • Linux 26 Supercomputer Router Laptop Mobile phone Mobile device
  • Slide 27
  • Linux 27
  • Slide 28
  • Apache Apache Software Foundation Independent US non-profit Volunteer organization Virtual world-wide organization Currently hosts more than 50 software projects More than 1000 contributors and almost 300 members Began as the Apache Group in 1996 Incorporated as the Apache Software Foundation in 1999 28
  • Slide 29
  • Apache Apache Projects 29 HTTP Server Abdera ActiveMQ Ant APR Archiva Buildr Camel Cassandra Cayenne Click Cocoon Commons Continuum CouchDB CXF DB Directory Excalibur Felix Forrest Geronimo Gump Hadoop Harmony HttpComponents iBATIS Incubator Jackrabbit Jakarta James Labs Lenya Logging Lucene Maven Mina MyFaces ODE OFBiz OpenEJB OpenJPA OpenWebBeans PDFBox Perl Pivot POI Portals Qpid Roller Santuario ServiceMix Shindig Sling SpamAssassin STDCXX Struts Subversion Synapse Tapestry TCL Tiles Tomcat Trafficserver Turbine Tuscany UIMA Velocity Wicket Web Services Xalan Xerces XML XMLBeans XML Graphics Attic
  • Slide 30
  • Apache Key Projects HTTP Server Ant Geronimo Hadoop Harmony Jakarta Lucene Maven 30 Struts Tomcat Wicket Xalan Xercess
  • Slide 31
  • Apache A PAtCH server Open source application (free) Relatively quick and easy to install Supported on many platform Unix, FreeBSD, Linux, Solaris, NetWare, Mac OS X, MS Windows, OS2, etc. Modular design Allows for additions to the core of Apache 31
  • Slide 32
  • Apache HTTP Web Server 32
  • Slide 33
  • Apache High level conceptual architecture 33
  • Slide 34
  • Apache The Core 34 HTTP_PROTOCOL Contains routines that directly communicates with the client HTTP_MAIN Startup the server and contains the main server loop that waits for and accepts connections HTTP_REQUEST Handles the flow of the request processing, dispatching control to the modules in the appropriate order HTTP_CORE Implementing the most basic functionality
  • Slide 35
  • Apache Request Phase URI to filename translation Check access based on host address, and other available information Get an user id from the HTTP request and validate it Authorize the user Determine the MIME type of the requested object (the content type, the encoding and the language) Fix-ups (for example replace aliases by the actual path) Send the actual data back to the client Log the request 35
  • Slide 36
  • Apache Modules 36
  • Slide 37
  • Apache Standard Modules For URI to file name translation phase: mod_userdir: translate the user home directories into actual paths mod_rewrite Apache 1.2 and up mod_rewrite: rewrites URLs based on regular expressions, it has additional handlers for fix-ups and for determining the mime type For authentication / authorization phases: mod_auth, mod_auth_anon,mod_auth_db, mod_auth_dbm : User authentication using text files, anonymous in FTP-style, using Berkeley DB files, using DBM files. mod_access: host based access control. 37
  • Slide 38
  • Apache Standard Modules For determining the MIME type of the requested object (the content type, the encoding and the language): mod_mime: determines document types using file extensions. mod_mime_magic: determines document types using "magic numbers" (e.g. all gif files start with a certain code) For fix-ups phase: mod_alias: replace aliases by the actual path mod_env: fix-up the environment (based on information in configuration files) mod_speling: automatically correct minor typos in URLs 38
  • Slide 39
  • Apache Standard Modules For sending actual data back to the client: mod_actions: file type/method-based script execution mod_asis: send the file as it is mod_autoindex: send an automatic generated representation of a directory listing mod_cgi: invokes CGI scripts and returns the result mod_include: handles server side includes (documents parse by server which includes certain additional data before handing the document to the client) mod_dir: basic directory handling. mod_imap: handles image-map file For logging the request phase: mod_log_*: various types of logging modules 39
  • Slide 40
  • Why MySQL? Small business Small budget Need a open system 40
  • Slide 41
  • MySQL : What is it? A lightweight database server Fast Stable Easy to install Easy to use 41
  • Slide 42
  • Business model Let everyone use it When their business grow, sell them services and additional software 42
  • Slide 43
  • Technology Multiple storage engines Full ACID compliant (with InnoDB) Stored routines, views, triggers Built-in replication Built-in partitioning Event scheduler Plugin architecture MySQL Cluster 43
  • Slide 44
  • Marketing and Sales Open the doors Optional registration on downloads Registration on some additional contents Events Offers and campaigns MySQL Enterprise tools User support 44
  • Slide 45
  • Competition Small PostgreSQL SQLite NoSQL Big Microsoft : MS-SQL IBM : DB2 Oracle 45
  • Slide 46
  • Popularity 46
  • Slide 47
  • The LAMP Linux Apache MySQL Perl/PHP/Python 47
  • Slide 48
  • History 1979 TcX 1995 5 Mysql 1.0 1996 10 Mysql 3.11.1 1996 11 Linux binary, Source 48
  • Slide 49
  • History 49 3.23 MyISAM InnoDB Berkeley DB /
  • Slide 50
  • History 50 4.0 InnoDB Boolean Merge Insert Auto Increment Select UNION DELETE libmysqld
  • Slide 51
  • History 51 4.1 Prepared statement parameter binding / Heap(memory) B-Tree MyISAM OpenGIS SSL / Warning . MySQL UTF-8 UCS-2 , . GROUP_CONCAT() row
  • Slide 52
  • History 52 5.0 (Stored Procedures) (functions) (Triggers) (Views) (Information Schema) (Server-side Cursors) (XA Transactions) (Archive Storage Engine) (Federated Storage Engine) (Instance Manager)
  • Slide 53
  • Architecture 53
  • Slide 54
  • Enterprise Dashboard 54
  • Slide 55
  • Query Analyzer 55
  • Slide 56
  • Replication Monitor 56
  • Slide 57
  • PHP 57 Personal Hypertext Preprocessor Open Source scripting language Server-side language Especially suited for web development Returns plain HTML, no code Save file to server, view in a browser
  • Slide 58
  • PHP 58 Hello world!
  • Slide 59
  • PHP 59 Active web page
  • Slide 60
  • PHP 60 Interactive web page
  • Slide 61
  • PHP 61 Connecting to MySQL
  • Slide 62
  • PHP 62 Closing MySQL
  • Slide 63
  • PHP 63 Executing query - Insert
  • Slide 64
  • PHP 64 Executing query - Insert