DCOM overview (3)

zhaozj2021-02-08  329

Load balance

The more successful distributed application system, the higher the load brought by all components in the application due to the growth of users. A frequent situation is that even the fastest hardware computing power cannot meet the needs of users.

One of this problem is unmanable to distribute the load into multiple servers. In the Scalability section, it briefly refers to how DCOM can promote several different technologies of load balancing: parallel configuration, separation of key components and continuous processes.

"Load Balancing" is a normally used, which describes a set of related technologies. DCOM does not transparently provide load balancing in a variety of sense, but it makes it easy to complete the load balance of various ways.

Static load balance

One way to solve the load balancing is to constantly assign certain users to some servers running the same application. This method is called static load balancing because this assignment does not change with the network condition and changes in other factors.

DCOM-based applications can be easily configured to operate them on some specific servers by changing the registration entry. The customer registration tool can use Win32 remote registration functions to change the settings of each customer. In Windows NT 5.0, DCOM can use the extended directory service to complete the storage of the distributed class, which makes it possible to change these configuration changes.

In Windows NT 4.0, application systems can use some simple technologies to achieve the same effect. A basic method is to save the name of the server into a well-known centralized environment such as a database and a small file. When the component wants to connect to the server, it can easily obtain the name of the server. Changes to databases or file contents also change all users and related user groups.

A flexible approach uses a refined complex indicator component. This component resides in a server that is known for everyone. The client component is first connected to this component requesting an index that pointing to the service it. Indicates that the component can confirm the issued user using the security mechanism of the DCOM and select the server according to the requestor's identity. Indicates that the component does not return directly to the server name, which actually creates a connection to the server and passes the connection directly to the customer. Then DCOM transparently connects the server and the client, and the job indicating that the component is completed. We can also make the above mechanisms completely masked the customers through things such as a customer's agent store in an indication component.

When the user needs an increase, the administrator can transparently select different servers through changing the components. At this point, the customer component does not make any changes, and the application can be made from a non-centralized manager to a centralized management mode. The location independence of the DCOM and its support for effective instructions make this design flexibility possible.

Dynamic load balancing

Static load balancing methods are a good way to solve growing user needs, but it requires administrators to intervene, and only work well when they are predictable.

Indicates the idea of ​​components to provide a clearest load balancing method. Indicates that components can be selected based on user IDs, but also selects servers using network topology structure between server load, customer, and available servers and statistics for a given user past demand. Whenever a client connects to a component, indicating that the component assigns it to the most suitable available server at that time. Of course, from the viewpoint of the customer, all this is transparent. This method is called a dynamic load balancing method.

For some applications, the dynamic load balancing method of connection may still be insufficient. Customers cannot be interrupted for a long period of time, or the load distribution between users is uneven. DCOM itself does not provide support for this dynamic reproduction and dynamic approach, because this requires a very familiarity that needs to interact between the client process and components, and the component is kept during the method activation. Special status information for some customers. If DCOM suddenly connects customers and another different component on another machine, then this information is lost.

However, DCOM enables the application system to easily introduce this logical structure into the protocol between customers and components. Customers and components can use a special interface to determine when a connection can be securely resected to receive another server without losing any important status information. From this point of view, whether the customer or component can initialize another component on another machine before the next method is activated. DCOM provides all the extensive protocol expansion mechanisms for completing these additional protocols for special applications. The DCOM structure also allows the code to be facing special components to the customer process. Whenever the customer process is to activate a method, the proxy components provided by the real component component intercept this call in the customer process, and can find it again to another server. The customer does not need to understand this process, and DCOM provides a flexible mechanism to transparently establish these "distributed components".

With the unique characteristics above, DCOM makes it possible to develop a general underlying structure for handling load balancing and dynamic methods. This underlying structure can define a set of standard interfaces that can be used to pass state information and disappear between client processes and components. Once the component is located at the part of the client disappears, it can dynamically connect the customer to another server.

