Docsity

Middleware: Enabling Distributed Applications, Summaries of Network Programming

Toggle sidebar
bg1
Network Programming ~ Wainaina Page 1 of 5
Introduction
In a distributed system (client-server application), the various components are hosted on different
machines. These components send requests and responses between themselves in a heterogeneous
environment, which may present a challenge. To address this and other challenges, a software that
facilitates exchanges between different hosts is deployed. This software is known as middleware.
A middleware is a layer of software running between client and server processes. It shields the client
(and application developers) from the complexity of the underlying communications protocol, network
operating systems functions and hardware configurations. It can also be looked at as a common set of
application programming interfaces (APIs) provided to application developers to enable rapid
development of distributed applications and flexible access to distributed resources.
Typically, middleware is based on one of two underlying mechanisms. These mechanisms are
determined by the programming paradigms used in developing the distributed applications. The two
main programming paradigms are structured/procedural and object-orientation. The middleware
provides two types of communication between the client and the server:
Message passing: This mechanism is for the object-oriented programming paradigm. The
communication between the client and the server is via exchange of messages.
Remote procedure calls (RPCs): This mechanism is for the structured/procedural programming
paradigm and communication between the client and the server is effected by calling of procedures
that are resident in either component (whether client or server).
Positioning Middleware
Many distributed applications make direct use of the programming interface offered by network
operating systems. E.g. communication is often expressed through operations on sockets, which allow
processes on different machines to pass each other messages. A problem with this approach is that
distribution is hardly transparent and will not hide heterogeneity of the underlying platforms from
applications. A solution is to place an additional layer of software between applications and the
network operating system, offering a higher level of abstraction as shown below:
Each local system forming part of the underlying network operating system is assumed to provide local
resource management in addition to simple communication means to connect to other computers i.e.
middleware will not manage an individual node; this is left entirely to the local operating system.
After widespread use of network operating systems, many organizations found themselves having lots
of networked applications that could not be easily integrated into a single system. At that point,
manufacturers started to build higher-level, application-independent services into their systems.
Agreeing on what the right middleware is not easy. An approach is to set up an organization that
subsequently defines a common standard for some middleware solution. At present, there are a number
pf3
pf4
pf5

Partial preview of the text

Download Middleware: Enabling Distributed Applications and more Summaries Network Programming in PDF only on Docsity!

Introduction In a distributed system (client-server application), the various components are hosted on different machines. These components send requests and responses between themselves in a heterogeneous environment, which may present a challenge. To address this and other challenges, a software that facilitates exchanges between different hosts is deployed. This software is known as middleware.

A middleware is a layer of software running between client and server processes. It shields the client (and application developers) from the complexity of the underlying communications protocol, network operating systems functions and hardware configurations. It can also be looked at as a common set of application programming interfaces (APIs) provided to application developers to enable rapid development of distributed applications and flexible access to distributed resources.

Typically, middleware is based on one of two underlying mechanisms. These mechanisms are determined by the programming paradigms used in developing the distributed applications. The two main programming paradigms are structured/procedural and object-orientation. The middleware provides two types of communication between the client and the server:

 Message passing: This mechanism is for the object-oriented programming paradigm. The communication between the client and the server is via exchange of messages.  Remote procedure calls (RPCs): This mechanism is for the structured/procedural programming paradigm and communication between the client and the server is effected by calling of procedures that are resident in either component (whether client or server).

Positioning Middleware Many distributed applications make direct use of the programming interface offered by network operating systems. E.g. communication is often expressed through operations on sockets, which allow processes on different machines to pass each other messages. A problem with this approach is that distribution is hardly transparent and will not hide heterogeneity of the underlying platforms from applications. A solution is to place an additional layer of software between applications and the network operating system, offering a higher level of abstraction as shown below:

Each local system forming part of the underlying network operating system is assumed to provide local resource management in addition to simple communication means to connect to other computers i.e. middleware will not manage an individual node; this is left entirely to the local operating system. After widespread use of network operating systems, many organizations found themselves having lots of networked applications that could not be easily integrated into a single system. At that point, manufacturers started to build higher-level, application-independent services into their systems. Agreeing on what the right middleware is not easy. An approach is to set up an organization that subsequently defines a common standard for some middleware solution. At present, there are a number

of such standards available, although there are not compatible with each other, and products implementing the same standard but from different manufacturers rarely inter-work.

Advantages of Middleware i). Reduce number of interfaces i.e. clients see only one system, the middleware. ii). Centralizes control. iii). Functionality widely available to all clients. iv). It allows for the implementation of functionality that otherwise would be very difficult to provide.

Disadvantages of Middleware: i). Complex software. ii). Development platform (API) not complete system. iii). Functionality is hard to understand.

Middleware Services  Middleware provides services such as name-to-address resolution, dynamic server process invocation, locating particular servers, load balancing, security, failure recovery, message routing, reliable message delivery etc.  Middleware can be viewed as a set of services that are accessible to application programmers through an API.  There are several middleware services available, e.g. remote procedure call (RPC)  Many middleware services are high-level services.

