CN112732283A - Method for realizing client-server mode, client and server - Google Patents

Method for realizing client-server mode, client and server Download PDF

Info

Publication number
CN112732283A
CN112732283A CN202110080730.7A CN202110080730A CN112732283A CN 112732283 A CN112732283 A CN 112732283A CN 202110080730 A CN202110080730 A CN 202110080730A CN 112732283 A CN112732283 A CN 112732283A
Authority
CN
China
Prior art keywords
client
server
instruction
sent
receiving
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110080730.7A
Other languages
Chinese (zh)
Inventor
李杏萍
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Weiyuan Pilot Technology Co ltd
Original Assignee
Shenzhen Weiyuan Pilot Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Weiyuan Pilot Technology Co ltd filed Critical Shenzhen Weiyuan Pilot Technology Co ltd
Priority to CN202110080730.7A priority Critical patent/CN112732283A/en
Publication of CN112732283A publication Critical patent/CN112732283A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/547Remote procedure calls [RPC]; Web services
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/54Indexing scheme relating to G06F9/54
    • G06F2209/541Client-server
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/54Indexing scheme relating to G06F9/54
    • G06F2209/549Remote execution

Abstract

The invention discloses a method for realizing a client-server mode, a client and a server, wherein the client receives a functional module sent by the server based on a preset configuration requirement, installs the received functional module, can configure the functional module of the client according to the requirement, and realizes building block type assembly of the functional module of the client, so that the functional module of the client is built more flexibly; compared with a browser-server mode, the client side can operate the functional module according to the operation instruction sent by the server and generate the execution result, and actual business operation can be performed on the client side; compared with a common client-server mode, the analysis and processing of the business logic can be carried out in the server, so that the client only executes the operation without executing the analysis and processing of the business logic, the lightweight of the client is realized, and the safety of the client and the server is ensured.

Description

