CN112579192A - Information processing method, device, system and computer readable storage medium - Google Patents

Information processing method, device, system and computer readable storage medium Download PDF

Info

Publication number
CN112579192A
CN112579192A CN201910948654.XA CN201910948654A CN112579192A CN 112579192 A CN112579192 A CN 112579192A CN 201910948654 A CN201910948654 A CN 201910948654A CN 112579192 A CN112579192 A CN 112579192A
Authority
CN
China
Prior art keywords
script
response
function
access request
instruction
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
CN201910948654.XA
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.)
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information 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 Beijing Jingdong Century Trading Co Ltd, Beijing Jingdong Shangke Information Technology Co Ltd filed Critical Beijing Jingdong Century Trading Co Ltd
Priority to CN201910948654.XA priority Critical patent/CN112579192A/en
Publication of CN112579192A publication Critical patent/CN112579192A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • G06F9/4451User profiles; Roaming
    • 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/44Arrangements for executing specific programs
    • G06F9/448Execution paradigms, e.g. implementations of programming paradigms
    • G06F9/4482Procedural
    • 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/44Arrangements for executing specific programs
    • G06F9/448Execution paradigms, e.g. implementations of programming paradigms
    • G06F9/4494Execution paradigms, e.g. implementations of programming paradigms data driven

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The present disclosure provides an information processing method applied to a server, where the server includes an operating environment and a storage unit, and the method includes: in response to receiving the control signal and the function script in the storage unit for realizing the specific service function has been updated to a second function script by the first function script, executing an uninstall instruction so as to uninstall the first function script in the execution environment; and in response to receiving an access request to access a particular business function, executing a first response script in response to the access request, the executing the first response script in response to the access request comprising: in the case where the first function script is uninstalled, the first response script acquires the second function script from the storage unit, loads the second function script to the execution environment, and executes the second function script in response to the access request.

Description

