CN112346761A - Front-end resource online method, equipment, system and storage medium - Google Patents

Front-end resource online method, equipment, system and storage medium Download PDF

Info

Publication number
CN112346761A
CN112346761A CN202011165216.5A CN202011165216A CN112346761A CN 112346761 A CN112346761 A CN 112346761A CN 202011165216 A CN202011165216 A CN 202011165216A CN 112346761 A CN112346761 A CN 112346761A
Authority
CN
China
Prior art keywords
version number
end resource
new version
memory
storage node
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
CN202011165216.5A
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.)
Changsha Youheng Network Technology Co Ltd
Original Assignee
Changsha Youheng Network 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 Changsha Youheng Network Technology Co Ltd filed Critical Changsha Youheng Network Technology Co Ltd
Priority to CN202011165216.5A priority Critical patent/CN112346761A/en
Publication of CN112346761A publication Critical patent/CN112346761A/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/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Abstract

The embodiment of the application provides a front-end resource online method, equipment, a system and a storage medium. In the embodiment of the present application, a version number of a front-end resource is maintained in a memory of a server device. The server-side equipment can modify the version number of the front-end resource stored in the memory into a new version number under the condition that the version number of the front-end resource is updated; in the process of responding to the page access request, a new version number can be obtained from the memory; assigning the version number to a variable parameter used for marking the version number of the front-end resource in the calling front-end resource code; therefore, in the process of operating and calling the front-end resource code, the server-side equipment can acquire the front-end resource corresponding to the new version number from the storage node based on the new version number, so that the front-end resource can be on line, the version number in the calling front-end resource code does not need to be manually searched when the new version number is updated each time, and the on-line efficiency of the front-end resource is improved.

Description