Method for realizing client-server mode, client and server
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method for implementing a client-server mode, a client, and a server.
Background
In a Client-Server (Client-Server) mode, when a Client is built, the logic of the Client is complete and complex, and a Client program comprises service logic interpretation and processing, data analysis and processing, data acquisition and processing, a toolkit and a communication module, so that the independent service processing capability of the Client is formed.
In the B/S (Browser-Server) mode, the service logic occurs at the Server, the Browser is only used for presentation, and the execution of the service is less involved, especially when the local resources of the client are needed to be utilized, and the Browser has many rights to control and use the resource limitation when the client operates locally, so many functions cannot be realized by the B/S mode.
In many cases, local resources of the client, such as computing power, storage space, operating memory and the like, are very limited, but at the same time, the client software is expected to realize a plurality of different functions; if all the work of the functions is concentrated on the client, the client software is very huge and possibly exceeds the capacity range of local resources of the client; but the B/S mode is also not suitable for many environments due to the limitations of browsers.
Many high-end users, such as financial institutions, telecom operators, government core departments, etc., have special requirements on some client software running on critical core computer devices, such as requirements that the operation of the client software is completely transparent, safe and reliable, meanwhile, the software occupies a small storage space, the requirements on memory and computational resources used during running are small, and the running of other core systems is not influenced. The more classical application scenarios are: software for performance monitoring, information security inspection, network traffic analysis and the like during operation is generally required on a main server of a financial core system; users are in doubt about the software of the third parties, and worry about that the software occupies resources to influence the operation of a financial core system or other software, and also worry about that the software has potential safety hazard and may execute some unauthorized operations.
In some mobile client application scenarios with high security requirements, there are the following requirements: if the server judges whether a user enters a research and development center area according to GPS positioning information sent by the mobile client, if so, the server automatically unloads a camera function module, a mobile network module and a USB connection driving module of mobile client software, and the client equipment cannot be connected with the network of the telecommunication operator, cannot take pictures and cannot be connected with the computer equipment; when a user goes out to do a remote video operation, the client software automatically installs the function modules according to an installation instruction sent by the server and the installed camera shooting function module and the mobile network module, can be connected with a telecom operator mobile network, and realizes a remote video operation function.
Disclosure of Invention
The technical problem to be solved by the invention is as follows: the method for realizing the client-server mode, the client and the server are provided, the client content can be customized according to the requirement, and resources required by deployment are saved.
In order to solve the technical problems, the invention adopts the technical scheme that:
a method for realizing a client-server mode comprises the following steps:
the method comprises the steps that a receiving server receives a function module sent by a server based on a preset configuration requirement, and the received function module is installed;
receiving an operation instruction of the functional module sent by a server, operating the functional module according to the operation instruction and generating an execution result;
and sending the execution result to a server for logic judgment and processing.
In order to solve the technical problem, the invention adopts another technical scheme as follows:
a client comprises a first memory, a first processor and a first computer program stored on the first memory and executable on the first processor, wherein the first processor implements the steps of the implementation method of the client-server mode when executing the first computer program.
In order to solve the technical problem, the invention adopts another technical scheme as follows:
a method for realizing a client-server mode comprises the following steps:
sending a function module to a client based on a preset configuration requirement;
sending an operation instruction of the functional module to the client, and acquiring an execution result generated by the client operating the functional module according to the operation instruction;
and carrying out logic judgment and processing according to the execution result.
In order to solve the technical problem, the invention adopts another technical scheme as follows:
a server comprises a second memory, a second processor and a second computer program stored on the second memory and executable on the second processor, wherein the second processor implements the steps of the implementation method of the client-server mode when executing the second computer program.
The invention has the beneficial effects that: the client receives the functional module sent by the server based on the preset configuration requirement, the received functional module is installed, the functional module of the client can be configured according to the requirement, and building-type assembly of the functional module of the client is realized, so that the functional module of the client is built more flexibly; the function module received by the client is a tool kit with minimized functions, which can not be subdivided, namely an atomization tool kit; compared with a browser-server mode, the client side can operate the functional module according to the operation instruction sent by the server and generate the execution result, and can realize actual business operation on the client side, namely, the operable business types are all-around, and the browser is not limited by permission and resources when locally operating some businesses; compared with a common client-server mode, the method has the advantages that the execution result is sent to the server to carry out logic judgment and processing, and the analysis and processing of the business logic can be carried out in the server, so that the client only executes the operation and does not need to execute the analysis and processing of the business logic, the workload of the client is reduced, a large amount of work is avoided being put on the server, the lightweight and transparent visualization of the client and the operation are realized, the safety of the client and the server is ensured, and the deployment resources and the use resources of the client are saved in the process of simplifying the client.
Drawings
Fig. 1 is a flowchart of a method for implementing a client-server mode according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a client-server model of a client-server system according to an embodiment of the present invention;
FIG. 3 is a flowchart of a method for implementing a client-server model according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of a server in a client-server mode according to an embodiment of the present invention;
fig. 5 is a mapping diagram of a client and a virtual client in a method for implementing a client-server mode according to an embodiment of the present invention;
fig. 6 is a configuration diagram of a server and a client in a method for implementing a client-server mode according to an embodiment of the present invention;
fig. 7 is a schematic deployment diagram of a server and a client in an implementation method of a client-server mode according to an embodiment of the present invention;
fig. 8 is a schematic deployment diagram of an implementation method in a client-server mode applied to edge computing or grid computing according to an embodiment of the present invention;
fig. 9 is a schematic deployment diagram of an application of an implementation method in a client-server mode for information security check according to an embodiment of the present invention;
fig. 10 is a schematic deployment diagram of an application of a method for implementing a client-server mode in performance monitoring according to an embodiment of the present invention;
fig. 11 is a schematic deployment diagram of application in patch management of an implementation method in a client-server mode according to an embodiment of the present invention;
fig. 12 is a schematic deployment diagram of an application of the implementation method in the client-server mode in the internet of things according to the embodiment of the present invention.
Detailed Description
In order to explain technical contents, achieved objects, and effects of the present invention in detail, the following description is made with reference to the accompanying drawings in combination with the embodiments.
Referring to fig. 1, a method for implementing a client-server mode includes the steps of:
the method comprises the steps that a receiving server receives a function module sent by a server based on a preset configuration requirement, and the received function module is installed;
receiving an operation instruction of the functional module sent by a server, operating the functional module according to the operation instruction and generating an execution result;
and sending the execution result to a server for logic judgment and processing.
From the above description, the beneficial effects of the present invention are: the client receives the functional module sent by the server based on the preset configuration requirement, the received functional module is installed, the functional module of the client can be configured according to the requirement, and building-type assembly of the functional module of the client is realized, so that the functional module of the client is built more flexibly; the function module received by the client is a tool kit with minimized functions, which can not be subdivided, namely an atomization tool kit; compared with a browser-server mode, the client side can operate the functional module according to the operation instruction sent by the server and generate the execution result, and can realize actual business operation on the client side, namely, the operable business types are all-around, and the browser is not limited by permission and resources when locally operating some businesses; compared with a common client-server mode, the method has the advantages that the execution result is sent to the server to carry out logic judgment and processing, and the analysis and processing of the business logic can be carried out in the server, so that the client only executes the operation and does not need to execute the analysis and processing of the business logic, the workload of the client is reduced, a large amount of work is avoided being put on the server, the lightweight and transparent visualization of the client and the operation are realized, the safety of the client and the server is ensured, and the deployment resources and the use resources of the client are saved in the process of simplifying the client.
Further, the function module that the receiving server sends based on the preset configuration requirement includes:
and receiving a function module required by the preset configuration requirement selected or combined by the server in a preset tool method library of the server based on the preset configuration requirement.
According to the description, the receiving server selects or combines the required functional modules in the preset method library according to the preset configuration requirements, the required functional modules can be flexibly configured, and the building block construction of the client functional modules is realized.
Further, the method also comprises the following steps:
and receiving a functional module removing instruction sent by the server, and deleting the functional module to be removed according to the removing instruction.
According to the description, the function modules can be built as required, the unnecessary function modules can be deleted, only the functions which need to be used currently are reserved in the function modules of the client, and deployment resources are saved.
Further, the method also comprises the following steps:
sending a function module adding request to the server;
and receiving the function module sent by the server based on the function module adding request, and installing the function module.
According to the description, the function module adding request is sent to the server in the using process, the required function module can be dynamically requested to be added, and the flexibility of building the function module of the client side is further guaranteed.
Further, comprising the steps of:
receiving an algorithm packet sent by a server based on the calculation configuration requirement of edge calculation or grid calculation, judging whether the algorithm packet exists, and if not, installing the received algorithm packet;
receiving a calculation task and a performance monitoring task of the algorithm packet sent by the server, performing calculation processing according to the calculation task to generate a calculation result, and acquiring performance state data according to the performance monitoring task;
sending the calculation result and the performance state data to the server for logic judgment and processing;
or receiving an inspection tool package sent by a server based on configuration requirements of information security inspection, judging whether the inspection tool package exists or not, and if not, installing the received inspection tool package;
receiving an inspection instruction of the inspection toolkit sent by the server, performing inspection processing according to the inspection instruction and generating an inspection result;
sending the checking result to the server for logic judgment and processing;
or receiving a monitoring toolkit sent by a server based on the configuration requirement of performance monitoring, judging whether the monitoring toolkit exists or not, and if not, installing the received monitoring toolkit;
receiving a monitoring instruction and a collecting instruction of the monitoring tool pack sent by the server, and carrying out performance monitoring according to the monitoring instruction and the collecting instruction to obtain performance data;
sending the performance data to the server for logic judgment and processing;
or receiving a patch installation toolkit sent by a server based on the configuration requirement of patch management, judging whether the patch installation toolkit exists, and if not, installing the received patch installation toolkit;
receiving a patch installation task of the patch installation tool kit sent by the server, and performing patch installation according to the patch installation task to obtain result data of the patch installation task;
sending the result data of the patch installation task to the server for logic judgment and processing;
or receiving a tool pack sent by a server based on the service requirement of the intelligent equipment of the Internet of things, judging whether the tool pack exists or not, and if not, installing the received tool pack;
receiving an instruction task of the tool kit sent by the server, and performing data perception, data processing or calculation and data acquisition of intelligent equipment according to the instruction task to obtain result data;
and sending the result data to the server for logic judgment and processing.
According to the description, the server adaptively sends the tool kit and the instruction task required in the scene according to different application scenes, the client can realize the acquired instruction task in the client, and the acquired execution result data is uploaded to the server for processing and analysis, so that the functional module and the execution content of the client can be adaptively adjusted according to the application environment, and the overall applicability is improved.
Referring to fig. 2, another embodiment of the present invention provides a client, including a first memory, a first processor, and a first computer program stored in the first memory and executable on the first processor, where the first processor implements the steps of the method for implementing the client-server mode when executing the first computer program.
Referring to fig. 3, another embodiment of the present invention provides a method for implementing a client-server mode, including the steps of:
sending a function module to a client based on a preset configuration requirement;
sending an operation instruction of the functional module to the client, and acquiring an execution result generated by the client operating the functional module according to the operation instruction;
and carrying out logic judgment and processing according to the execution result.
According to the description, the server can configure the functional module of the client according to the requirement based on the functional module sent by the preset configuration requirement, so that the building of the functional module of the client is more flexible; the functional module issued by the server is a tool pack with a minimized function, which can not be subdivided, namely an atomization tool pack; compared with a browser-server mode, the client side can operate the functional module according to the operation instruction sent by the server and generate the execution result, and actual business operation can be performed on the client side; compared with a common client-server mode, the method has the advantages that the execution result is sent to the server for logic judgment and processing, and the analysis and processing of the business logic can be carried out in the server, so that the client only executes the operation and does not need to execute the analysis and processing of the business logic, the workload of the client is reduced, a large amount of work is avoided being put on the server, the lightweight and transparent visualization of the client is realized, and the deployment resources and the client use resources are saved in the process of simplifying the client.
Further, the sending the function module to the client based on the preset configuration requirement includes:
and sending the function modules required by the preset configuration requirements selected or combined in a preset tool method library to the client based on the preset configuration requirements.
According to the description, the server selects or combines the required functional modules in the preset method library according to the preset configuration requirements, and can flexibly configure the required functional modules, so that the building block construction of the client functional modules is realized.
Further, the method also comprises the following steps:
and sending a functional module removing instruction to the client, so that the client deletes the functional module to be removed according to the removing instruction.
According to the description, the server side can send the instruction for building the function module according to the requirement and can also send the instruction for deleting the unnecessary function module, so that only the function which is required to be used currently is reserved in the function module of the client side, and the deployment resource is saved.
Further, the method also comprises the following steps:
receiving a function module adding request sent by a client;
and sending the functional module to the client based on the functional module adding request.
According to the description, the function module adding request sent by the client is received in the using process, the required function module can be dynamically added, and the flexibility of building the function module of the client is further guaranteed.
Further, in the process of communicating with the client, communicating with the client through a virtual client;
the virtual clients are virtual mappings of the clients and correspond to the clients one to one.
It can be known from the above description that each client corresponds to a virtual client in the server, the virtual client is a virtual mapping of the client, and the distributed client resources are mapped into a component of the resources of the server through the mapping of the virtual client, so that the server can directly interact with the actual client through the virtual client, and the server operates the distributed client resources as well as the local resources, thereby realizing remote invocation or remote execution of the client, and more intuitively realizing invocation of the actual client.
Referring to fig. 4, another embodiment of the present invention provides a server, which includes a second memory, a second processor, and a second computer program stored in the second memory and executable on the second processor, where the second processor implements the steps of the method for implementing the client-server mode when executing the second computer program.
The implementation method of the client-server mode, the client and the server of the present invention can be applied to the deployment of various clients and servers, and are particularly applicable to devices and scenarios of multitasking operations, and the following description is made through specific embodiments:
example one
Referring to fig. 1 and 3, a method for implementing a client-server mode includes the following steps:
s1, the client receives the function module sent by the server based on the preset configuration requirement, and installs the received function module;
the receiving server selects or combines the function modules required by the preset configuration requirements in a preset tool method library of the server based on the preset configuration requirements;
specifically, in this embodiment, the server can select or combine the required function modules in the tool method library of the server based on the preset configuration requirement to obtain the required function modules and the installation instructions thereof; after receiving the functional module and the installation instruction thereof, the client side installs the functional module in a tool method of the client side in a centralized way and sends information of successful configuration to the server side;
s2, the client receives the operation instruction of the function module sent by the server, operates the function module according to the operation instruction and generates an execution result;
specifically, in this embodiment, after the functional module of the client is successfully configured, the server sends an operation instruction corresponding to the functional module to the client to perform a corresponding functional operation, and after the client receives the instruction, the client arranges the functional module in the tool method set to execute the related instruction;
s3, the client sends the execution result to the server for logic judgment and processing;
specifically, in this embodiment, the client returns the execution result to the logic judgment module or the intelligent processing module of the server to perform corresponding processing;
wherein, still include the step:
receiving a functional module removing instruction sent by a server, and deleting a functional module to be removed according to the removing instruction;
specifically, in this embodiment, the server sends a function module removal instruction, and deletes the module to be removed in the tool method set of the client according to the removal instruction, thereby removing the unnecessary function module from the client;
wherein, still include the step:
sending a function module adding request to the server;
receiving a function module sent by the server based on the function module adding request, and installing the function module;
specifically, in this embodiment, the function module required by the client can send a function module addition request to the server at any time, and download the function module from the tool method library of the server and install the function module in the client;
the method comprises the steps that in the process of communicating with a client, the virtual client communicates with the client;
the virtual clients are virtual mappings of the clients and correspond to the clients one to one.
Specifically, in this embodiment, please refer to fig. 5, a virtual client center is disposed in a server, each client corresponds to a virtual client in the server, the virtual client has a complete service processing logic, and the virtual client is a virtual mapping of the client, and data is transmitted between the virtual client and the client through a communication processing module, so that the server can interact with the client through a communication protocol, and realize remote invocation or remote execution of the client; by adopting the method, for the server, a plurality of clients can be conveniently mapped into local resources; the server operates the resources of the client as well as local resources; in this embodiment, the storage spaces of multiple clients can be dynamically linked together to form a distributed storage space, and simultaneously mapped to form a component of the storage space on the server; the server can directly use the distributed storage spaces, and the operation of the mapped distributed storage spaces is identical to that of the local storage spaces; by the method, the complexity and diversity of distributed client management are shielded, and better manageability and user experience can be provided for users;
referring to fig. 6, the client includes a communication module, a tool kit and a module for using the tool kit, the server includes a service logic interpretation and processing module, a data analysis and processing module and a data acquisition and processing module, the server and the client communicate with each other, the client can include other program servers, computers, tablets, mobile phones and intelligent internet of things devices for execution, and the calculation result is finally summarized to the server, so that the client can only execute service operation, and the data processing and analysis of the operation result are performed in the server; therefore, the client does not contain a business logic arrangement function and an realized function module, the content of the client can be adjusted as required, and a tool kit of the client can be adjusted at any time, and the extremely-simplified client performs corresponding operation completely according to an instruction which is issued by the server and is allowed;
specifically, referring to fig. 7, the logic judgment and intelligent processing module of the server dynamically allocates the function modules and tasks to be executed by each client according to preset requirements, the server instruction task module generates a series of operation instructions to be executed by the clients according to the tasks and sends the operation instructions to the server communication processing module, the tool method library generates a tool package of the required function modules and sends the tool package to the server communication processing module, and the server communication processing module sends the received operation instructions and tool package to the client communication processing module;
the client communication processing module sends the received toolkit to the tool method set through the client instruction task module to install the function module, after the installation is successful, the received operation instruction is sent to the tool method set through the client instruction task module to execute sensing, collecting, processing or calculating operation and obtain result data, the result data is uploaded to the server communication processing module through the client communication processing module, and then the server communication processing module sends the data to the logic judgment and intelligent processing module to perform logic judgment and processing;
the embodiment realizes a very simplified client software development mode, the storage space required by the software at the client is small, and the software does not run the function irrelevant to the target to be realized when the client runs, so that the occupied computing resource and memory resource are small;
therefore, the functions of business logic processing and the like of the client are moved back to the server for processing; the operation realized by the client is completely executed by an instruction which is issued from the server and passes the permission verification according to the requirement, and all the operations are completely transparent, visible and reliable for the user; the functional module realized by the client can be customized, adjusted and expanded according to the requirement; the client software is very simplified, the requirements for storage space and running memory are very small, the running is very stable, and the running of other software or systems cannot be influenced.
Example two
The difference between the present embodiment and the first embodiment is that it is specifically limited to deploy a corresponding client in an application scenario of edge computing or grid computing:
specifically, referring to fig. 8, the server system includes a calculation task management module, an instruction task module, a server communication processing module, and an algorithm library module; the client software comprises a client communication processing module, an instruction task module and a tool method set;
the tool method set comprises an algorithm package set, a calculation processing module and a performance monitoring module;
after a large amount of calculation demands are transmitted to the server system, a calculation task management module of the server system dynamically calculates a calculation task required to be executed and a required algorithm package distributed to each client according to the calculation force requirements of the calculation demands, the calculation force conditions of each client and the real-time performance state conditions of the clients, and then sends the calculation task to an instruction task module; the instruction task module forms a series of instruction tasks to be executed by the client software according to the calculation tasks and then issues the instruction tasks to the server communication processing module; the server communication processing module sends a series of instruction tasks required by the client to execute the calculation and an algorithm packet required by the instruction tasks acquired from the algorithm library module to the client software together;
the client communication processing module issues the instruction task and the algorithm packet which are received and calculated to the method tool set through the instruction task module, and if the method tool set does not have the corresponding algorithm packet, the algorithm packet module issued by the server is installed; performing calculation processing according to the instruction of the calculation task, and collecting performance state data according to the instruction of the performance monitoring task; the method toolset uploads a calculation result and performance state data of a client to a server system through a client communication processing module;
after receiving the calculation result and the performance state data, the server system uploads the calculation result and the performance state data to a calculation task management module to perform corresponding processing operations such as display, summarization and storage;
therefore, when the server has a large amount of calculation work, the calculation work can be issued to a plurality of clients by the server to be executed, and calculation results are finally summarized to the server.
EXAMPLE III
The difference between this embodiment and the first and second embodiments is that it is specifically limited to deploy a corresponding client in an application scenario of information security check:
specifically, referring to fig. 9, after the information security check requirement of the client is transmitted to the server system, the task logic module of the server system decomposes the security check task, calculates the check task and the required toolkit to be executed by each client, and then issues the check task to the instruction task module, and the instruction task module forms a series of instruction tasks to be executed by the client software according to the check task and then issues the instruction tasks to the server communication processing module; the server communication processing module issues a series of instruction tasks required to be executed and checked by the client and a tool pack required by the instruction tasks acquired from the tool pack module to the client software together;
the client communication processing module transmits the instruction task and the tool packet which are received and calculated to a method tool set through the instruction task module; if the method tool set does not have a corresponding tool pack, installing a tool pack module issued by the server; then, checking according to the instruction of the checking task; the method tool set uploads the inspection result to the server system through the client communication processing module;
after receiving the checking result, the server system uploads the checking result to the task logic module to perform corresponding processing operations such as analysis, summarization, storage and display;
therefore, when the server checks the information security state of each client, the checking work can be decomposed into a standardized, safe and authenticated instruction set by the server through calculation and is issued to the client, the client executes the instructions one by one through a toolkit, and the checking result is finally gathered to the server for uniform processing;
meanwhile, the functional modules in the tool kit are subjected to security certification, and the executable operation is specific and transparent; the operation instruction sent by the server is also an instruction which is subjected to security authentication and has a specific function, and the executed operation is transparent and visible to the user, so that the tool kit and the instruction are transparent and public and are matched with the function to be realized by the server;
specifically, when information security check is required to be performed on the information of the software of the client system, the server issues a tool kit and a check instruction for checking the information security of the software of the client system, wherein the tool kit comprises and only has a functional module related to the check requirement; deleting the functional modules which are not contained in the tool kit in the tool method set of the client, and then downloading the functional modules which are not contained in the tool method set, wherein the tool method set of the client only contains the functional modules required by the requirement at the moment; after the tool method set of the client side is prepared, the instructions are executed in the tool method set one by one, and the whole process is transparently disclosed.
Example four
The difference between this embodiment and the first to third embodiments is that it is specifically limited to deploy a corresponding client in an application scenario of performance monitoring:
specifically, referring to fig. 10, after the performance monitoring requirement of the client is transmitted to the server system, the performance task management module of the server system decomposes the performance inspection monitoring task, calculates the monitoring task and the required toolkit to be executed by each client, and then issues the inspection task to the instruction task module, and the instruction task module forms a series of instruction tasks to be executed by the client software according to the monitoring task and then issues the instruction tasks to the server communication processing module; the server communication processing module issues a series of instruction tasks required to be executed and monitored by the client and a tool pack required by the instruction tasks acquired from the tool pack module to the client software together;
the client communication processing module transmits the instruction task and the tool packet which are received and calculated to a method tool set through the instruction task module; if the method tool set does not have a corresponding tool pack, installing a tool pack module issued by the server; then, receiving performance data and acquiring the performance data according to the instruction of the monitoring task; the method tool set uploads the performance data to a server system through a client communication processing module;
after receiving the performance data, the server system uploads the performance data to a performance task management module to perform corresponding processing operations such as display, summarization and storage;
the embodiment is suitable for various devices requiring performance monitoring, wherein a mature single-machine version performance monitoring program exists on Windows devices or Linux devices, and specifically, by using the mode of the embodiment, the single-machine performance monitoring program can be incorporated into a client as a tool package:
the server packages the performance monitoring program in the system into a tool kit and transmits the tool kit and the corresponding installation instruction to the client; after the functional modules of the toolkit are installed on each client, performance monitoring management can be carried out on different environments of each client according to performance monitoring instructions, and centralized monitoring management is carried out on each client through the server, so that the performance monitoring modules of the single-computer version can be converted into a program for centralized monitoring management as required, and the single-computer monitoring program can be flexibly built into a centralized management program.
EXAMPLE five
The difference between this embodiment and the first to fourth embodiments is that it is specifically limited to deploy a corresponding client in an application scenario of patch management:
specifically, referring to fig. 11, when a software manufacturer releases a patch of software, the server system obtains related patch information and the patch, sends the patch information to the patch management module, and sends the patch to the patch library module;
the patch management module determines whether the patch of the software manufacturer needs to be installed at the client according to the patch installation data acquired from the client software program, if so, the installation task is issued to the instruction task module, and the instruction task module is decomposed into detailed installation instructions which need to be executed by the client.
The server communication processing module receives the detailed installation instruction issued by the instruction task module, acquires a corresponding patch program from the patch library module and issues the patch program to a specified client;
after receiving the patch installation task and the patch program, the client communication processing module corresponding to the client software issues the patch installation task and the patch program to a tool method set through an instruction task module, and the tool method set receives the patch installation task and the patch program and executes the patch installation task and the patch program in a row according to detailed patch installation instructions to complete the patch installation task;
the result data of the patch installation task is transmitted to the server communication processing module through the client communication processing module and then transmitted to the patch management module for management;
the method comprises the steps that a conventional stand-alone version of a patch management program exists on a general computer, and the stand-alone version of the patch management program can be used as a tool to be contained in a tool method set of a client side through the mode in the embodiment, so that the stand-alone version of the patch management program can be conveniently converted into a centrally managed patch management service program;
therefore, in both the embodiment and the fourth embodiment, all the single-machine programs can be packaged, and the packaged toolkit is used to convert the single-machine programs into a system with centralized management capability, which specifically comprises the following steps:
the single-machine program is used as a client tool package which can be called by a client;
the demands and the instructions for the toolkit can be dynamically issued to each client through the server, and the instructions and the demands of the stand-alone programs are dynamically sent to the toolkit of each client through the instruction task module by each client;
by packaging the single-computer program into a toolkit and installing the toolkit into each client, a system program capable of being managed in a centralized manner can be conveniently, intuitively and quickly established by using a method of communication between the server and each client;
the client executes the instructions one by one in the tool method set, and the obtained execution result can be stored locally or uploaded to a server for analysis and summarization; the result data stored in local by each client can be called by means of a remote instruction function, and the local data can be simply and conveniently converted into distributed real-time shared data.
EXAMPLE six
The difference between the embodiment and the first to fifth embodiments is that deployment of corresponding clients in an application scene of the internet of things is specifically limited:
the intelligent equipment of the internet of things generally has weak computing power, less memory and small storage space, and can only execute very simple work, so that the client program is particularly required to be simplified, the functions of business logic processing, data storage and the like are moved from the client to the server, the program at the client is extremely simplified, the safety and the stability are very excellent, and the intelligent equipment of the internet of things is particularly suitable for the application of the internet of things;
specifically, referring to fig. 12, a service logic module of a server dynamically allocates functional modules and tasks to be executed by each client according to preset requirements, a server instruction task module generates a series of operation instructions to be executed by the clients according to the tasks and sends the operation instructions to a server communication processing module, a tool method library generates a tool package of the required functional modules and sends the tool package to the server communication processing module, and the server communication processing module sends the received operation instructions and the tool package to the client communication processing module;
the client communication processing module sends the received toolkit to the tool method set through the client instruction task module to install the function module, after the installation is successful, the received operation instruction is sent to the tool method set through the client instruction task module to execute sensing, collecting, processing or calculating operation and obtain result data, the result data is uploaded to the server communication processing module through the client communication processing module, and then the server communication processing module sends the data to the logic judgment and intelligent processing module to perform logic judgment and processing.
EXAMPLE seven
Referring to fig. 2, a client includes a first memory, a first processor, and a first computer program stored in the first memory and executable on the first processor, where the first processor executes the first computer program to implement the steps performed by the client in the implementation method of the client-server mode in any one of the first to sixth embodiments.
Example eight
Referring to fig. 4, a server includes a second memory, a second processor, and a second computer program stored in the second memory and capable of running on the second processor, where the second processor executes the second computer program to implement the steps performed by the server in the implementation method of the client-server mode in any one of the first to sixth embodiments.
In summary, according to the implementation method of the client-server mode, the client and the server provided by the invention, the client receives the function module sent by the server based on the preset configuration requirement, and installs the received function module, so that the function module of the client can be configured according to the requirement, and the client can add or delete the function module according to the actual situation, thereby realizing building-block type assembly of the function module of the client, and further enabling the building of the function module of the client to be more flexible; the deployment mode of the client can be adaptively changed for different application scenes, and the method can be applied to the deployment of various client application programs, is particularly suitable for the deployment of software programs, and ensures the flexibility of client construction; the function module received by the client is a tool kit with minimized functions, which can not be subdivided, namely an atomization tool kit; meanwhile, the functional modules are subjected to security authentication, and the executed operations are specific and transparent; the operation instruction received by the client is also an instruction which is subjected to security authentication and has a specific function, and the executed operation is transparent and visible to the user; compared with a browser-server mode, the client side can operate the functional module according to the operation instruction sent by the server and generate the execution result, and can realize actual business operation on the client side, namely, the operable business types are all-around, and the browser is not limited by permission and resources when locally operating some businesses; compared with a common client-server mode, the analysis and processing of the business logic can be carried out in the server, so that the client only executes the operation without executing the analysis and processing of the business logic, the lightweight and transparent visualization of the operation of the client are realized, and the safety of the client and the server is ensured; through the setting of the virtual client, the remote calling or remote execution of the client can be realized.
The above description is only an embodiment of the present invention, and not intended to limit the scope of the present invention, and all equivalent changes made by using the contents of the present specification and the drawings, or applied directly or indirectly to the related technical fields, are included in the scope of the present invention.