Information processing method, device, system and computer readable storage medium
Technical Field
The present disclosure relates to the field of computer technologies, and more particularly, to an information processing method, an information processing apparatus, an information processing system, and a computer-readable storage medium.
Background
When a server executes a function code for the first time in response to an access request for accessing a specific service function, the server reads the function code from, for example, a hard disk and loads the function code into the execution environment. After the server completes the first execution of the function code, the server reads the function code directly from the operating environment without reading the function code from the hard disk again each time the server executes the function code.
In implementing the disclosed concept, the inventors found that there are at least the following problems in the related art: in the case where the developer updates the function code, a server restart or a reload configuration command is required to validate the latest function code. Either restarting the server or reloading the configuration command results in a failure to respond to the online user's access request, affecting the stability of the online service.
Disclosure of Invention
In view of the above, the present disclosure provides an information processing method, and an information processing apparatus, system, and computer-readable storage medium.
One aspect of the present disclosure provides an information processing method, including: in response to receiving a control signal and the function script used for realizing a specific service function in the storage unit is updated to a second function script by a first function script, executing an unloading instruction so as to unload the first function script in the running environment; and in response to receiving an access request to access the specific business function, running a first response script to respond to the access request; wherein the executing the first response script in response to the access request comprises: in a case where the first function script is uninstalled, the first response script acquires the second function script from the storage unit, loads the second function script to the execution environment, and executes the second function script in response to the access request.
According to the embodiment of the disclosure, the uninstalling instruction is encapsulated in the first custom module, and the control signal comprises an access signal for accessing a specific http interface; the executing the offload instruction includes: in response to receiving the access signal, determining that a second response script responds to the access signal, wherein the second response script comprises a loading instruction for loading the first custom module and a calling instruction for calling the unloading instruction; and running the second response script, loading the first self-defined module to the running environment by the second response script and executing the unloading instruction.
According to the embodiment of the disclosure, a function script for realizing a specific service function is packaged in a second custom module; the method further comprises the following steps: and updating the function script in the second custom module from the first function script to a second function script.
According to the embodiment of the disclosure, the first response script is encapsulated in the third custom module, and the running the first response script to respond to the access request further comprises: in response to receiving an access request to access the particular business function, determining that the access request is responded to by the third custom module; and running the first response script in the third custom module, so as to load the second custom module through the first response script and call the second function script in the second custom module under the condition that the first function script in the running environment is unloaded.
According to an embodiment of the present disclosure, the server includes an Nginx server, and the execution environment includes a virtual machine.
According to an embodiment of the present disclosure, the method further comprises: and in the case that the function script for realizing the specific service function in the storage unit is not updated, sending a prompt message to the terminal device in response to receiving the control signal to prompt the user that the function script is not updated.
Another aspect of the present disclosure provides an information processing apparatus applied to a server including an execution environment and a storage unit, the apparatus including: the unloading module is used for responding to the received control signal and updating the function script used for realizing the specific service function in the storage unit to a second function script through a first function script, and executing an unloading instruction so as to unload the first function script in the running environment; the response module is used for responding to the received access request for accessing the specific service function and running a first response script to respond to the access request; wherein the executing the first response script in response to the access request comprises: in a case where the first function script is uninstalled, the first response script acquires the second function script from the storage unit, loads the second function script to the execution environment, and executes the second function script in response to the access request.
According to the embodiment of the disclosure, the uninstalling instruction is encapsulated in the first custom module, and the control signal comprises an access signal for accessing a specific http interface; the unloading module comprises: the determining submodule is used for responding to the received access signal and determining that a second response script responds to the access signal, wherein the second response script comprises a loading instruction used for loading the first custom module and a calling instruction used for calling the unloading instruction; and the operation submodule is used for operating the second response script, loading the first self-defined module to the operation environment by the second response script and executing the unloading instruction.
Another aspect of the present disclosure provides an information processing system including: one or more processors; a storage device to store one or more programs, wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to perform the method of any of the above.
Another aspect of the present disclosure provides a computer-readable storage medium storing computer-executable instructions for implementing the method as described above when executed.
Another aspect of the disclosure provides a computer program comprising computer executable instructions for implementing the method as described above when executed.
According to the embodiment of the disclosure, the problem that the updated code can only be validated by restarting the server after the code on the server is updated can be at least partially solved, and therefore, the technical effect that the updated code can also be validated without restarting the server after the code on the server is updated can be realized, so that the access request can be timely responded, and the stability of the online service can be ensured.
Drawings
The above and other objects, features and advantages of the present disclosure will become more apparent from the following description of embodiments of the present disclosure with reference to the accompanying drawings, in which:
fig. 1 schematically shows an exemplary system architecture to which an information processing method according to an embodiment of the present disclosure may be applied;
FIG. 2 schematically shows a flow chart of an information processing method according to an embodiment of the present disclosure;
FIG. 3 schematically illustrates a flow chart of a method of executing an unload instruction in this embodiment;
FIG. 4 schematically illustrates a flow diagram for running a first response script in response to the access request, in accordance with an embodiment of the present disclosure;
FIG. 5 schematically illustrates a system architecture diagram suitable for implementing an information processing method according to another embodiment of the present disclosure;
FIG. 6 schematically shows a block diagram of an information processing apparatus according to an embodiment of the present disclosure
FIG. 7 schematically illustrates a block diagram of an offload module according to an embodiment of the present disclosure; and
FIG. 8 schematically shows a block diagram of an information handling system according to an embodiment of the disclosure.
Detailed Description
Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. It should be understood that the description is illustrative only and is not intended to limit the scope of the present disclosure. In the following detailed description, for purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the embodiments of the disclosure. It may be evident, however, that one or more embodiments may be practiced without these specific details. Moreover, in the following description, descriptions of well-known structures and techniques are omitted so as to not unnecessarily obscure the concepts of the present disclosure.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. The terms "comprises," "comprising," and the like, as used herein, specify the presence of stated features, steps, operations, and/or components, but do not preclude the presence or addition of one or more other features, steps, operations, or components.
All terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art unless otherwise defined. It is noted that the terms used herein should be interpreted as having a meaning that is consistent with the context of this specification and should not be interpreted in an idealized or overly formal sense.
Where a convention analogous to "at least one of A, B and C, etc." is used, in general such a construction is intended in the sense one having skill in the art would understand the convention (e.g., "a system having at least one of A, B and C" would include but not be limited to systems that have a alone, B alone, C alone, a and B together, a and C together, B and C together, and/or A, B, C together, etc.). Where a convention analogous to "A, B or at least one of C, etc." is used, in general such a construction is intended in the sense one having skill in the art would understand the convention (e.g., "a system having at least one of A, B or C" would include but not be limited to systems that have a alone, B alone, C alone, a and B together, a and C together, B and C together, and/or A, B, C together, etc.).
The embodiment of the disclosure provides an information processing method. The method is applied to a server which comprises a storage unit and an operating environment. The method includes the steps of updating a function script for implementing a specific service function in a storage unit from a first function script to a second function script, and executing an uninstall instruction in response to receiving a control signal so as to uninstall the first function script in a execution environment. Next, upon receiving an access request to access a particular business function, a first response script is executed in response to the access request. Wherein executing the first response script includes, in a case where the first function script is uninstalled, the first response script acquiring the second function script from the storage unit, loading the second function script to the execution environment, and executing the second function script in response to the access request.
According to an embodiment of the present disclosure, a server for implementing the information processing method of the present disclosure may be, for example, an Ngnix server or may also be an application server that deploys a Web application. The Ngnix server is a high-performance http reverse proxy server, and the traditional Web application usually uses Nginx as a reverse proxy, that is, the access request of the user arrives at the Nginx server first, and the Nginx proxy forwards the access request of the user to a server deployed by the Web application at the back end, so that load balance of the Web application is realized. With a high-performance script language embedded in nginnx, the nginnx server can also be used as a Web server.
In the related art, code source files and configuration files for implementing specific service functions are typically placed in a hard disk of the Ngnix server. The code source files and configuration files may be, for example, Lua scripts written using the Lua language for implementing specific business functions.
When the access request is sent to the Ngnix server, the Ngnix server analyzes the access request, accesses the configuration file, and determines the Lua script responding to the access request according to the configuration information in the configuration file. The first time the Lua script is executed, it is usually loaded into the memory of the LuaJIT VM (the just-in-time compiler virtual machine in Lua language, which is the virtual environment for Lua language execution). After the first execution is finished, the Lua script is not read in a hard disk any more when the Lua script is executed each time, but the Lua script loaded in the LuaJIT VM memory is directly read. Since the Lua script is not read from the hard disk any more when being executed, after a developer updates the code source file in the hard disk, the Nginx server needs to restart or reload the configuration file, so that the updated code source file becomes effective.
According to the information processing method provided by the disclosure, after a developer updates the code source file in the hard disk, the Nginx server can enable the updated code source file to take effect without restarting or reloading the configuration file. An information processing method according to an embodiment of the present disclosure is described below with reference to fig. 1 to 5.
Fig. 1 schematically shows an exemplary system architecture 100 to which the information processing method may be applied, according to an embodiment of the present disclosure. It should be noted that fig. 1 is only an example of a system architecture to which the embodiments of the present disclosure may be applied to help those skilled in the art understand the technical content of the present disclosure, and does not mean that the embodiments of the present disclosure may not be applied to other devices, systems, environments or scenarios.
As shown in fig. 1, a system architecture 100 according to this embodiment may include clients 101, 102, 103, a network 104, and a server 105. Network 104 is the medium used to provide communication links between clients 101, 102, 103 and server 105. Network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
A user may use clients 101, 102, 103 to interact with server 105 over network 104 to receive or send messages, etc. Various messaging client applications, such as shopping-like applications, web browser applications, search-like applications, instant messaging tools, mailbox clients, social platform software, etc. (examples only) may be installed on the clients 101, 102, 103.
Clients 101, 102, 103 may be a variety of electronic devices having display screens and supporting web browsing, including but not limited to smart phones, tablets, laptop and desktop computers, and the like.
The server 105 may be a server that provides various services, such as a back-office management server (for example only) that provides support for websites browsed by users using the clients 101, 102, 103. The background management server may analyze and perform other processing on the received data such as the user request, and feed back a processing result (e.g., a webpage, information, or data obtained or generated according to the user request) to the client.
It should be noted that the information processing method provided by the embodiment of the present disclosure may be generally executed by the server 105. Accordingly, the information processing apparatus provided by the embodiment of the present disclosure may be generally provided in the server 105.
It should be understood that the number of terminal devices, networks, and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
Fig. 2 schematically shows a flow chart of an information processing method according to an embodiment of the present disclosure.
As shown in fig. 2, the method includes operations S201 and S202.
The information processing method is applied to a server, and the server can comprise an operating environment and a storage unit.
In operation S201, in response to receiving the control signal and the function script in the storage unit for implementing the specific service function has been updated to the second function script by the first function script, an uninstall instruction is executed in order to uninstall the first function script in the execution environment.
According to an embodiment of the present disclosure, the storage unit may be, for example, a hard disk of an Ngnix server. The runtime environment may be, for example, a LuaJIT VM.
According to the embodiment of the disclosure, for example, a developer may update a function script in a hard disk, which implements a specific service function, from a first function script to a second function script. The specific service function may be, for example, a money transfer function, a payment function, and the like.
According to an embodiment of the present disclosure, the control signal may be, for example, sent by a developer to the Ngnix server through a terminal device.
For example, after a developer updates a function script that implements a specific service function in a hard disk from a first function script to a second function script, the developer sends a control signal to the Ngnix server. The Ngnix server, in response to receiving the control information, executes an offload instruction to offload the first function script in the LuaJIT VM memory.
According to an embodiment of the present disclosure, the uninstall instruction may be, for example, setting a script related to a specific cause function to a null value through the Lua syntax.
In response to receiving an access request for accessing a specific service function, a first response script is executed in response to the access request in operation S202. Wherein executing the first response script in response to the access request comprises: in the case where the first function script is uninstalled, the first response script acquires the second function script from the storage unit, loads the second function script to the execution environment, and executes the second function script in response to the access request.
For example, in the scenario shown in fig. 1, it may be that the user sends a specific service function access request for access to the Ngnix server through a browser on the client 103. The Ngnix server, in response to receiving the access request, runs a first response script in response to the access request. And the first response script acquires a second function script responding to the access request from the hard disk again, loads the second function script into the LuaJIT VM memory, and runs the second function script to respond to the access request.
According to the embodiment of the disclosure, the information processing method unloads the first function script in the running environment through the unloading instruction, and reloads and runs the second function script when receiving the access request for accessing the specific service function, so that the updated code can take effect without restarting the server after the code in the server is updated, and the server can respond to the access request in time.
FIG. 3 schematically illustrates a flow chart of a method of executing an unload instruction in this embodiment.
As shown in fig. 3, the example method of executing the unload instruction may include operation S211 and operation S221.
In operation S211, in response to receiving the access signal, it is determined that the access signal is responded by a second response script, wherein the second response script includes a load instruction for loading the first custom module and a call instruction for calling the unload instruction.
In operation S221, the second response script is executed, and the first custom module is loaded to the execution environment by the second response script and executes the uninstall instruction.
According to an embodiment of the present disclosure, in the method for executing an offload instruction shown in fig. 3, the offload instruction is encapsulated in the first custom module, and the control signal includes an access signal for accessing a specific http interface.
According to an embodiment of the present disclosure, a developer may encapsulate an uninstall instruction in a first custom module and modify a configuration file (nginx.conf) of a LuaJIT VM. Wherein, modifying the configuration file may be configuring a new location entry, for example, may be named as a/reload entry, which is used by the developer. The/load entry corresponds to the second response script.
For example, the http path of the request access which can be input in the browser by the developer is/load, and the request for accessing/loading the entry is an access signal. The Ngnix server receives the access signal and determines from the configuration file that the access signal is responded to by the second response script.
According to an embodiment of the present disclosure, in operation S211, the second response script may include a load instruction for loading the first custom module, which may be implemented by a require statement in the Lua syntax, for example. The second response script includes a call instruction, which may be, for example, "X.b" in the Lua syntax, where "X" represents a variable corresponding to the first custom module and "b" represents a method corresponding to the uninstall instruction.
According to an embodiment of the present disclosure, a second response script is executed in operation S221, the second response script loads the first custom module to the LuaJIT VM, and executes an uninstall instruction in the first custom module.
According to the embodiment of the disclosure, the function script for realizing the specific service function is packaged in the second custom module. In this embodiment, the information processing method further includes, on the basis of operations S201 and S202 shown in fig. 2: and updating the function script in the second custom module from the first function script to a second function script. This operation may be performed, for example, before operation S201. For example, the first function script in the second custom module can be updated to the second function script according to the input operation of the developer.
FIG. 4 schematically shows a flow chart of running a first response script to respond to the access request according to an embodiment of the disclosure.
As shown in fig. 4, the method includes operations S212 and S222. In the method, a first response script is encapsulated in a third custom module.
In operation S212, in response to receiving an access request for accessing a specific service function, it is determined that the access request is responded to by the third custom module.
According to the embodiment of the disclosure, for example, the configuration file may be accessed according to the received access request, and the access request may be responded to through the third custom module according to the configuration information of the configuration file.
In operation S222, the first response script in the third custom module is executed, so that in the case that the first function script in the execution environment is uninstalled, the second custom module is loaded through the first response script, and the second function script in the second custom module is called.
According to the embodiment of the disclosure, the first response script loads the second custom module into the LuaJITVM memory, for example, the first response script may be implemented by a require statement in the Lua syntax. And after the second custom module is loaded into the LuaJIT VM memory, calling a second function script in the second custom module to respond to the access request.
According to an embodiment of the disclosure, the uninstall instruction and the first response script may be encapsulated in the same custom module.
According to an embodiment of the present disclosure, the information processing method may further include, in a case where the function script for implementing the specific service function in the storage unit is not updated, in response to receiving the control signal, transmitting a prompt message to the terminal device of the developer to prompt the developer that the function script is not updated.
The following further describes an implementation of the information processing method according to an embodiment of the present disclosure with another embodiment.
According to the embodiment of the disclosure, a developer may, for example, encapsulate a function script of an http interface for implementing a specific service function into a customized module. For example, a second function script can be packaged in a second custom module. Moreover, for example, a developer may write a first custom module, write a first response script in the first custom module, where the first response script may include a method for calling a second custom module, and may further include an instruction for uninstalling the first function script in the first custom module.
Next, the developer can modify the configuration file (Ngnix. conf) of Ngnix to configure a new location entry. For example, may be named/reload entries. The/load entry corresponds to the second response script. The second response script includes code to load the first custom module and code to invoke an instruction in the first custom module to unload the first function script.
An implementation of the information processing method in this embodiment is described below with reference to the system architecture shown in fig. 5.
Fig. 5 schematically illustrates a system architecture diagram suitable for implementing an information processing method according to another embodiment of the present disclosure.
As shown in fig. 5, the system architecture includes a plurality of user browsers, the internet, a Nginx server and a developer browser.
After the developer can modify the function script in the hard disk of the Ngnix server, for example, after the first function script is updated to the second function script, the developer can input a request access/load entry in the browser at the browsing end, for example. The Ngnix server receives the request, triggering the Ngnix server to run a second response script. The second response script loads the first custom module into the LuaJIT VM memory and executes an unloading method in the first custom module, wherein the unloading method comprises an instruction for unloading the first function script in the LuaJIT VM memory.
In the case where at least one of the plurality of user browsers sends an access request to the nginnx server via the internet, the nginnx server receives the access request and determines, via the configuration file, that the access request is to be processed by the first custom module. The first custom module comprises a first response script, and the first response script executes a calling method which is used for calling a second function script in the second custom module.
Fig. 6 schematically shows a block diagram of an information processing apparatus 600 according to an embodiment of the present disclosure.
As shown in fig. 6, the information processing apparatus 600 may include an uninstall module 610 and a response module 620.
The uninstalling module 610, for example, may perform operation S201 described above with reference to fig. 2, for executing an uninstall instruction to uninstall the first function script in the execution environment in response to receiving the control signal and the function script in the storage unit for implementing the specific service function has been updated to the second function script by the first function script.
The response module 620, for example, may perform operation S202 described above with reference to fig. 2, for running a first response script in response to an access request received to access a specific business function.
Wherein executing the first response script in response to the access request comprises: in the case where the first function script is uninstalled, the first response script acquires the second function script from the storage unit, loads the second function script to the execution environment, and executes the second function script in response to the access request.
Fig. 7 schematically illustrates a block diagram of an offload module 610 according to an embodiment of the present disclosure.
As shown in fig. 7, the offload module 610 may include a determination sub-module 611 and an execution sub-module 612.
The determining sub-module 611, for example, may perform operation S211 described above with reference to fig. 3, for determining that the access signal is responded to by a second response script in response to receiving the access signal, wherein the second response script includes a load instruction for loading the first custom module and a call instruction for calling the unload instruction.
The run sub-module 612, for example, may perform operation S221 described above with reference to fig. 3, and is configured to run the second response script, load the first custom module into the run environment by the second response script, and execute the uninstall instruction.
According to the embodiment of the disclosure, a function script for realizing a specific service function is packaged in a second custom module; the apparatus 600 may further comprise: and the updating module is used for updating the function script in the second self-defining module from the first function script to a second function script.
According to the embodiment of the disclosure, the first response script is encapsulated in the third custom module, and the running the first response script to respond to the access request further comprises: in response to receiving an access request for accessing a specific service function, determining that the third custom module responds to the access request; and running the first response script in the third custom module, so as to load the second custom module through the first response script and call the second function script in the second custom module under the condition that the first function script in the running environment is unloaded.
According to an embodiment of the present disclosure, the server includes an Nginx server, and the execution environment includes a virtual machine.
According to an embodiment of the present disclosure, the apparatus 600 may further include a sending module, configured to send a prompt message to the terminal device in response to receiving the control signal, so as to prompt the user that the function script is not updated.
Any number of modules, sub-modules, units, sub-units, or at least part of the functionality of any number thereof according to embodiments of the present disclosure may be implemented in one module. Any one or more of the modules, sub-modules, units, and sub-units according to the embodiments of the present disclosure may be implemented by being split into a plurality of modules. Any one or more of the modules, sub-modules, units, sub-units according to embodiments of the present disclosure may be implemented at least in part as a hardware circuit, such as a Field Programmable Gate Array (FPGA), a Programmable Logic Array (PLA), a system on a chip, a system on a substrate, a system on a package, an Application Specific Integrated Circuit (ASIC), or may be implemented in any other reasonable manner of hardware or firmware by integrating or packaging a circuit, or in any one of or a suitable combination of software, hardware, and firmware implementations. Alternatively, one or more of the modules, sub-modules, units, sub-units according to embodiments of the disclosure may be at least partially implemented as a computer program module, which when executed may perform the corresponding functions.
For example, any number of the offload module 610 and the response module 620 may be combined in one module for implementation, or any one of the modules may be split into multiple modules. Alternatively, at least part of the functionality of one or more of these modules may be combined with at least part of the functionality of the other modules and implemented in one module. According to an embodiment of the present disclosure, at least one of the offload module 610 and the response module 620 may be implemented at least partially as a hardware circuit, such as a Field Programmable Gate Array (FPGA), a Programmable Logic Array (PLA), a system on a chip, a system on a substrate, a system on a package, an Application Specific Integrated Circuit (ASIC), or may be implemented in hardware or firmware in any other reasonable manner of integrating or packaging a circuit, or in any one of three implementations of software, hardware, and firmware, or in any suitable combination of any of them. Alternatively, at least one of the offload module 610 and the response module 620 may be implemented at least in part as a computer program module that, when executed, may perform a corresponding function.
FIG. 8 schematically shows a block diagram of an information handling system according to an embodiment of the disclosure. The information processing system shown in fig. 8 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 8, an information processing system 800 according to an embodiment of the present disclosure includes a processor 801 which can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)802 or a program loaded from a storage section 808 into a Random Access Memory (RAM) 803. The processor 801 may include, for example, a general purpose microprocessor (e.g., a CPU), an instruction set processor and/or associated chipset, and/or a special purpose microprocessor (e.g., an Application Specific Integrated Circuit (ASIC)), among others. The processor 801 may also include onboard memory for caching purposes. The processor 801 may include a single processing unit or multiple processing units for performing different actions of the method flows according to embodiments of the present disclosure.
In the RAM 803, various programs and data necessary for the operation of the system 800 are stored. The processor 801, the ROM 802, and the RAM 803 are connected to each other by a bus 804. The processor 801 performs various operations of the method flows according to the embodiments of the present disclosure by executing programs in the ROM 802 and/or RAM 803. Note that the programs may also be stored in one or more memories other than the ROM 802 and RAM 803. The processor 801 may also perform various operations of method flows according to embodiments of the present disclosure by executing programs stored in the one or more memories.
System 800 may also include an input/output (I/O) interface 805, also connected to bus 804, according to an embodiment of the disclosure. The system 800 may also include one or more of the following components connected to the I/O interface 805: an input portion 806 including a keyboard, a mouse, and the like; an output section 807 including a signal such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage portion 808 including a hard disk and the like; and a communication section 809 including a network interface card such as a LAN card, a modem, or the like. The communication section 809 performs communication processing via a network such as the internet. A drive 810 is also connected to the I/O interface 805 as necessary. A removable medium 811 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 810 as necessary, so that a computer program read out therefrom is mounted on the storage section 808 as necessary.
According to embodiments of the present disclosure, method flows according to embodiments of the present disclosure may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable storage medium, the computer program containing program code for performing the method illustrated by the flow chart. In such an embodiment, the computer program can be downloaded and installed from a network through the communication section 809 and/or installed from the removable medium 811. The computer program, when executed by the processor 801, performs the above-described functions defined in the system of the embodiments of the present disclosure. The systems, devices, apparatuses, modules, units, etc. described above may be implemented by computer program modules according to embodiments of the present disclosure.
The present disclosure also provides a computer-readable storage medium, which may be contained in the apparatus/device/system described in the above embodiments; or may exist separately and not be assembled into the device/apparatus/system. The computer-readable storage medium carries one or more programs which, when executed, implement the method according to an embodiment of the disclosure.
According to embodiments of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium, which may include, for example but is not limited to: a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. For example, according to embodiments of the present disclosure, a computer-readable storage medium may include the ROM 802 and/or RAM 803 described above and/or one or more memories other than the ROM 802 and RAM 803.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
Those skilled in the art will appreciate that various combinations and/or combinations of features recited in the various embodiments and/or claims of the present disclosure can be made, even if such combinations or combinations are not expressly recited in the present disclosure. In particular, various combinations and/or combinations of the features recited in the various embodiments and/or claims of the present disclosure may be made without departing from the spirit or teaching of the present disclosure. All such combinations and/or associations are within the scope of the present disclosure.
The embodiments of the present disclosure have been described above. However, these examples are for illustrative purposes only and are not intended to limit the scope of the present disclosure. Although the embodiments are described separately above, this does not mean that the measures in the embodiments cannot be used in advantageous combination. The scope of the disclosure is defined by the appended claims and equivalents thereof. Various alternatives and modifications can be devised by those skilled in the art without departing from the scope of the present disclosure, and such alternatives and modifications are intended to be within the scope of the present disclosure.