Front-end resource online method, equipment, system and storage medium
Technical Field
The present application relates to the field of software development technologies, and in particular, to a front-end resource online method, device, system, and storage medium.
Background
In the process of software development of application programs and the like, developers are divided into front-end developers and background developers. The front-end developer is used for developing a User Interface (UI), and the background developer is used for developing a UI calling layer for the front-end calling.
In the actual application process, front-end developers store front-end resources into a database, when a server provides a UI for a user, the server can acquire the front-end resources from the database and provide the front-end resources for terminal equipment of the user, and the terminal equipment renders the UI based on the front-end resources; or the server side equipment acquires the front-end resources, renders the UI based on the front-end resources and provides the rendered UI for the terminal equipment.
In the prior art, a background developer often writes the version number of a front-end resource into a script for calling the front-end resource, so that the front-end resource is updated each time, the background developer needs to manually modify the version number in the script, and the online efficiency of the front-end resource is low.
Disclosure of Invention
Aspects of the present application provide a method, device, system, and storage medium for front-end resource online, so as to improve the online efficiency of front-end resources.
An embodiment of the present application provides a data processing system, including: a service node and a storage node; wherein the content of the first and second substances,
the storage node stores front-end resources; maintaining the corresponding relation between the version number of the front-end resource and the network address; responding to the version number updating operation, and modifying the version number in the corresponding relation into a new version number;
the service node is used for modifying the version number of the front-end resource stored in the memory into a new version number under the condition that the version number of the front-end resource in the storage node is updated; responding to a page access request, and acquiring a new version number from the memory; assigning the new version number to a variable parameter which identifies the version number of the front-end resource in the calling front-end resource code; and acquiring the front-end resource corresponding to the new version number from the storage node based on the new version number in the process of operating the calling front-end resource code.
The embodiment of the present application further provides a front-end resource online method, including:
under the condition that the version number of the front-end resource in the storage node is updated, modifying the version number of the front-end resource stored in the memory into a new version number; the storage node maintains the corresponding relation between the version number of the front-end resource and the network address;
responding to a page access request, and acquiring a new version number from the memory;
assigning the new version number to a variable parameter which identifies the version number of the front-end resource in the calling front-end resource code;
and acquiring the front-end resource corresponding to the new version number from the storage node based on the new version number in the process of operating the front-end resource calling code so as to realize the on-line of the front-end resource.
An embodiment of the present application further provides a server device, including: a memory and a processor; wherein the memory comprises a memory and other storage media; the other storage medium is used for storing a computer program; the memory is used for storing the front-end resource version number;
the processor is coupled to the memory and is configured to execute the computer program for performing the steps of the front-end resource on-line method.
Embodiments of the present application also provide a computer-readable storage medium storing computer instructions, which, when executed by one or more processors, cause the one or more processors to perform the steps in the front-end resource online method.
In the embodiment of the present application, a version number of a front-end resource is maintained in a memory of a server device. The server-side equipment can modify the version number of the front-end resource stored in the memory into a new version number under the condition that the version number of the front-end resource is updated; in the process of responding to the page access request, a new version number can be obtained from the memory; assigning the version number to a variable parameter used for marking the version number of the front-end resource in the calling front-end resource code; therefore, in the process of operating and calling the front-end resource code, the server-side equipment can acquire the front-end resource corresponding to the new version number from the storage node based on the new version number, so that the front-end resource can be on line, the version number in the calling front-end resource code does not need to be manually searched when the new version number is updated each time, and the on-line efficiency of the front-end resource is improved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
FIG. 1 is a block diagram of a data processing system according to an embodiment of the present application;
fig. 2 is a schematic flowchart of a front-end resource online method according to an embodiment of the present disclosure;
fig. 3 is a schematic structural diagram of a computer device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the technical solutions of the present application will be described in detail and completely with reference to the following specific embodiments of the present application and the accompanying drawings. It should be apparent that the described embodiments are only some of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In the prior art, a background developer often writes the version number of a front-end resource into a script for calling the front-end resource, so that the front-end resource is updated each time, the background developer needs to manually modify the version number in the script, and the online efficiency of the front-end resource is low.
In order to solve the above problem, in some embodiments of the present application, the server device may modify the version number of the front-end resource stored in the memory to a new version number when the version number of the front-end resource is updated; in the process of responding to the page access request, a new version number can be obtained from the memory; assigning the version number to a variable parameter used for marking the version number of the front-end resource in the calling front-end resource code; therefore, in the process of operating and calling the front-end resource code, the server-side equipment can acquire the front-end resource corresponding to the new version number from the storage node based on the new version number, so that the front-end resource can be on line, the version number in the calling front-end resource code does not need to be manually searched when the new version number is updated each time, and the on-line efficiency of the front-end resource is improved.
The technical solutions provided by the embodiments of the present application are described in detail below with reference to the accompanying drawings.
It should be noted that: like reference numerals refer to like objects in the following figures and embodiments, and thus, once an object is defined in one figure or embodiment, further discussion thereof is not required in subsequent figures and embodiments.
Fig. 1 is a schematic structural diagram of a data processing system according to an embodiment of the present application. As shown in fig. 1, the system includes: a service node 11 and a storage node 12.
In the present embodiment, the number of the storage nodes 12 may be 1 or more. Plural means 2 or more. The storage node 12 may be a software module, an application, a service, or a physical device that supports data storage. The storage nodes 12 may deploy databases for storing front-end resources. The plurality of storage nodes 12 may be deployed on different physical machines, or may be deployed in different containers or Virtual Machines (VMs). Of course, these containers or virtual machines may be deployed on the same physical machine, or may be deployed on multiple different physical machines. Of course, the storage nodes 12 may be deployed on different physical machines, or may be deployed in different containers or virtual machines. These containers or virtual machines may be deployed on the same physical machine or on multiple different physical machines.
In this embodiment, the number of service nodes 12 may be 1 or more. The service node 12 may respond to the service request from the terminal device, and the computer device providing the service related to the user request for the user generally has the capability of undertaking and securing the service.
Service node 12 may be a software module, application, service, or a physical device with object migration functionality. Of course, the plurality of service nodes 12 may be deployed on different physical machines, or may be deployed in different containers or virtual machines. These containers or virtual machines may be deployed on the same physical machine or on multiple different physical machines.
In this embodiment, the different physical machines may be connected wirelessly or by wire. Optionally, different physical machines may be communicatively connected through a mobile network, and accordingly, the network format of the mobile network may be any one of 2G (gsm), 2.5G (gprs), 3G (WCDMA, TD-SCDMA, CDMA2000, UTMS), 4G (LTE), 4G + (LTE +), 5G, WiMax, and the like. Optionally, different physical machines may also be connected through bluetooth, WiFi, infrared, etc. communication.
In this embodiment, the storage node 12 may deploy a database. The storage node 12 may store front-end resources. The front-end resource refers to a resource on which a rendering front-end UI interface depends, and includes: pictures, text data, scripts to render UI interfaces, and the like. The script for rendering the UI interface may be javascript (js) script or Cascading Style Sheets (CSS) script.
The front-end Resource has a network address, which may also be referred to as a Uniform Resource Locator (URL). The network address is unique for a page. But the front-end resource corresponding to the page may be modified or updated periodically or aperiodically. In this embodiment, the storage node 12 further maintains a corresponding relationship between the version number of the front-end resource and the network address.
In this embodiment, the front-end developer may distribute the front-end resource of the new version to the storage node 12 after the front-end resource of the new version is developed. Correspondingly, the version number of the front-end resource is updated correspondingly. Maintenance personnel of the storage node 12 may modify the version number of the front-end resource when the front-end resource is updated. For the storage node 12, in response to the version number update operation, the correspondence between the version number of the front-end resource and the network address maintained by the storage node may be updated to a new version number.
In this embodiment, the service node 11 maintains a code for invoking a front-end resource, and the service node 11 runs the code to invoke the front-end resource, so as to provide a service related to a page access request for a user. Alternatively, the code that calls the front-end resource may serve as a template. When the service node 11 calls the front-end resource, it needs to specify the version number of the front-end resource to be called, that is, the version number of the front-end resource to be called needs to be obtained during the running process of the code calling the front-end resource.
In order to refresh the version number in the calling front-end resource code in time and bring the front-end resource of a new version on line in time when the version number in the storage node 12 is updated, in this embodiment, the version number is stored in the memory of the service node 11, a variable parameter is set in the calling front-end resource code, and the variable parameter is used to identify the version number of the front-end resource. Correspondingly, in the process of running the calling front-end resource code, the service node 11 can access the memory of the service node 11, obtain the version number of the front-end resource stored in the memory, assign the version number to the variable parameter which identifies the version number of the front-end resource in the calling front-end resource code, and realize the quick switching of the version number in the calling front-end resource code. In this way, the service node 11 may obtain the front-end resource corresponding to the version number from the storage node based on the version number assigned to the variable parameter in the process of running and calling the front-end resource code.
Based on this, in the present embodiment, the service node 11 may modify the version number of the front-end resource stored in the memory to a new version number in the case where the version number of the front-end resource in the storage node 12 is updated.
In this embodiment, the specific implementation manner in which the service node 11 determines that the version number of the front-end resource in the storage node 12 is updated is not limited. The following is an exemplary description in connection with several alternative embodiments.
Embodiment 1: the service node 11 may provide a versioning function. Alternatively, the service node 11 may provide an information configuration interface. Maintenance personnel of the service node 11 can modify the version number of the front-end resource in the memory through the information configuration interface. The service node 11 may monitor whether a configuration operation for a front-end resource version number occurs; and determining that the version number of the front-end resource in the storage node is updated under the condition that the configuration operation aiming at the version number of the front-end resource is monitored. Accordingly, the service node 11 may, in response to the configuration operation for the front-end resource version number, obtain the configured version number as a new version number, and modify the front-end resource version number in the memory to the new version number.
Optionally, the memory may store the front-end resource version number in a Key-Value (KV) table. The service node 11 may also provide a keyword retrieval function. The maintainer of the service node 11 can index the target row corresponding to the front-end resource version number in the KV table through the keyword, and modify the attribute value in the target row to a new version number. Accordingly, the service node 11 may respond to a search term input operation, and obtain a target search term identifying a version number; searching in a key value table in the memory by using the target search word so as to index a target row corresponding to the publication number; further, the service node 11 may modify the attribute value in the target row to a new version number in response to the modification operation for the attribute value in the target row.
Embodiment 2: the service node 11 may provide a version number refresh function. Optionally, the service node 11 may provide a refresh control. The maintenance personnel of the service node 11 may trigger the refresh control to modify the version number of the front-end resource in the memory. Accordingly, the service node 11 may monitor whether a refresh operation for the front-end resource version number occurs; under the condition that the refreshing operation aiming at the version number of the front-end resource is monitored, the updating of the version number of the front-end resource in the storage node 12 is determined; and obtains a new version number from the correspondence between the version number of the front-end resource and the network address maintained by the storage node 12.
Embodiment 3: the service node 11 may access the corresponding relationship between the version number of the front-end resource and the network address maintained by the storage node 12 according to the set refresh cycle; when detecting that the version number in the corresponding relationship between the version number of the front-end resource maintained by the storage node 12 and the network address is different from the version number in the memory, determining that the version number of the front-end resource in the storage node 12 is updated; and stores the version number obtained from the correspondence between the version number of the front-end resource and the network address maintained by the node 12 as a new version number.
After the version number of the service node 12 in the memory is modified to a new version number, the service node 11 may respond to the page access request and obtain the new version number from the memory when receiving the page access request; and assigning the new version number to a variable parameter which identifies the version number of the front-end resource in the calling front-end resource code. Further, the service node 11 may obtain, based on the new version number, the front-end resource corresponding to the new version number from the storage node 12 in the process of running the code for calling the front-end resource.
Optionally, the service node 11 may match the new version number in the correspondence between the version number of the front-end resource and the network address to determine a target network address corresponding to the new version number; and downloads the front-end resource corresponding to the target network address from the storage node 12 as the front-end resource corresponding to the new version number.
In some embodiments, the page is a Server Side Render (SSR) page. Accordingly, as shown in fig. 1, the service node 11 may render the page based on the front-end resource corresponding to the new version number. Optionally, the service node 11 may execute the code for rendering the page, and generate an HTML code of the page to be rendered according to the set layout format; the service node 11 then provides the rendered HTML code corresponding to the page to the terminal device that issued the page access request. Further, the terminal device may render a page on the display screen based on the HTML code.
In other embodiments, the Page is a Single Page Web Application (SPA) Page. Accordingly, as shown in fig. 1, the service node 11 may provide the front-end resource corresponding to the new version number to the terminal device. The terminal equipment can receive the front-end resource corresponding to the new version number and render the page on the display screen based on the front-end resource corresponding to the new version number.
The terminal equipment is a smart phone, a tablet personal computer, a personal computer, wearable equipment and the like. For the communication method between the terminal device and the service node 11, reference may be made to the related contents of the communication methods between the service node 11 and the storage node 12, which are not described herein again.
In the data processing system provided in this embodiment, the server device modifies the version number of the front-end resource stored in the memory to a new version number when the version number of the front-end resource is updated; in the process of responding to the page access request, a new version number can be obtained from the memory; assigning the version number to a variable parameter used for marking the version number of the front-end resource in the calling front-end resource code; therefore, in the process of operating and calling the front-end resource code, the server-side equipment can acquire the front-end resource corresponding to the new version number from the storage node based on the new version number, so that the front-end resource can be on line, the version number in the calling front-end resource code does not need to be manually searched when the new version number is updated each time, and the on-line efficiency of the front-end resource is improved.
It should be noted that, when there are multiple service nodes 11, a single service node may refresh the version number in the memory, verify the correctness of the new version front-end resource in real time, and globally refresh the version numbers in the memories of other service nodes 11 when the correctness of the new version front-end resource passes the verification, which is helpful to avoid the possible problems caused by global refresh. E.g., global errors, etc.
In addition to the system embodiments provided in the foregoing embodiments, the embodiments of the present application also provide a front-end resource online method, which is exemplarily described below.
Fig. 2 is a flowchart illustrating a front-end resource online method according to an embodiment of the present disclosure. As shown in fig. 2, the method includes:
201. under the condition that the version number of the front-end resource in the storage node is updated, modifying the version number of the front-end resource stored in the memory into a new version number; the storage node maintains the corresponding relation between the version number of the front-end resource and the network address.
202. And responding to the page access request, and acquiring a new version number from the memory.
203. And assigning the new version number to a variable parameter which identifies the version number of the front-end resource in the calling front-end resource code.
204. And in the process of operating and calling the front-end resource code, acquiring the front-end resource corresponding to the new version number from the storage node based on the new version number so as to realize the on-line of the front-end resource.
In this embodiment, the storage node may deploy a database. The storage node may store front-end resources. For the description of the front-end resource, reference may be made to the related contents of the above system embodiments, and details are not repeated herein.
The front-end Resource has a network address, which may also be referred to as a Uniform Resource Locator (URL). The network address is unique for a page. But the front-end resource corresponding to the page may be modified or updated periodically or aperiodically. In this embodiment, the storage node 12 further maintains a corresponding relationship between the version number of the front-end resource and the network address.
In this embodiment, a front-end developer can distribute a new version of front-end resources to a storage node after the front-end developer completes the development of the new version of front-end resources. Correspondingly, the version number of the front-end resource is updated correspondingly. And the maintenance personnel of the storage node can modify the version number of the front-end resource when the front-end resource is updated. For the storage node, in response to the version number updating operation, the corresponding relationship between the version number of the front-end resource and the network address maintained by the storage node can be updated to a new version number.
In this embodiment, the device for executing the front-end resource on-line method maintains a code for calling the front-end resource. The equipment runs the code to call the front-end resource and provides the page access request related service for the user. When the front-end resource is called, the version number of the front-end resource to be called needs to be determined, that is, the version number of the front-end resource to be called needs to be obtained during the running process of the code calling the front-end resource.
In order to refresh the version number in the calling front-end resource code in time and bring the front-end resource of a new version on line in time when the version number in the storage node is updated, in this embodiment, the version number is stored in the memory of the server device, a variable parameter is set in the calling front-end resource code, and the variable parameter is used to identify the version number of the front-end resource. Correspondingly, in the process of operating and calling the front-end resource code, the memory of the server-side equipment can be accessed, the version number of the front-end resource stored in the memory is obtained, and the version number is assigned to the variable parameter which identifies the version number of the front-end resource in the calling front-end resource code, so that the quick switching of the version number in the calling front-end resource code is realized. Therefore, in the process of operating and calling the front-end resource code, the front-end resource corresponding to the version number can be obtained from the storage node based on the version number assigned to the variable parameter.
Based on this, in step 201, the version number of the front-end resource stored in the memory may be modified to a new version number in the case that the version number of the front-end resource in the storage node is updated.
In this embodiment, a specific implementation manner of determining that the version number of the front-end resource in the storage node is updated is not limited. The following is an exemplary description in connection with several alternative embodiments.
Embodiment 1: monitoring whether configuration operation aiming at the front-end resource version number occurs; and determining that the version number of the front-end resource in the storage node is updated under the condition that the configuration operation aiming at the version number of the front-end resource is monitored. Correspondingly, the configured version number can be obtained as a new version number in response to the configuration operation aiming at the front-end resource version number, and the front-end resource version number in the memory is modified into the new version number.
Optionally, the memory may store the front-end resource version number in a Key-Value (KV) table, and may also provide a Key retrieval function. Correspondingly, an optional implementation manner of modifying the version number of the front-end resource in the memory into a new version number is as follows: responding to the input operation of the search term, and acquiring a target search term of the identification version number; searching in a key value table in the memory by using the target search word so as to index a target row corresponding to the publication number; further, the attribute values in the target row may be modified to a new version number in response to a modification operation directed to the attribute values in the target row.
Embodiment 2: monitoring whether a refreshing operation aiming at the front-end resource version number occurs; under the condition that the refreshing operation aiming at the version number of the front-end resource is monitored, the updating of the version number of the front-end resource in the storage node is determined; and acquiring a new version number from the corresponding relation between the version number of the front-end resource maintained by the storage node and the network address.
Embodiment 3: according to a set refreshing cycle, accessing a corresponding relation between the version number of the front-end resource maintained by the storage node and the network address; when detecting that the version number in the corresponding relation between the version number of the front-end resource maintained by the storage node and the network address is different from the version number in the memory, determining that the version number of the front-end resource in the storage node is updated; and storing the version number obtained from the corresponding relationship between the version number of the front-end resource maintained by the node and the network address as a new version number.
Further, after the version number in the memory is modified to a new version number, in the case of receiving a page access request, in step 202, in response to the page access request, a new version number may be obtained from the memory; and in step 203, the new version number is assigned to a variable parameter that identifies the version number of the front-end resource in the calling front-end resource code. Further, in step 204, in the process of running the code for calling the front-end resource, the front-end resource corresponding to the new version number may be obtained from the storage node based on the new version number.
Optionally, the new version number may be matched in the correspondence between the version number of the front-end resource and the network address to determine the target network address corresponding to the new version number; and downloading the front-end resource corresponding to the target network address from the storage node as the front-end resource corresponding to the new version number.
In some embodiments, the page is a Server Side Render (SSR) page. Accordingly, the page can be rendered based on the front-end resource corresponding to the new version number; and providing the HTML codes corresponding to the rendered pages to the terminal equipment sending the page access request so that the terminal equipment can render the pages on the display screen based on the HTML codes.
In other embodiments, the Page is a Single Page Web Application (SPA) Page. Accordingly, the front-end resource corresponding to the new version number can be provided for the terminal device. The terminal equipment can receive the front-end resource corresponding to the new version number and render the page on the display screen based on the front-end resource corresponding to the new version number.
In this embodiment, when the version number of the front-end resource is updated, the version number of the front-end resource stored in the memory may be modified to a new version number; in the process of responding to the page access request, a new version number can be obtained from the memory; assigning the version number to a variable parameter used for marking the version number of the front-end resource in the calling front-end resource code; therefore, in the process of operating and calling the front-end resource code, the front-end resource corresponding to the new version number can be obtained from the storage node based on the new version number, the front-end resource can be on line, the version number in the calling front-end resource code does not need to be manually searched when the new version number is updated every time, and the on-line efficiency of the front-end resource is improved.
It should be noted that the execution subjects of the steps of the methods provided in the above embodiments may be the same device, or different devices may be used as the execution subjects of the methods. For example, the execution subjects of steps 201 and 202 may be device a; for another example, the execution subject of step 201 may be device a, and the execution subject of step 202 may be device B; and so on.
In addition, in some of the flows described in the above embodiments and the drawings, a plurality of operations are included in a specific order, but it should be clearly understood that the operations may be executed out of the order presented herein or in parallel, and the sequence numbers of the operations, such as 201, 202, etc., are merely used for distinguishing different operations, and the sequence numbers do not represent any execution order per se. Additionally, the flows may include more or fewer operations, and the operations may be performed sequentially or in parallel.
Accordingly, embodiments of the present application also provide a computer-readable storage medium storing computer instructions, which, when executed by one or more processors, cause the one or more processors to perform the steps of the front-end resource online method.
Fig. 3 is a schematic structural diagram of a server device according to an embodiment of the present application. As shown in fig. 3, the server device includes: a memory 30a and a processor 30 b. The storage 30a includes a memory 301 and other storage media 302; the other storage medium 30a2 is for storing computer programs; and a memory 30a1 for storing a front-end resource version number.
The processor 30b is coupled to the memory 30a for executing a computer program for: under the condition that the version number of the front-end resource in the storage node is updated, modifying the version number of the front-end resource stored in the memory into a new version number; the storage node maintains the corresponding relation between the version number of the front-end resource and the network address; in response to the page access request, a new version number is obtained from the memory 301; assigning the new version number to a variable parameter which identifies the version number of the front-end resource in the calling front-end resource code; and acquiring the front-end resource corresponding to the new version number from the storage node based on the new version number in the process of operating and calling the front-end resource code so as to realize the on-line of the front-end resource.
In some embodiments, the processor 30b is further configured to: monitoring whether configuration operation aiming at the front-end resource version number occurs; under the condition that configuration operation aiming at the version number of the front-end resource is monitored, the update of the version number of the front-end resource in the storage node is determined; and acquiring the configured version number as a new version number in response to the configuration operation for the front-end resource version number.
Further, when modifying the front-end resource version number stored in the memory to a new version number, the processor 30b is specifically configured to: responding to the input operation of the search term, and acquiring a target search term of the identification version number; searching in a key value table in the memory 301 by using the target search word to index a target row corresponding to the publication number; and modifying the attribute values in the target row to a new version number in response to a modification operation directed to the attribute values in the target row.
In other embodiments, the processor 30b is further configured to: monitoring whether a refreshing operation aiming at the front-end resource version number occurs; under the condition that the refreshing operation aiming at the version number of the front-end resource is monitored, the updating of the version number of the front-end resource in the storage node is determined; and acquiring a new version number from the corresponding relation between the version number of the front-end resource maintained by the storage node and the network address.
In still other embodiments, the processor 30b is further configured to: according to a set refreshing cycle, accessing a corresponding relation between the version number of the front-end resource maintained by the storage node and the network address; when detecting that the version number in the corresponding relation between the version number of the front-end resource maintained by the storage node and the network address is different from the version number in the memory, determining that the version number of the front-end resource in the storage node is updated; and the version number obtained from the corresponding relation between the version number of the front-end resource maintained by the storage node and the network address is used as a new version number.
In some other embodiments, when the processor 30b acquires the front-end resource corresponding to the new version number from the storage node, it is specifically configured to: matching the new version number in the corresponding relation between the version number of the front-end resource and the network address to determine a target network address corresponding to the new version number; and downloading the front-end resource corresponding to the target network address from the storage node as the front-end resource corresponding to the new version number.
Optionally, the processor 30b is further configured to: rendering the page based on the front-end resource corresponding to the new version number; the HTML codes corresponding to the rendered pages are provided for the terminal equipment sending the page access request through the communication component 30c, so that the terminal equipment can render the pages on the display screen based on the HTML codes; or, the front-end resource corresponding to the new version number is provided to the terminal device through the communication component 30c, so that the terminal device renders a page on the display screen based on the front-end resource corresponding to the new version number.
In some optional embodiments, as shown in fig. 3, the server device may further include: power supply assembly 30d, etc. If the server-side device is a terminal device such as a computer, the method may further include: display 30e, audio component 30f, and the like. Only some of the components are schematically shown in fig. 3, which does not mean that the server device must include all of the components shown in fig. 3, nor that the terminal device only includes the components shown in fig. 3.
In embodiments of the present application, the memory is used to store computer programs and may be configured to store other various data to support operations on the device on which it is located. Wherein the processor may execute a computer program stored in the memory to implement the corresponding control logic. The memory may be implemented by any type or combination of volatile or non-volatile memory devices, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
In the embodiments of the present application, the processor may be any hardware processing device that can execute the above described method logic. Alternatively, the processor may be a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), or a Micro Controller Unit (MCU); programmable devices such as Field-Programmable Gate arrays (FPGAs), Programmable Array Logic devices (PALs), General Array Logic devices (GAL), Complex Programmable Logic Devices (CPLDs), etc. may also be used; or Advanced Reduced Instruction Set (RISC) processors (ARM), or System On Chips (SOC), etc., but is not limited thereto.
In embodiments of the present application, the communication component is configured to facilitate wired or wireless communication between the device in which it is located and other devices. The device in which the communication component is located can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, 4G, 5G or a combination thereof. In an exemplary embodiment, the communication component receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component may also be implemented based on Near Field Communication (NFC) technology, Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, or other technologies.
In the embodiment of the present application, the display assembly may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the display assembly includes a touch panel, the display assembly may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation.
In embodiments of the present application, a power supply component is configured to provide power to various components of the device in which it is located. The power components may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device in which the power component is located.
In embodiments of the present application, the audio component may be configured to output and/or input audio signals. For example, the audio component includes a Microphone (MIC) configured to receive an external audio signal when the device in which the audio component is located is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal may further be stored in a memory or transmitted via a communication component. In some embodiments, the audio assembly further comprises a speaker for outputting audio signals. For example, for devices with language interaction functionality, voice interaction with a user may be enabled through an audio component, and so forth.
In the server device provided in this embodiment, the version number of the front-end resource stored in the memory is modified to a new version number when the version number of the front-end resource is updated; in the process of responding to the page access request, a new version number can be obtained from the memory; assigning the version number to a variable parameter used for marking the version number of the front-end resource in the calling front-end resource code; therefore, in the process of operating and calling the front-end resource code, the server-side equipment can acquire the front-end resource corresponding to the new version number from the storage node based on the new version number, so that the front-end resource can be on line, the version number in the calling front-end resource code does not need to be manually searched when the new version number is updated each time, and the on-line efficiency of the front-end resource is improved.
It should be noted that, the descriptions of "first", "second", etc. in this document are used for distinguishing different messages, devices, modules, etc., and do not represent a sequential order, nor limit the types of "first" and "second" to be different.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above description is only an example of the present application and is not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (10)