Claims (12)

1. A method for implementing a client-server mode, comprising the steps of:
the method comprises the steps that a receiving server receives a function module sent by a server based on a preset configuration requirement, and the received function module is installed;
receiving an operation instruction of the functional module sent by a server, operating the functional module according to the operation instruction and generating an execution result;
and sending the execution result to a server for logic judgment and processing.
2. The method as claimed in claim 1, wherein the function module sent by the receiving server based on the preset configuration requirement includes:
and receiving a function module required by the preset configuration requirement selected or combined by the server in a preset tool method library of the server based on the preset configuration requirement.
3. The method for implementing client-server mode according to claim 1, further comprising the steps of:
and receiving a functional module removing instruction sent by the server, and deleting the functional module to be removed according to the removing instruction.
4. The method for implementing client-server mode according to claim 1, further comprising the steps of:
sending a function module adding request to the server;
and receiving the function module sent by the server based on the function module adding request, and installing the function module.
5. A method for implementing a client-server model according to any one of claims 1 to 4, characterized in that it comprises the steps of:
receiving an algorithm packet sent by a server based on the calculation configuration requirement of edge calculation or grid calculation, judging whether the algorithm packet exists, and if not, installing the received algorithm packet;
receiving a calculation task and a performance monitoring task of the algorithm packet sent by the server, performing calculation processing according to the calculation task to generate a calculation result, and acquiring performance state data according to the performance monitoring task;
sending the calculation result and the performance state data to the server for logic judgment and processing;
or receiving an inspection tool package sent by a server based on configuration requirements of information security inspection, judging whether the inspection tool package exists or not, and if not, installing the received inspection tool package;
receiving an inspection instruction of the inspection toolkit sent by the server, performing inspection processing according to the inspection instruction and generating an inspection result;
sending the checking result to the server for logic judgment and processing;
or receiving a monitoring toolkit sent by a server based on the configuration requirement of performance monitoring, judging whether the monitoring toolkit exists or not, and if not, installing the received monitoring toolkit;
receiving a monitoring instruction and a collecting instruction of the monitoring tool pack sent by the server, and carrying out performance monitoring according to the monitoring instruction and the collecting instruction to obtain performance data;
sending the performance data to the server for logic judgment and processing;
or receiving a patch installation toolkit sent by a server based on the configuration requirement of patch management, judging whether the patch installation toolkit exists, and if not, installing the received patch installation toolkit;
receiving a patch installation task of the patch installation tool kit sent by the server, and performing patch installation according to the patch installation task to obtain result data of the patch installation task;
sending the result data of the patch installation task to the server for logic judgment and processing;
or receiving a tool pack sent by a server based on the service requirement of the intelligent equipment of the Internet of things, judging whether the tool pack exists or not, and if not, installing the received tool pack;
receiving an instruction task of the tool kit sent by the server, and performing data perception, data processing or calculation and data acquisition of intelligent equipment according to the instruction task to obtain result data;
and sending the result data to the server for logic judgment and processing.
6. A client comprising a first memory, a first processor and a first computer program stored on the first memory and executable on the first processor, wherein the first processor implements the steps of the method for implementing a client-server model according to any one of claims 1 to 5 when executing the first computer program.
7. A method for implementing a client-server mode, comprising the steps of:
sending a function module to a client based on a preset configuration requirement;
sending an operation instruction of the functional module to the client, and acquiring an execution result generated by the client operating the functional module according to the operation instruction;
and carrying out logic judgment and processing according to the execution result.
8. The method of claim 7, wherein the sending the function module to the client based on the preset configuration requirement comprises:
and sending the function modules required by the preset configuration requirements selected or combined in a preset tool method library to the client based on the preset configuration requirements.
9. The method for implementing client-server mode according to claim 7, further comprising the steps of:
and sending a functional module removing instruction to the client, so that the client deletes the functional module to be removed according to the removing instruction.
10. The method for implementing client-server mode according to claim 7, further comprising the steps of:
receiving a function module adding request sent by a client;
and sending the functional module to the client based on the functional module adding request.
11. The method of claim 7, wherein the communication with the client is performed through a virtual client during the communication with the client;
the virtual clients are virtual mappings of the clients and correspond to the clients one to one.
12. A server comprising a second memory, a second processor and a second computer program stored on said second memory and executable on said second processor, characterized in that said second processor implements the steps of the method for implementing a client-server mode according to any one of claims 7 to 11 when executing said second computer program.
CN202110080730.7A 2021-01-21 2021-01-21 Method for realizing client-server mode, client and server Pending CN112732283A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110080730.7A CN112732283A (en) 2021-01-21 2021-01-21 Method for realizing client-server mode, client and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110080730.7A CN112732283A (en) 2021-01-21 2021-01-21 Method for realizing client-server mode, client and server