Claims (10)

1. An information processing method applied to a server, the server comprising an operating environment and a storage unit, the method comprising:
in response to receiving a control signal and the function script used for realizing a specific service function in the storage unit is updated to a second function script by a first function script, executing an unloading instruction so as to unload the first function script in the running environment; and
in response to receiving an access request for accessing the specific service function, running a first response script to respond to the access request;
wherein the executing the first response script in response to the access request comprises:
in a case where the first function script is uninstalled, the first response script acquires the second function script from the storage unit, loads the second function script to the execution environment, and executes the second function script in response to the access request.
2. The method of claim 1, wherein the offload instruction is encapsulated in a first custom module, and the control signal comprises an access signal to access a particular http interface;
the executing the offload instruction includes:
in response to receiving the access signal, determining that a second response script responds to the access signal, wherein the second response script comprises a loading instruction for loading the first custom module and a calling instruction for calling the unloading instruction; and
and running the second response script, loading the first custom module to the running environment by the second response script, and executing the unloading instruction.
3. The method of claim 1, wherein the function script for implementing a specific business function is encapsulated in a second custom module;
the method further comprises the following steps:
and updating the function script in the second custom module from the first function script to a second function script.
4. The method of claim 3, wherein the first response script is encapsulated in a third custom module,
the executing the first response script in response to the access request further comprises:
in response to receiving an access request to access the particular business function, determining that the access request is responded to by the third custom module; and
and running the first response script in the third custom module to load the second custom module through the first response script and call the second function script in the second custom module under the condition that the first function script in the running environment is unloaded.
5. The method of claim 1, wherein the server comprises an Nginx server and the runtime environment comprises a virtual machine.
6. The method of claim 1, further comprising:
and in the case that the function script for realizing the specific service function in the storage unit is not updated, sending a prompt message to the terminal device in response to receiving the control signal to prompt the user that the function script is not updated.
7. An information processing apparatus applied to a server including an execution environment and a storage unit, the apparatus comprising:
the unloading module is used for responding to the received control signal and updating the function script used for realizing the specific service function in the storage unit to a second function script through a first function script, and executing an unloading instruction so as to unload the first function script in the running environment;
the response module is used for responding to the received access request for accessing the specific service function and running a first response script to respond to the access request;
wherein the executing the first response script in response to the access request comprises:
in a case where the first function script is uninstalled, the first response script acquires the second function script from the storage unit, loads the second function script to the execution environment, and executes the second function script in response to the access request.
8. The apparatus of claim 7, wherein the offload instruction is encapsulated in a first custom module, and the control signal comprises an access signal to access a specific http interface;
the unloading module comprises:
the determining submodule is used for responding to the received access signal and determining that a second response script responds to the access signal, wherein the second response script comprises a loading instruction used for loading the first custom module and a calling instruction used for calling the unloading instruction; and
and the operation submodule is used for operating the second response script, loading the first self-defined module to the operation environment by the second response script and executing the unloading instruction.
9. An information processing system comprising:
one or more processors;
a storage device for storing one or more programs,
wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to perform the method of any of claims 1-6.
10. A computer readable storage medium having stored thereon executable instructions which, when executed by a processor, cause the processor to perform the method of any one of claims 1 to 6.
CN201910948654.XA 2019-09-30 2019-09-30 Information processing method, device, system and computer readable storage medium Pending CN112579192A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910948654.XA CN112579192A (en) 2019-09-30 2019-09-30 Information processing method, device, system and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910948654.XA CN112579192A (en) 2019-09-30 2019-09-30 Information processing method, device, system and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN112579192A true CN112579192A (en) 2021-03-30