Example: Microsoft's transaction server (previously called "Viper") uses this mechanism to extend the DCOM programming model. Through a simple standard state information management interface, the transaction server can obtain the necessary information to provide high-level load balancing. In this new programming model, the interactions between customers and components are bundled into the transaction, which can point out when a series of method invoking the status information of the components involved is clear.

DCOM provides a powerful underlying structure used to complete dynamic load balancing. Simple indication components can be used to transparently complete dynamic server allocation work when they are connected. The mechanism used to invoke a single method to retrofitting the diameter to different servers can also be easily completed, but it requires a more in-depth understanding of the interaction between the client process and components. Microsoft's complete DCOM-established transaction server ("Viper") provides a standard programming model to pass the relevant details of this additional special application to the underlying structure of the transaction server, which can be used to perform very advanced Static and dynamic reconfiguration and load balancing.

Fault

Fault tolerance is very important for applications that require high reliability for key tasks. For erroneous recovery, it is usually implemented by a certain amount of hardware, operating system, and software mechanism for the application system.

DCOM provides general support for fault tolerance at the protocol level. A advanced pinging mechanism describing the network and the client's hardware error can be found in the "Shared Connection Management" section of the application system. If the network can recover within the required time interval, the DCOM can automatically re-establish the connection.

DCOM makes it easy to achieve fault tolerance. One technology is the technique of the first part of the indication component. When the client process finds an error, it is reconnected to the indicator component that establishes the first connection. Indicates which servers in the component no longer valid, and provide a new instance of this component running on another machine. Of course, in this case, the application system still needs to process the error recovery problem in high-level (consistency, message loss problem, etc.).

Because DCOM can put a component to the server side and client, the user can fully transparently implement the connection and reconnection and consistency problems of the components.

Example: Microsoft's transaction server ("Viper") provides a general mechanism for processing consistency issues in the application level. Multiple method calls can be combined into an atomic transaction to ensure consistency and make applications easily avoid loss of information.

Figure 15 for fault-tolerant distributed components

Another technology is often referred to as "hot backup." Two copies of the same server components are running on different machines in parallel, which handles the same information. The customer process can be explicitly connected to these two machines. DCOM's "Distributed Components" By putting the processing-fault service code to the client, the above process is completely transparent to the user. Another method is to use a collaborative component running on another machine, which is sent to the two server components on behalf of customers. It is failed to transfer a server component to another machine when an error occurs. The initial version of the Windows NT group uses this method, of course it can be done at the application level. DCOM's "distributed component" makes it easier to complete this machine, and it covers the user's detail.

DCOM makes it easier to complete advanced fault tolerance techniques. Distributed component technology that uses DCOMs run in the customer process can cause the details of the problem to be transparent to the user. Developers do not need to change customer components, and even client reconfiguration can enhance the fault tolerance of distributed application systems.

Easily configure

If it is not easy to install and manage, even the best application system is useless. For distributed applications, it is critical to centrally manage and make a simple customer installation process. At the same time, some ways to make system administrators can find it as early as possible before any damage causes any damage to distributed applications.

What technology does DCOM can make an app more easy to manage?

installation

A common way to simplify the client installation can be summarized as a word "thin customers", which means that the less functional, and the less installation, and possible maintenance issues.

