Type of the instantiation model of the MIDAS Program in Delphi (Midas 3)

Source: Internet
Author: User

The Application of "das" in DelphiProgramCOM server instantiation model type
(1) Internal instance
Create an in-process com program, that is, the DLL server.
(2) Single Instance
This model is used if each client program runs an instance of the server program. that is, each frontend program connected to IOT Platform runs a corresponding application server on the server. therefore, each query sent from the frontend has its own

It doesn't matter whether the queuing problem is handled by an independent process application, but it will occupy system resources and affect the overall running efficiency of the server.
(3) Multiple instance
This model is used if the client program shares the server program. an application server can process links of several front-end applications at the same time. The technical explanation is that all front-end applications can share a single process application service.

. The biggest advantage of this mode is that the activation and operation efficiency is fast, it does not consume too many system resources on the server, and it is easier to manage. however, it hides a problem that does not support multi-task processing. If a front-end user sends a query

Request, and the query results may be larger than MB. At this time, the query requirements sent by other online front-end users must wait until the previous query requirements have been completed and obtained accordingly, to continue running. this may take a lot of time,

In addition, if an error occurs in the query of a foreground program, other query requests queuing later will die.
Note: Which mode is used to create an application server? The answer is: depending on the system requirements. Simply put, you can create two groups of application servers, one in the multiple instance mode and the other in the single

Instance mode, but you must divide the program type into two types, one is to query a small amount of data or less important write operations, another write operation that queries large data volumes or important data. in this way, your foreground program can be placed

The two tdcomconection are connected to two application servers in different modes for different operations.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.