Family

ID=75117232

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910948654.XA Pending CN112579192A (en) 2019-09-30 2019-09-30 Information processing method, device, system and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN112579192A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110078675A1 (en) * 2009-09-25 2011-03-31 Fisher-Rosemount Systems, Inc. Automated Deployment of Computer-Specific Software Updates
CN107085514A (en) * 2017-03-06 2017-08-22 北京安博通科技股份有限公司 Shared library upgrade method and device
CN107147711A (en) * 2017-05-04 2017-09-08 浙江路港互通信息技术有限公司 Application service update method and device
CN107948314A (en) * 2017-12-21 2018-04-20 泰康保险集团股份有限公司 Method for processing business, device and the server of rule-based file
JP2018093552A (en) * 2018-03-20 2018-06-14 日本電気株式会社 Communication node, communication system, update method, and update program
CN108829459A (en) * 2018-05-31 2018-11-16 康键信息技术(深圳)有限公司 Configuration method, device, computer equipment and storage medium based on Nginx server

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110078675A1 (en) * 2009-09-25 2011-03-31 Fisher-Rosemount Systems, Inc. Automated Deployment of Computer-Specific Software Updates
CN107085514A (en) * 2017-03-06 2017-08-22 北京安博通科技股份有限公司 Shared library upgrade method and device
CN107147711A (en) * 2017-05-04 2017-09-08 浙江路港互通信息技术有限公司 Application service update method and device
CN107948314A (en) * 2017-12-21 2018-04-20 泰康保险集团股份有限公司 Method for processing business, device and the server of rule-based file
JP2018093552A (en) * 2018-03-20 2018-06-14 日本電気株式会社 Communication node, communication system, update method, and update program
CN108829459A (en) * 2018-05-31 2018-11-16 康键信息技术(深圳)有限公司 Configuration method, device, computer equipment and storage medium based on Nginx server