1. A data processing system, comprising: a service node and a storage node; wherein the content of the first and second substances,
the storage node stores front-end resources; maintaining the corresponding relation between the version number of the front-end resource and the network address; responding to the version number updating operation, and modifying the version number in the corresponding relation into a new version number;
the service node is used for modifying the version number of the front-end resource stored in the memory into a new version number under the condition that the version number of the front-end resource in the storage node is updated; responding to a page access request, and acquiring a new version number from the memory; assigning the new version number to a variable parameter which identifies the version number of the front-end resource in the calling front-end resource code; and acquiring the front-end resource corresponding to the new version number from the storage node based on the new version number in the process of operating the calling front-end resource code.
2. A front-end resource online method is characterized by comprising the following steps:
under the condition that the version number of the front-end resource in the storage node is updated, modifying the version number of the front-end resource stored in the memory into a new version number; the storage node maintains the corresponding relation between the version number of the front-end resource and the network address;
responding to a page access request, and acquiring a new version number from the memory;
assigning the new version number to a variable parameter which identifies the version number of the front-end resource in the calling front-end resource code;
and acquiring the front-end resource corresponding to the new version number from the storage node based on the new version number in the process of operating the front-end resource calling code so as to realize the on-line of the front-end resource.
3. The method of claim 2, further comprising:
monitoring whether configuration operation aiming at the front-end resource version number occurs; under the condition that configuration operation aiming at the version number of the front-end resource is monitored, the update of the version number of the front-end resource in the storage node is determined;
and responding to the configuration operation aiming at the front-end resource version number, and acquiring the configured version number as the new version number.
4. The method of claim 3, wherein modifying the version number of the front-end resource stored in the memory to a new version number comprises:
responding to the input operation of the search term, and acquiring a target search term of the identification version number;
searching in a key value table in a memory by using the target search word so as to index a target row corresponding to the publication number;
and in response to the modification operation aiming at the attribute value in the target row, modifying the attribute value in the target row into a new version number.
5. The method of claim 2, further comprising:
monitoring whether a refreshing operation aiming at the front-end resource version number occurs; under the condition that the refreshing operation aiming at the version number of the front-end resource is monitored, the updating of the version number of the front-end resource in the storage node is determined;
and acquiring the new version number from the corresponding relation between the version number of the front-end resource maintained by the storage node and the network address.
6. The method of claim 2, further comprising:
according to a set refreshing cycle, accessing the corresponding relation between the version number of the front-end resource maintained by the storage node and the network address;
when detecting that the version number in the corresponding relationship between the version number of the front-end resource maintained by the storage node and the network address is different from the version number in the memory, determining that the version number of the front-end resource in the storage node is updated;
and the version number obtained from the corresponding relation between the version number of the front-end resource maintained by the storage node and the network address is used as the new version number.
7. The method of claim 2, wherein the obtaining, from the storage node, a front-end resource corresponding to the new version number based on the new version number comprises:
matching the new version number in the corresponding relation between the version number of the front-end resource and the network address to determine a target network address corresponding to the new version number;
and downloading the front-end resource corresponding to the target network address from the storage node as the front-end resource corresponding to the new version number.
8. The method of any of claims 2-7, further comprising:
rendering a page based on the front-end resource corresponding to the new version number; providing an HTML code corresponding to the rendered page to the terminal equipment which sends the page access request, so that the terminal equipment renders the page on a display screen based on the HTML code;
alternatively, the first and second electrodes may be,
and providing the front-end resource corresponding to the new version number for the terminal equipment to render a page on a display screen based on the front-end resource corresponding to the new version number.
9. A server-side device, comprising: a memory and a processor; wherein the memory comprises a memory and other storage media; the other storage medium is used for storing a computer program; the memory is used for storing the front-end resource version number;
the processor is coupled to the memory for executing the computer program for performing the steps of the method of any of claims 2-8.
10. A computer-readable storage medium having stored thereon computer instructions, which, when executed by one or more processors, cause the one or more processors to perform the steps of the method of any one of claims 2-8.
CN202011165216.5A 2020-10-27 2020-10-27 Front-end resource online method, equipment, system and storage medium Pending CN112346761A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011165216.5A CN112346761A (en) 2020-10-27 2020-10-27 Front-end resource online method, equipment, system and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011165216.5A CN112346761A (en) 2020-10-27 2020-10-27 Front-end resource online method, equipment, system and storage medium