Examples of Middleware i). Distributed Computing Environment from OSF. It is based on RPC and IDL ii). Common Object Request Broker Architecture (CORBA) from Object Management Group (OMG)

  • Open standard for distribution middleware that allows objects to interoperate across networks regardless of the language in which they were written or the platform on which they are deployed
  • It is based on objects and IDL (Integrated Definition Language) interface
  • Objects locate each other through Object Request Broker (ORB)
  • Defines Internet Inter-ORB protocol (IIOP)

iii). Component Object Model (COM) and Distributed Component Object Model (DCOM)

  • Distribution middleware that enables software components to communicate over a network via remote component instantiation and method invocations i.e. it builds Object RPC (ORPC) on top of DCE RPC (Distributed Computing Environment RPC )
  • Supports integration of binary components from different languages (e.g. VB, Java, C+ +)
  • COM and DCOM are implemented primarily on Windows platforms.
  • Additional network transports (messaging service) and
  • Additional user agents (e.g. transaction processing monitor framework) beyond the ones supported by the service.

iii). Communications Interfaces CI is the mechanism by which various middleware components, running on different systems in a network, can exchange data and control information. Implementer of services use application- level communication protocols to implement communications interface. Application developers rarely need to be concerned with the CIs because middleware services are of a high level and transparently distributed. The CI describes the application protocols the service can use for each type of network transport (TCP/IP, OSI, DECnet, PC LANs)

iv). User Interfaces UI is the mechanism by which users interact with the information system. The UI must handle a variety of device types and a wide range of user roles, languages, and cultures. The middleware presentation services handle UIs. Common UI devices include personal computers (running windows), Workstations that use Motif and the X Window System, video display terminals, and printers. Other devices include voice recognition, text-to-speech equipment, image scanners, and graphics tablets.

v). Data Interfaces DI is an information structure that enables another routine to exchange (read and/or write) data with a service without going through a calling or messaging mechanism. The DI includes storage formats and any data syntax that programmers or users can rely on. DI mechanisms include file passing, shared database access, or common memory (for example, using the X Window System paste buffer) vi). Management Interfaces MI permits system managers and system programmers to install, monitor, and control information system components. MI can include a management API, a management CI, a management SPI, a management UI, and/or a management DI.

Middleware Attributes In view of the many different middleware that are in existence, one should be able to evaluate them using some attributes in order to identify the best middleware for their deployment. The following list makes up some of the desired attributes that a middleware should have. It will be a tall order to expect any single middleware to possess all these attributes and one is advised to identify those attributes that are crucial and most important to them and use those specific attributes to identify a suitable middleware. The attributes are: i). Usability It is the extent to which a system or component helps the users get jobs done efficiently and effectively. Many aspects that make a system easy to use are captured in the other attributes. ii). Distributability Distributability enables clients and components of a service, tool, or application to execute across multiple hardware components of a network. The goals for middleware distributability include support for the following:

  • Transparent distribution of services for ease of use
  • Multiple distribution models, with particular emphasis on the client/server model
  • Distribution of data, processing, and presentation functions.
  • Immediate and queued operation (to permit the client and server to be distributed in time and space)
  • Distribution over all geographic ranges (single and multiprocessors, LANs, and WANs) iii). Integration Integration is the ability of applications to work together in a consistent manner to perform tasks for the user. Interoperability and uniformity are two key aspects of integration.
  • Interoperability is the extent to which a set of components invoke and exchange information effectively, such as getting data in and out of a component and converting data as needed.
  • Uniformity is the extent to which a set of components are constant with respect to a set of attributes. (Uniformity of interfaces reduces system complexity) iv). Extensibility It is the ease with which a system can be adapted to meet new requirements. There are three types of extensibility:
  1. Customization: allowing the end user to change the system presentation characteristics.
  2. Configuration: enable installers or system integrators to change the system and system components.
  3. Evolution: enables component architects and developers to change the internals of components. v). Internationalization It is the extent to which an information system is suitable for users and data from multiple cultures. vi). Manageability It is the extent to which system managers can economically configure, monitor, diagnose, maintain, and control the resources of a computing environment. vii). Performance It is a measurement of the resources required to perform an operation (elapsed time to perform an operation) Efficiency is the ratio of resources used to the number of operations performed. Utilization: the relative use of resources Throughput: number of completed operations per unit of time. viii). Portability It is the ease with which developer can move software from one platform to another. ix). Reliability Reliability is measured by the availability of the system (or the mean time between failures.) The extent to which a system produces the same output on repeated trials. x). Scalability Scalability is the extent to which developers can apply solutions to problems of different sizes. Complexity grows with the number of system nodes, users, and other network resources. xi). Security Security is the protection of information from unauthorized access, the protection of clients from accessing rogue services, and the protection of resources from unauthorized use. Security services include authentication, access control, and auditing.

Questions

  1. Identify the different middleware that exist in the market today.
  2. Describe how the middleware facilitates communication between clients and servers. 3) Identify the six interfaces that a middleware uses to offer its services.