MIDAS program species in Delphi (Midas 3)

xiaoxiao2021-03-06  108

Delphi Midas Applications COM Server Instantiation Model Category (1) INTERNAL INSTANCE Creates a COM program for In-Process, the DLL server. (2) Single Instance If each client runs an instance of the server program, use this Model. It is a front program for each connection, and there is a corresponding application server running on the server. So inquiry sent by each front desk will have its own

Independent Process application is handled, it doesn't matter if it is queued. But it will compare system resources, affect the overall running efficiency of the server. (3) Multiple Instance If the client shared server program, use this model. Just an application The server can handle the links of several front programs at the same time, interpreted by the technology level is that all front programs can share a single process application service.

The greatest advantage of this mode is that activation and operation is faster, and the comparison does not consume too many system resources, and it is more convenient to manage. But it hides a problem that does not have multitasking, if a front desk The user issued a query

Request, and this query requires how much MB, at this time, other query requirements issued by other online front desk users must wait for the previous query to run and get the corresponding operation. This may consume many time,

Moreover, once the query of a front program has an error, then other query requests in the back queue will be dead. Note: Which mode is used to create an application server? The answer is: according to system requirements. Simply put, you can create two sets of application servers, a group uses Multiple Instance mode, and the other is Single

Instance mode, and you must divide the type of the program into two, one is a write operation with a small query amount or less important, another query amount of data is large or important data. In this way, your front program can be placed

Two TDComponECTION come together with two different models of application servers to do different nature work.

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

New Post(0)