1 / 60

Software Architecture

Software Architecture. CIS 376 Bruce R. Maxim UM-Dearborn. Software Architecture. Architectural Design process for identifying the subsystems that make up a system defines framework for sub-system control and communication Software Architecture

shania
Télécharger la présentation

Software Architecture

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Software Architecture CIS 376 Bruce R. Maxim UM-Dearborn

  2. Software Architecture • Architectural Design • process for identifying the subsystems that make up a system • defines framework for sub-system control and communication • Software Architecture • description of the system output by architectural design

  3. Architectural Design Process • System structuring • system decomposed into several subsystems • subsystem communication is established • Control modeling • model of control relationships among system components is established • Modular decomposition • identified subsystems decomposed into modules

  4. Architectural Models • Static structural model • shows major system components • Dynamic process model • shows process structure of the system • Interface model • defines subsystem interfaces • Relationships model • data flow or control flow diagrams

  5. Sommerville discusses several architectural models

  6. CASE Repository Model

  7. Call-Return Model

  8. Real-Time System Control Model

  9. Selective Broadcasting Model

  10. Interrupt-Driven Control Model

  11. Compiler Model

  12. OSI Reference Model Application

  13. Distributed Systems • Most large computer systems are implemented as distributed systems • Information is also distributed over several computers rather than being confined to a single machine • Distributed software engineering has become very important

  14. System Types • Personal systems • designed to run on a single user system • Embedded systems • may run on a single processor • might run on an integrated group of processors • Distributed systems • system software runs on loosely integrated group of cooperating processors linked by a network

  15. Characteristics Resource sharing Openness Concurrency Scalable Fault tolerant Transparent Concerns Complexity Communication Security Manageability Quality of Service Unpredictability Distributed Systems

  16. Distributed Systems Architectures • Client/Server • offer distributed services which may be called by clients • servers providing services are treated differently than clients using the services • Distributed Object • no distinctions made between clients and servers • any system object may provide and use services from any other system object

  17. Middleware • Software that manages and supports the different components of a distributes system • Sits in the middle of the system to broker service requests among components • Usually off-the-shelf products rather than custom • Representative architectures • CORBA (ORB) • COM (Microsoft) • JavaBeans (Sun)

  18. Multiprocessor Architecture • Simplest distributed system model • System composed of multiple processes that may execute on different processors • Model used in many large real-time systems • Distribution of processes to processors may be preordered or may be under control of a dispatcher

  19. Multiprocessor Traffic Control Systemfrom Sommerville

  20. Client/Server Architectures • Application is modeled as a set of services that are provided by servers and a set of clients that use these services • Clients know the servers but the servers do not need to know all the clients • Clients and servers are logical processes (not always physical machines) • The mapping of processes to processors is not always 1:1

  21. Client/Server Systemfrom Sommerville

  22. Representative Client/Server SystemsPart 1 • File servers • client requests selected records from a file • server transmits records to client over the network • Database servers • client sends SQL requests to server • server processes the request • server returns the results to the client over the network

  23. Representative Client/Server Systemspart 2 • Transaction servers • client sends requests that invokes remote procedures on the server side • server executes procedures invoked and returns the results to the client • Groupware servers • server provides set of applications that enable communication among clients using text, images, bulletin boards, video, etc.

  24. Client/Server Software Components • User interaction/presentation subsystem • Application subsystem • implements requirements defined by the application within the context of the operating environment • components may reside on either client or server side • Database management subsystem • Middleware • all software components that exist on both the client and the server to allow exchange of information

  25. Representative Client/Server Configurations - part 1 • Distributed presentation • database and application logic remain on the server • client software reformats server data into GUI format • Remote presentation • similar to distributed presentation • primary database and application logic remain on the server • data sent by the server is used by the client to prepare the user presentation

  26. Representative Client/Server Configurations - part 2 • Distributed logic • client is assigned all user presentation tasks associated with data entry and formulating server queries • server is assigned data management tasks and updates information based on user actions • Remote data management • applications on server side create new data sources • applications on client side process the new data returned by the server

  27. Representative Client/Server Configurations - part 3 • Distributed databases • data is spread across multiple clients and servers • requires clients to support data management as well as application and GUI components • Fat server • most software functions for C/S system are allocated to the server • Thin clients • network computer approach relegating all application processing to a fat server

  28. Thin Client Model • Used when legacy systems are migrated to client server architectures • the legacy system may act as a server in its own right • the GUI may be implemented on a client • It chief disadvantage is that it places a heavy processing load on both the server and the network

  29. Fat Client Model • More processing is delegated to the client as the application processing is locally extended • Suitable for new client/server systems when the client system capabilities are known in advance • More complex than thin client model with respect to management issues • New versions of each application need to installed on every client

  30. Three-tier Architecture • Each application architecture layers (presentation, application, database) may run on separate processors • Allows for better performance than a thin-client approach • Simpler to manage than fat client approach • Highly scalable (as demands increase add more servers)

  31. Three-Tier Architecturefrom Sommerville

  32. Guidelines for Distributing Application Subsystems • The presentation/interaction subsystem is generally placed on the client. • If the database is to be shared by multiple users connected by a LAN, the database is typically located on the server. • Static data used for reference should be allocated to the client.

  33. Linking Client/Server Software Subsystems • Pipes • permit messaging between different machines running different operating systems • Remote procedure calls • permit process running on one machine to invoke execute of process residing on another machine • Client/server SQL interaction • SQL requests passed from client to server DBMS, this mechanism is limited to RDBMS

  34. Design Issues for Client/Server Systems - part 1 • Data and architectural design • dominates the design process to be able to effectively use the capabilities of RDBMS or OODMBS • Event-driven paradigm • when used, behavioral modeling should be conducted • the control-oriented aspects of the behavioral model should translated into the design model

  35. Design Issues for Client/Server Systems - part 2 • Interface design • elevated in importance • user interaction/presentation component implements all functions associated with a GUI • Object-oriented point of view • often chosen, since object structure is provided by events initiated in the GUI and their event handlers within the client-based software

  36. Architectural Design for Client/Server Systems - part 1 • Best described as communicating processes style architecture • Architectural goal is to achieve easy scalability when adding and arbitrary number of clients • Modern C/S systems tend to be component-based • An object request broker (ORB) architecture is used for implementation

  37. Architectural Design for Client/Server Systems - part 2 • Object adapters or wrappers facilitate communication among clients and servers • component implementations are registered • all component references are interpreted and reconciled • component references are mapped to corresponding component implementations • objects are activated and deactivated • operations are invoked when messages are transmitted • security features are implemented

  38. Client/Server Design Repository Information - part 1 • Entities (from ER diagram) • Files (which implement entities) • File-to-field relationship (establishes file layout) • Fields (from data dictionary) • File-to-file relationships • related files that may be joined together • Relationship validation

  39. Client/Server Design Repository Information - part 2 • Field type • used to permit inheritance from super classes • Data type (characteristics of field data) • File type (used to identify file location) • Field function (key, foreign key, attribute, etc.) • Allowed values • Business values • rules for editing, calculating derived fields, etc.

  40. Data Distribution and Management Techniques - part 1 • Relational data base management systems • Manual extract • user allowed to manually copy data from server to client • Snapshot • automates manual extract by specifying a copy of the data be transferred from the client to the server at predefined intervals

  41. Data Distribution and Management Techniques - part 2 • Replication • multiple copies of data are maintained at different sites • Fragmentation • system database is spread across several machines

  42. Client/Server Design Approach 1. For each elementary business process, identify the files created, updated, referenced, or deleted. 2. Use files from step 1 as basis for defining components. 3. For each component, retrieve the business rules and other business object information that has been established for the relevant file. 4. Determine which rules are relevant to the process and decompose the rules down to the method level. 5. As required, define any additional components that are needed to implement the methods.

  43. Process Design Entities - part 1 • Methods • describe how a business rule is to be implmemented • Elementary processes • business processes identified in the analysis model • Process/component link • identifies components that makeup the solution for an elementary business process

  44. Process Design Entities - part 2 • Components • describes components shown on structure chart • Business rule/component link • identifies components significant to implementation of a given business rule

  45. Client/Server Testing Strategypart 1 • Application function tests • client applications tested in stand alone manner • Server tests • test coordination and management functions of server • also measure performance of server • Database tests • check accuracy and integrity server data • examine transactions posted by client, test archiving

  46. Client/Server Testing Strategypart 2 • Transaction testing • ensure each class of transactions is processed correctly • Network communication testing • verify communication among network nodes

  47. Client/Server Testing Tactics • Begins with testing in the small and then proceeds to integration testing using the non-incremental or big bang approach • Requires special attention to configuration testing and compatibility testing • OO testing tactics can be used for C/S systems • GUI testing requires special techniques in C/S systems (e.g. structured capture/playback)

  48. Distributed Object Architectures • No distinctions made between client objects and server objects • Each distributable entity is an object that both provides and consumes services • Object communication is though an object request broker (middleware or software bus) • More complex to design than client/server systems

  49. Distributed Object Architecturefrom Sommerville

  50. Distributed Object ArchitectureAdvantages • Allows system designer to delay decisions on where and how services should be provided • Very open architecture that allows new resources to be added as required • System is flexible and scalable • Dynamic reconfiguration is possible by allowing objects to migrate across the network as required

More Related