Publications (1)

Publication Number Publication Date
CN112346761A true CN112346761A (en) 2021-02-09

Family

ID=74360267

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011165216.5A Pending CN112346761A (en) 2020-10-27 2020-10-27 Front-end resource online method, equipment, system and storage medium

Country Status (1)

Country Link
CN (1) CN112346761A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112883254A (en) * 2021-03-23 2021-06-01 浙江网商银行股份有限公司 Resource processing system, resource processing method and device

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104133685A (en) * 2014-08-05 2014-11-05 广州唯品会网络技术有限公司 Method and system for front-end development of website
CN106489145A (en) * 2015-12-28 2017-03-08 华为技术有限公司 The access method of web site, device and Web site system
CN106775830A (en) * 2016-11-25 2017-05-31 魏熙柠 A kind of web application page script resource automatic update method and system
CN106897053A (en) * 2016-07-08 2017-06-27 阿里巴巴集团控股有限公司 A kind of code dissemination method and device
CN107087029A (en) * 2017-04-25 2017-08-22 广州市诚毅科技软件开发有限公司 A kind of method being managed collectively on web front-end resource file version with issuing
CN108959455A (en) * 2018-06-15 2018-12-07 上海陆家嘴国际金融资产交易市场股份有限公司 Single page Web application implementation method, device, computer equipment and storage medium
US10379838B1 (en) * 2017-06-28 2019-08-13 Amazon Technologies, Inc. Update and rollback of code and API versions
CN110244975A (en) * 2018-03-08 2019-09-17 北京京东尚科信息技术有限公司 A kind of generation method and device of static resource version number
CN111045721A (en) * 2019-10-29 2020-04-21 平安科技(深圳)有限公司 Method, device and storage medium for dynamically modifying Nginx configuration parameters
CN111191167A (en) * 2019-12-23 2020-05-22 京信通信系统(中国)有限公司 Page resource updating method and device, computer equipment and storage medium

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104133685A (en) * 2014-08-05 2014-11-05 广州唯品会网络技术有限公司 Method and system for front-end development of website
CN106489145A (en) * 2015-12-28 2017-03-08 华为技术有限公司 The access method of web site, device and Web site system
CA2954294A1 (en) * 2015-12-28 2017-06-28 Huibin Ma Website access method, apparatus, and website system
CN106897053A (en) * 2016-07-08 2017-06-27 阿里巴巴集团控股有限公司 A kind of code dissemination method and device
CN106775830A (en) * 2016-11-25 2017-05-31 魏熙柠 A kind of web application page script resource automatic update method and system
CN107087029A (en) * 2017-04-25 2017-08-22 广州市诚毅科技软件开发有限公司 A kind of method being managed collectively on web front-end resource file version with issuing
US10379838B1 (en) * 2017-06-28 2019-08-13 Amazon Technologies, Inc. Update and rollback of code and API versions
CN110244975A (en) * 2018-03-08 2019-09-17 北京京东尚科信息技术有限公司 A kind of generation method and device of static resource version number
CN108959455A (en) * 2018-06-15 2018-12-07 上海陆家嘴国际金融资产交易市场股份有限公司 Single page Web application implementation method, device, computer equipment and storage medium
CN111045721A (en) * 2019-10-29 2020-04-21 平安科技(深圳)有限公司 Method, device and storage medium for dynamically modifying Nginx configuration parameters
CN111191167A (en) * 2019-12-23 2020-05-22 京信通信系统(中国)有限公司 Page resource updating method and device, computer equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
STARKWANG: "实现前端资源增量式更新的一种思路", pages 1 - 4, Retrieved from the Internet <URL:https://zhuanlan.zhihu.com/p/23218754> *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112883254A (en) * 2021-03-23 2021-06-01 浙江网商银行股份有限公司 Resource processing system, resource processing method and device

