Presentation is loading. Please wait.

Presentation is loading. Please wait.

CSC 480 Software Engineering Lecture 18 Nov 6, 2002.

Similar presentations


Presentation on theme: "CSC 480 Software Engineering Lecture 18 Nov 6, 2002."— Presentation transcript:

1 CSC 480 Software Engineering Lecture 18 Nov 6, 2002

2 Application Layers

3 Three-tier architectures In a three-tier architecture, each of the application architecture layers may execute on a separate processor Allows for better performance than a thin-client approach and is simpler to manage than a fat- client approach A more scalable architecture - as demands increase, extra servers can be added

4 A Three-Tier C/S architecture

5 An Internet Banking System Account service provision Application Server HTML file transfer

6 Use of C/S Architectures

7 Distributed Object Architectures There is no distinction in a distributed object architectures between clients and servers Each distributable entity is an object that provides services to other objects and receives services from other objects Object communication is through a middleware system called an object request broker (software bus) However, more complex to design than C/S systems

8 Distributed Object Architecture

9 Advantages It allows the system designer to delay decisions on where and how services should be provided It is a very open system architecture that allows new resources to be added to it as required The system is flexible and scaleable It is possible to reconfigure the system dynamically with objects migrating across the network as required

10 Uses – distributed object architecture As a logical model that allows you to structure and organise the system. In this case, you think about how to provide application functionality solely in terms of services and combinations of services As a flexible approach to the implementation of client-server systems. The logical model of the system is a client-server model but both clients and servers are realised as distributed objects communicating through a software bus

11 A Data Mining System

12 Data Mining System The logical model of the system is not one of service provision where there are distinguished data management services It allows the number of databases that are accessed to be increased without disrupting the system It allows new types of relationship to be mined by adding new integrator objects

13 CORBA CORBA is an international standard for an Object Request Broker - middleware to manage communications between distributed objects Several implementation of CORBA are available DCOM is an alternative approach by Microsoft to object request brokers CORBA has been defined by the Object Management Group

14 Application structure Application objects Standard objects, defined by the OMG, for a specific domain e.g. insurance (Vertical) Fundamental CORBA services such as directories and security management Horizontal (i.e. cutting across applications) facilities such as user interface facilities

15 CORBA Application Structure

16 CORBA Standards An object model for application objects  A CORBA object is an encapsulation of state with a well-defined, language-neutral interface defined in an IDL (interface definition language) An object request broker that manages requests for object services A set of general object services of use to many distributed applications A set of common components built on top of these services

17 CORBA objects CORBA objects are comparable, in principle, to objects in C++ and Java They MUST have a separate interface definition that is expressed using a common language (IDL) similar to C++ There is a mapping from this IDL to programming languages (C++, Java, etc.) Therefore, objects written in different languages can communicate with each other

18 Transparence Through IDL

19 CORBA Services

20 Structure of ORB

21 CORBA Business Objects

22 What does IDL look like? IDL interface definitions are elegant and (usually!) easy to write and understand. interface salestax { float calculate_tax ( in float taxable_amount ); } Interface to an object that calculates sales tax in a store's computing system.  The object's type is salestax, and it can perform one operation: calculate_tax.  The object takes one input parameter, taxable_amount, which is a float.  The return value is also a float.

23 Object Request Broker (ORB) The ORB handles object communications. It knows of all objects in the system and their interfaces Using an ORB, the calling object binds an IDL stub that defines the interface of the called object Calling this stub results in calls to the ORB which then calls the required object through a published IDL skeleton that links the interface to the service implementation

24 ORB-based Object Comm’tions

25 Inter-ORB Communications ORBs are not usually separate programs but are a set of objects in a library that are linked with an application when it is developed ORBs handle communications between objects executing on the sane machine Several ORBS may be available and each computer in a distributed system will have its own ORB Inter-ORB communications are used for distributed object calls

26 Inter-ORB Communications

27 CORBA Services Naming and trading services  These allow objects to discover and refer to other objects on the network Notification services  These allow objects to notify other objects that an event has occurred Transaction services  These support atomic transactions and rollback on failure


Download ppt "CSC 480 Software Engineering Lecture 18 Nov 6, 2002."

Similar presentations


Ads by Google