Publications (1)

Publication Number Publication Date
CN112732283A true CN112732283A (en) 2021-04-30

Family

ID=75594753

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110080730.7A Pending CN112732283A (en) 2021-01-21 2021-01-21 Method for realizing client-server mode, client and server

Country Status (1)

Country Link
CN (1) CN112732283A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102413000A (en) * 2011-12-23 2012-04-11 华为数字技术有限公司 Online method for clients, DHCP (dynamic host configuration protocol) server and network management system
CN108540509A (en) * 2017-03-01 2018-09-14 腾讯科技(深圳)有限公司 A kind of processing method of terminal browser, device and server, intelligent terminal
WO2018166373A1 (en) * 2017-03-15 2018-09-20 阿里巴巴集团控股有限公司 Data synchronization system and method, and server, client and electronic device
CN110262821A (en) * 2019-06-14 2019-09-20 深圳前海微众银行股份有限公司 A kind of management method of software module, device and server
CN110781007A (en) * 2019-10-31 2020-02-11 广州市网星信息技术有限公司 Task processing method, device, server, client, system and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102413000A (en) * 2011-12-23 2012-04-11 华为数字技术有限公司 Online method for clients, DHCP (dynamic host configuration protocol) server and network management system
CN108540509A (en) * 2017-03-01 2018-09-14 腾讯科技(深圳)有限公司 A kind of processing method of terminal browser, device and server, intelligent terminal
WO2018166373A1 (en) * 2017-03-15 2018-09-20 阿里巴巴集团控股有限公司 Data synchronization system and method, and server, client and electronic device
CN110262821A (en) * 2019-06-14 2019-09-20 深圳前海微众银行股份有限公司 A kind of management method of software module, device and server
CN110781007A (en) * 2019-10-31 2020-02-11 广州市网星信息技术有限公司 Task processing method, device, server, client, system and storage medium

