



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




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)
iii). Component Object Model (COM) and Distributed Component Object Model (DCOM)
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:
Questions