1.Mod1 Cs Architecture

download 1.Mod1 Cs Architecture

of 24

Transcript of 1.Mod1 Cs Architecture

  • 7/28/2019 1.Mod1 Cs Architecture

    1/24

    CLIENT / SERVER ARCHITECTURE

  • 7/28/2019 1.Mod1 Cs Architecture

    2/24

    AU Distance Education DMC1754 - Middleware Technologies - Unit I

    CLIENT / SERVER MODEL

    Model or architecture describes therelationship between two computer programs

    Client & Server

    Client is the requester that makes a servicerequestServer fulfills the request or services therequestMultiple client programs share the services of a common server program

  • 7/28/2019 1.Mod1 Cs Architecture

    3/24

    AU Distance Education DMC1754 - Middleware Technologies - Unit I

    CLIENT / SERVER MODEL

    Servers typically contain data files &applications accessed by multiple clientsClient & Server share the processing loadClient / Server can be on same computersystem or on different computer systemsClient/Server model - a convenient way tointerconnect programs distributed acrossdifferent locations

  • 7/28/2019 1.Mod1 Cs Architecture

    4/24

    AU Distance Education DMC1754 - Middleware Technologies - Unit I

    CLIENT / SERVER MODEL

    Server can range from PCs to mainframesStandard Server hardware

    Support for large amount of RAMFast input and outputFast network cards

    Ability to support multiple processorsSupport for fault tolerance

  • 7/28/2019 1.Mod1 Cs Architecture

    5/24

    AU Distance Education DMC1754 - Middleware Technologies - Unit I

    Function of Client / Server

    ClientInitiates requestsWaits for and receives repliesCan connect to several servers at the same time

    Typically interacts directly with end-users using aGraphical User Interface (GUI)Server

    Waits for requests from clientsUpon receipt of requests, processes them and then servesrepliesUsually accepts connections from a large number of clientsTypically does not interact directly with end-users

  • 7/28/2019 1.Mod1 Cs Architecture

    6/24

    AU Distance Education DMC1754 - Middleware Technologies - Unit I

    Transaction Processing Example

    Transaction Get Balance in a Bank AccountSteps

    User initiates request giving bank account number (Client

    program )Main Server at Bank (Server program) services therequest by contacting the Database server

    o Sends a request (Client Program) to the Database Server alongwith the bank account number

    o Database Server (Server Program) retrieves the bank balanceusing the bank account number and returns the value

    Main server at Bank (Server Program) returns thebalance amount to the user (Client Program)

  • 7/28/2019 1.Mod1 Cs Architecture

    7/24

    AU Distance Education DMC1754 - Middleware Technologies - Unit I

    CLIENT / SERVER Transaction Processing

    CLIENT

    MAIN SERVER

    DATABASE SERVER

    1

    2

    3

    4

  • 7/28/2019 1.Mod1 Cs Architecture

    8/24

    AU Distance Education DMC1754 - Middleware Technologies - Unit I

    CLIENT/SERVER ARCHITECTURE IN THE WEB

    World Wide Web (WWW) or Web revolves aroundthe client/server architectureClient computer system uses Browsers ( like InternetExplorer, Netscape Navigator, Mozilla etc. ) tointeract with Internet servers using ProtocolsProtocols help in the accurate transfer of data -requests from browser & responses from serverCommonly used protocols :

    HTTP (Hyper Text Transfer Protocol)FTP (File Transfer Protocol)SMTP (Simple Mail Transfer Protocol)

  • 7/28/2019 1.Mod1 Cs Architecture

    9/24

    AU Distance Education DMC1754 - Middleware Technologies - Unit I

    Client / Server ModelStatic HTML Pages

  • 7/28/2019 1.Mod1 Cs Architecture

    10/24

    AU Distance Education DMC1754 - Middleware Technologies - Unit I

    Client / Server ModelDynamic HTML Pages

  • 7/28/2019 1.Mod1 Cs Architecture

    11/24

    AU Distance Education DMC1754 - Middleware Technologies - Unit I

    Client / Server ModelServer side Scripting

  • 7/28/2019 1.Mod1 Cs Architecture

    12/24

    AU Distance Education DMC1754 - Middleware Technologies - Unit I

    FILE SERVER

  • 7/28/2019 1.Mod1 Cs Architecture

    13/24

    AU Distance Education DMC1754 - Middleware Technologies - Unit I

    FILE SERVER

    Objectives of File ServerTo promote sharing of files (computerprograms and/or data)

    To encourage indirect or implicit (viaprograms) use of remote computers

    To shield a user from variations in file storagesystems among hosts

    To transfer data reliably and efficiently

  • 7/28/2019 1.Mod1 Cs Architecture

    14/24

    AU Distance Education DMC1754 - Middleware Technologies - Unit I

    Database Server

    A computer in a LAN dedicated to databasestorage and retrievalThe database server holds the DatabaseManagement System (DBMS) and thedatabasesUpon requests from the client machines, it

    searches the database for selected records andpasses them back over the network

  • 7/28/2019 1.Mod1 Cs Architecture

    15/24

    AU Distance Education DMC1754 - Middleware Technologies - Unit I

    Database Server - Example

    Software Project Team sharing a database

  • 7/28/2019 1.Mod1 Cs Architecture

    16/24

    AU Distance Education DMC1754 - Middleware Technologies - Unit I

    APPLICATION SERVER

    Application server runs the programs andprocesses the dataApplication servers are typically used forcomplex transaction-based applicationsApplication server performs the businesslogic functions and some data access

    An application server provides middle tierprocessing between the user's machine andthe database management system (DBMS)

  • 7/28/2019 1.Mod1 Cs Architecture

    17/24

    AU Distance Education DMC1754 - Middleware Technologies - Unit I

    Two-Tier Architecture - Internet

  • 7/28/2019 1.Mod1 Cs Architecture

    18/24

    AU Distance Education DMC1754 - Middleware Technologies - Unit I

    Three -Tier Architecture - Internet

  • 7/28/2019 1.Mod1 Cs Architecture

    19/24

    AU Distance Education DMC1754 - Middleware Technologies - Unit I

    Multi -Tier Architecture

  • 7/28/2019 1.Mod1 Cs Architecture

    20/24

    AU Distance Education DMC1754 - Middleware Technologies - Unit I

    Multi -Tier Architecture

  • 7/28/2019 1.Mod1 Cs Architecture

    21/24

    AU Distance Education DMC1754 - Middleware Technologies - Unit I

    Multi -Tier Architecture

  • 7/28/2019 1.Mod1 Cs Architecture

    22/24

    AU Distance Education DMC1754 - Middleware Technologies - Unit I

    Advantages of Client/Server

    Distribution or sharing of processing loadamong several independent computersCentralized data storage on server, hence

    easy to implement security of data accessClients with the appropriate permissions maybe permitted to access and change dataCentralized data. Hence easy to administerIs capable of functioning with multipledifferent clients each with differentcapabilities

  • 7/28/2019 1.Mod1 Cs Architecture

    23/24

    AU Distance Education DMC1754 - Middleware Technologies - Unit I

    Disadvantages of Client/Server

    Traffic congestion on the network (number of simultaneous client requests to a server) cancause a server to become overloaded and

    unable to service clients requestsUnder client-server, should a critical serverfail, clients requests cannot be fulfilled.

    Hence, lack of robustness is a cause forconcern

  • 7/28/2019 1.Mod1 Cs Architecture

    24/24

    In computing, a file server is a computer attached to a network that has the primary purpose of providing a location for shared disk access , i.e. shared storage of computer files (such asdocuments, sound files, photographs, movies, images, databases, etc.) that can be accessed by theworkstations that are attached to the same computer network. The term server highlights the roleof the machine in the client server scheme, where the clients are the workstations using thestorage. A file server is not intended to perform computational tasks, and does not run programson behalf of its clients. It is designed primarily to enable the storage and retrieval of data whilethe computation is carried out by the workstations.ile servers are commonly found in schools and offices, where users use a LAN to connect their client computers.Types of file serversA file server may be dedicated or non-dedicated. A dedicated server is designed specifically for use as a file server, with workstations attached for reading and writing files and databases.File servers may also be categorized by the method of access: Internet file servers are frequentlyaccessed by File Transfer Protocol (FTP) or by HTTP (but are different from web servers , thatoften provide dynamic web content in addition to static files). Servers on a LAN are usuallyaccessed by SMB /CIFS protocol ( Windows and Unix-like ) or NFS protocol (Unix-like systems).Database servers , that provide access to a shared database via a database device driver,are not regarded as file servers.

    AU Distance Education DMC1754 - Middleware Technologies - Unit I

    http://en.wikipedia.org/wiki/Shared_disk_accesshttp://en.wikipedia.org/wiki/Client%E2%80%93serverhttp://en.wikipedia.org/wiki/Client%E2%80%93serverhttp://en.wikipedia.org/wiki/Client%E2%80%93serverhttp://en.wikipedia.org/wiki/Local_area_networkhttp://en.wikipedia.org/wiki/File_Transfer_Protocolhttp://en.wikipedia.org/wiki/Web_serverhttp://en.wikipedia.org/wiki/Server_Message_Blockhttp://en.wikipedia.org/wiki/CIFShttp://en.wikipedia.org/wiki/Microsoft_Windowshttp://en.wikipedia.org/wiki/Unix-likehttp://en.wikipedia.org/wiki/Network_File_System_(protocol)http://en.wikipedia.org/wiki/Database_serverhttp://en.wikipedia.org/wiki/Database_serverhttp://en.wikipedia.org/wiki/Network_File_System_(protocol)http://en.wikipedia.org/wiki/Unix-likehttp://en.wikipedia.org/wiki/Unix-likehttp://en.wikipedia.org/wiki/Unix-likehttp://en.wikipedia.org/wiki/Microsoft_Windowshttp://en.wikipedia.org/wiki/CIFShttp://en.wikipedia.org/wiki/Server_Message_Blockhttp://en.wikipedia.org/wiki/Web_serverhttp://en.wikipedia.org/wiki/File_Transfer_Protocolhttp://en.wikipedia.org/wiki/Local_area_networkhttp://en.wikipedia.org/wiki/Client%E2%80%93serverhttp://en.wikipedia.org/wiki/Client%E2%80%93serverhttp://en.wikipedia.org/wiki/Client%E2%80%93serverhttp://en.wikipedia.org/wiki/Shared_disk_access