However, the more "thin", the more "thin", the lower the user-friendly, the higher the demand for the network and the server. Thin customers don't make full use of the powerful computing power you can get in today's desktop, and because of the characteristics of the desktop production application, these desktop production application systems themselves are uniform, most users are The demand for powerful computing power of this system will not be weakened. Therefore, "strong" is a very important decision to achieve the design of distributed applications in the correct level. DCOM promotes the balance between configuration and flexibility by allowing developers or even administrators to select the balance between configuration. The same transaction component (e.g., data login check components) can be performed on the server and client by simply modifying the configuration. Applications can dynamically select the user interface assembly used (the HTML generator or client's ActiveX control on the server).

One of the biggest issues that keep the "obese" customer is to update these customers to the latest version. Now, by support for code download, Microsoft's Internet Explorer 3.0 provides a very elegant approach to solve this problem. As long as the user browsing a page page, Microsoft's Internet Explorer will check the ActiveX control used in the page and automatically update it if necessary. Applications can also use this Microsoft's direct support when using the browser when not explicitly uses the browser (Active CocreateClassFromurl function).

In Windows NT 5.0, the concept of code download will be expanded to the local COM class library. This class library will use the extended directory to store the configuration information of the component and the index of the actual code, which changed the currently used local registration concept. This class library will provide code warehouses to intranet (Extended Directory) and Internet (Code Download, Internet Path Search) and make them completely transparent to existing applications.

Installing and updating server components is usually not a serious problem. However, in a highly distributed application, all customers are updated to be unlikely. The robust version of the DCOM of the "functional development: version" section is allowed to join new features on the basis of maintaining backward compatibility. Server components can handle both old customer processes and process new customer processes. Once all customers are updated, the components can stop support for the functions that new customers. Use code download technology and its expansion technology, class library, administrators to install and update customers safely and safely, and can turn "obese" customers to smart customers without cutting too many features. DCOM's support for healthy version makes it possible to update the server program without updating all customers.

management

Part of the installation and update client component is the configuration of these components and the holdings of these configurations. The most important configuration information involved in DCOM is a message of the server that runs the required components required.

Using code download and class library technology, we can manage configuration information in a centralized location. A simple change to configuration information and installation packs can transparently update all customers.

Another technique for managing client configuration is the indication component technology described in the Load Balance section. All customers are connected to the indicator component, indicating that all configuration information is included in the component, which returns the appropriate components to each customer. Simply change the indicator component to change all customers.

Some components, especially server components, require additional special components configuration. These components can use DCOM to display the interface that allows changing configurations and recovery existing configurations. Developers can use DCM's security underlying frames such that these interfaces can only be used by administrators with appropriate access. The broad support for the accelerated development process allows us to easily write the front-end interface using the management interface. The same interface can be written with a simple script language such as Visual Basic Script or Java Script to complete an automatic configuration transformation.

Code download and class library techniques can be used to centrally configure components, and the component method is a method that makes configuration information more centralized. Some components can make the additional DCOM interface can only be seen and used by the administrator, which allows the same DCOM underlayer structure to be used to configure and manage the components.

Protocol independence

Many distributed applications need to be integrated into a customer or company's existing network structure. At this time, there may be a special network protocol, which requires all potential customers, which is impossible in most cases. Therefore, the developer applied to the application needs to be carefully used to maintain independence as much as possible of the next network underlying structure.

DCOM makes this process transparent: because DCOM can support any of the transport protocols including TCP / IP, UDP, IPX / SPX, and NetBIOs. DCOM provides a security framework based on all of these unconnected and connected protocols.

Developers can easily use DCOM to provide features and confident that their application is completely unrelated to the protocol.

Platform independence

Distributed application systems often integrate different platforms to the client and server side. Developers often face important differences between platforms in many ways: different user interface principles, different system services are even different from the entire network protocol. All this makes it very difficult to use and integrated multi-platform.

One solution to this problem is that all platforms are the most special one and use an abstraction layer to save the simple code based on all platforms. This method is used by traditional cross-platform development framework systems, such as Java virtual machine environments. Its implementation depends on a code set or even binary code for all supportable platforms.

However, this simplification is to pay a price. The introduction of abstract layers has brought additional expenses and cannot use some powerful services and optimizations related to the platform. For user interface components, this method means that it is very small to similar extent to other applications, causing more difficult to use more money to train. For server components, this method sacrifies the ability to coordinate the performance performance of important components in any platform.

DCOM technology is open to all cross-platform development work. It does not exclude service and optimization based on special platforms, nor does it specifically apply to certain systems.

The DCOM structure allows the platform-independent framework and virtual machine environment (Java), and high execution performance, platform-optimized customer components to a distributed application. Platform binary standard

From a certain aspect, DCOM defines a platform binary standard, so customers and developers can use components developed by different sellers to mix and match each other, and even use them in different DCOM runs. Although the details of the DCOM runtime may vary with completion time, the interaction between runtime and components and components is standardized. Unlike other abstract object touch, use DCOM to distribute a binary component to a platform running all other components and run libraries.

Cross-platform interoperability standard

From another aspect, DCOM defines cross-platform services (or abstraction) to object-oriented distributed computing, including connection components, creating components, components, and methods of activating components, and a security frame.

In addition to these, DCOM only uses services on each platform to complete multi-threaded and concurrent control, user interface, file system interactions, non-DCOM network interactions, and actual security modules.

Use most DCE RPC

The DCOM line protocol is based on DCE RPC, so it is easy to implement a DCOM system on a platform that can use DCE RPC. DCE RPC defines that the data structure and parameter in the memory are confirmed to be a network package. Its network data representation (NDR) is unrelated to the platform and provides a wide range of available data types.

COM and DCOM also borrowed the concept of the GUIDS of DCE RPC. DCE RPC provides conflict freedom and non-controlled objects and interface naming mechanisms, which constitutes a COM robust version of the foundation.

The pluggable security module of DCOM can achieve seamless binding with DCE-based security environments. Now Windows NT 4.0 can be used as a platform that supports ORPC-Enhanced DCE RPC (DCOM) and only a gateway between platforms supported by standard DCE RPC. This is very useful for many existing DCE RPC applications on a comprehensive platform, and these applications can be converted into applications that can utilize many excellent features of DCOM.

Seamless integration with other Internet protocols

The INTERNET's kernel is a global, non-centralized management and shared TCP / IP-based network. It makes global connectivity. It causes the Internet to attract key applications for many users being a simple, standardized page description language (HTML) and a simple text-making download protocol (HTTP).

Distributed applications can benefit from the Internet in a variety of different ways.

DCOM on virtual private network

Even at the lowest level, the Global TCP / IP network provides new opportunities for companies to connect to remote sites and personal users.

A virtual private network such as Windows NT 4.0 Point Channel Protocol (PPTP) is a way to use the network to secure private information on the Internet. DCOM-based applications can transparently transparently transparently ported to virtual private networks.

Figure 16 DCOM on a private virtual network

DCOM on the Internet

Because DCOM is born is a secure protocol, it can not be packaged on a virtual private network: DCOM applications can easily use global TCP / IP networks. Most companies do not provide direct access to the company's desktop computer via Internet. Almost all exquisite and complex servers are under the protection of firewalls, the firewall is generally composed of a protocol (based port number) and the application level (proxy server) filter. DCOM can work well under these two types of firewalls:

DCOM uses a port to initialize the connection and assign a range of ports to actual components that are running on the machine. Apply level agents can be easily created. They can be either a generally applying. The server administrator can also create a DCOM channel via HTTP, which can effectively avoid most of the firewalls now. With these functions, DCOM-based applications can use Internet to establish private connections in the company, and customers outside the company and the private communication of partners, and a large number of public connections to any customers in the world. In every case, DCOM can provide a flexible security mechanism when necessary.

Integrated HTML and distributed calculations

In addition to using Internet only as an inexpensive TCP / IP network, distributed applications can also utilize the advantages of existing standard protocols and formats. For the need for interacting, text or simple graphics information, the HTML page can provide a famous and effective way for users to access the required information.

For more complex, structured and interacting information, components can be extended to extend the HTML page to real distributed tasks in a user-friendly, secure, and effective way. Some simple transaction rules can be applied to the client to provide quick feedback. More complex transaction rules can transparently activate components on the DCOM. Because DCOM language independence, these components can be done in any programming language, including C , Java, Visual Basic, or COBOL. Existing components (ActiveX controls) can be incorporated into the client or on server-side customer components written by Visual Basic Script or Java Script.

转载请注明原文地址:https://www.9cbs.com/read-209.html

New Post(0)