Similar Documents

Publication Publication Date Title
CN109032706B (en) Intelligent contract execution method, device, equipment and storage medium
WO2017166447A1 (en) Method and device for loading kernel module
US10019298B2 (en) Middleware interface and middleware interface generator
CN113312037A (en) Data processing method, device and equipment applied to microservice and storage medium
US20180343174A1 (en) Rule based page processing and network request processing in browsers
US9141363B2 (en) Application construction for execution on diverse computing infrastructures
CN110851204B (en) Application starting method and device and application packaging method and device
US9519600B2 (en) Driver shimming
CN113157274B (en) Software development method and device based on micro front end, electronic equipment and storage medium
CN109683992B (en) Method and apparatus for managing objects
CN115686500A (en) Exposing cloud APIs based on supported hardware
US20210133261A1 (en) Using web application components with different web application frameworks in a web application
US10698703B2 (en) Mobile application management by run-time insertion of a substitute application class loader into a mobile application process
CN111142972B (en) Method, apparatus, system, and medium for extending functions of application program
CN117149248A (en) Micro front end construction method, device, equipment and storage medium
CN112579192A (en) Information processing method, device, system and computer readable storage medium
CN114020513A (en) Method and device for processing log information
CN114510334A (en) Class instance calling method and device, electronic equipment and automatic driving vehicle
CN112506781A (en) Test monitoring method, test monitoring device, electronic device, storage medium, and program product
CN113515299A (en) Software development kit SDK hot upgrading method, device, equipment and storage medium
CN112579282A (en) Data processing method, device, system and computer readable storage medium
CN112068814A (en) Method, device, system and medium for generating executable file
US11144431B2 (en) Configuration-based code construct for restriction checks in component of a web application
CN113342401A (en) Method, device, equipment and medium for generating application program installation package
CN111459570B (en) PDF plug-in loading method, electronic equipment and computer storage medium

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