Similar Documents

Publication Publication Date Title
CN107957957B (en) Test case obtaining method and device
WO2018223717A1 (en) Webpage front-end testing method, device, system, apparatus and readable storage medium
EP3333704A1 (en) Method and apparatus for repairing kernel vulnerability
CN107133165B (en) Browser compatibility detection method and device
CN106933887B (en) Data visualization method and device
CN110968314B (en) Page generation method and device
CN111488155B (en) Coloring language translation method
CN112347404A (en) SPA page rendering method, device and system and storage medium
CN112016283A (en) Form generation method and device
CN114840214A (en) Program compiling and starting method, device and storage medium
CN112699044B (en) Pressure testing method, equipment and storage medium
CN110851211A (en) Method, apparatus, electronic device, and medium for displaying application information
CN114115904A (en) Information processing method, information processing apparatus, server, and storage medium
CN114547514A (en) Dynamic rendering method, device, equipment and medium for components
CN112346761A (en) Front-end resource online method, equipment, system and storage medium
CN109977317B (en) Data query method and device
CN111142990A (en) WeChat applet page display method and device and storage medium
CN110955449A (en) Method and device for releasing gray scale of client
CN111427760A (en) Page testing method, device, equipment and storage medium
CN114168183A (en) Front-end resource information processing method, device, equipment and storage medium
CN112069057A (en) Code testing method, device, apparatus and storage medium
CN110851746B (en) Crawler seed generation method and device
CN110955813A (en) Data crawling method and device
CN111078574A (en) Method and device for generating influence analysis report
CN111078905A (en) Data processing method, device, medium and 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