Similar Documents

Publication Publication Date Title
US11875173B2 (en) Execution of auxiliary functions in an on-demand network code execution system
US10817331B2 (en) Execution of auxiliary functions in an on-demand network code execution system
US10924404B2 (en) Multi-tenant middleware cloud service technology
JP2021529386A (en) Execution of auxiliary functions on the on-demand network code execution system
CN102196003B (en) A kind of long-range control method of supervisory control system and device
US11902251B2 (en) Socket transferring for HPC networks using kernel tracing
EP3479229A1 (en) On-demand code execution using cross-account aliases
CN114281263B (en) Storage resource processing method, system and equipment of container cluster management system
CN113574845A (en) Internal and external debug
CN115795929A (en) Simulation deduction evaluation system and method
CN108289080B (en) Method, device and system for accessing file system
CN114996750A (en) Data sharing method and device
CN114296953A (en) Multi-cloud heterogeneous system and task processing method
CN112732283A (en) Method for realizing client-server mode, client and server
CN116339924A (en) Simulation integration system and method based on application virtualization technology
CN115269198A (en) Access request processing method based on server cluster and related equipment
US11614957B1 (en) Native-hypervisor based on-demand code execution system
CN111176782B (en) Online experiment method and device
CN110768855A (en) Method and device for testing linkmzation performance
CN111898162B (en) Parallel task execution method and device, storage medium and electronic equipment
Benedetti et al. Open-Source Serverless for Edge Computing: A Tutorial
US20230315541A1 (en) Tightly coupled parallel applications on a serverless computing system
CN115801531B (en) Base station system deployed on Linux physical machine
US20230315543A1 (en) Tightly coupled parallel applications on a serverless computing system
CN117056029B (en) Resource processing method, system, device, storage medium and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination