CN112883254A - Resource processing system, resource processing method and device - Google Patents

Resource processing system, resource processing method and device Download PDF

Info

Publication number
CN112883254A
CN112883254A CN202110310514.7A CN202110310514A CN112883254A CN 112883254 A CN112883254 A CN 112883254A CN 202110310514 A CN202110310514 A CN 202110310514A CN 112883254 A CN112883254 A CN 112883254A
Authority
CN
China
Prior art keywords
resource
initial
version number
webpage
index
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
CN202110310514.7A
Other languages
Chinese (zh)
Inventor
彭刚强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang eCommerce Bank Co Ltd
Original Assignee
Zhejiang eCommerce Bank 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 Zhejiang eCommerce Bank Co Ltd filed Critical Zhejiang eCommerce Bank Co Ltd
Priority to CN202110310514.7A priority Critical patent/CN112883254A/en
Publication of CN112883254A publication Critical patent/CN112883254A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the specification provides a resource processing system, a resource processing method and a resource processing device, wherein the resource processing system comprises a resource publishing platform, a resource storage platform and a resource processing module, wherein the resource publishing platform is configured to receive a publishing request carrying a webpage resource, determine a corresponding target resource version number for the webpage resource and a resource index based on the publishing request, and publish the webpage resource carrying the target resource version number and the resource index to the resource storage platform; the resource storage platform is configured to receive a resource acquisition request sent by a resource acquisition terminal through a resource service platform, and based on the resource acquisition request, the resource storage platform returns the stored resource index to the resource acquisition terminal through the resource service platform; the resource obtaining terminal is configured to obtain the corresponding webpage resource from the resource storage platform based on the resource index.

Description

Resource processing system, resource processing method and device
Technical Field
The embodiment of the specification relates to the technical field of computers, in particular to a resource processing system. One or more embodiments of the present specification also relate to a resource processing method, a resource processing apparatus, a computing device, and a computer-readable storage medium.
Background
With the development of the internet, web pages developed at the front end are more and more complex, the content of a website is updated every moment, a user opens the same website at different moments every day, the viewed content is different, and how to load the website in a browser enables the browser to quickly and accurately obtain web page resources corresponding to the website to be loaded, so that the updating of the website becomes a technical problem which needs to be solved urgently.
Disclosure of Invention
In view of this, the present specification provides a resource processing system. One or more embodiments of the present disclosure also relate to a resource processing method, a resource processing apparatus, a computing device, and a computer-readable storage medium to solve the technical problems in the prior art.
According to a first aspect of embodiments herein, there is provided a resource processing system, comprising:
the resource publishing platform is configured to receive a publishing request carrying a webpage resource, determine a corresponding target resource version number for the webpage resource and the resource index based on the publishing request, and publish the webpage resource carrying the target resource version number and the resource index to the resource storage platform;
the resource storage platform is configured to receive a resource acquisition request sent by a resource acquisition terminal through a resource service platform, and based on the resource acquisition request, the resource storage platform returns the stored resource index to the resource acquisition terminal through the resource service platform;
the resource obtaining terminal is configured to obtain the corresponding webpage resource from the resource storage platform based on the resource index.
According to a second aspect of the embodiments of the present specification, there is provided a resource processing method applied to a resource publishing platform, including:
receiving a release request carrying a webpage resource, and determining a corresponding target resource version number for the webpage resource and a resource index based on the release request;
and issuing the webpage resource carrying the target resource version number and the resource index to a resource storage platform.
According to a third aspect of embodiments herein, there is provided a resource processing apparatus including:
a resource publishing platform configured to:
receiving a release request carrying a webpage resource, and determining a corresponding target resource version number for the webpage resource and a resource index based on the release request;
and issuing the webpage resource carrying the target resource version number and the resource index to a resource storage platform.
According to a fourth aspect of embodiments herein, there is provided a computing device comprising:
a memory and a processor;
the memory is for storing computer-executable instructions, and the processor is for executing the computer-executable instructions, which when executed by the processor, implement the steps of the resource handling method.
According to a fifth aspect of embodiments herein, there is provided a computer-readable storage medium storing computer-executable instructions that, when executed by a processor, implement the steps of the resource processing method.
One embodiment of the present specification implements a resource processing system, a resource processing method, and a device, where the resource processing system includes a resource publishing platform configured to receive a publishing request carrying a web resource, determine a corresponding target resource version number for the web resource and a resource index based on the publishing request, and publish the web resource and the resource index carrying the target resource version number to a resource storage platform; the resource storage platform is configured to receive a resource acquisition request sent by a resource acquisition terminal through a resource service platform, and based on the resource acquisition request, the resource storage platform returns the stored resource index to the resource acquisition terminal through the resource service platform; the resource obtaining terminal is configured to obtain the corresponding webpage resource from the resource storage platform based on the resource index.
Specifically, in the process that the resource processing system publishes the new webpage resource by the resource publishing platform, the resource service platform is only used for forwarding the resource obtaining request and the resource index without any other operation, so that the resource publishing platform and the resource service platform are not coupled, the whole webpage resource publishing process is simple, the resource obtaining terminal can quickly and efficiently switch webpage versions based on the resource index, and user experience is improved.
Drawings
FIG. 1 is a diagram illustrating a web resource loading scheme according to an embodiment of the present disclosure;
FIG. 2 is a block diagram of a resource processing system according to an embodiment of the present disclosure;
FIG. 3 is a flowchart illustrating a process for implementing web resource acquisition based on a resource processing system according to an embodiment of the present specification;
FIG. 4 is a flow diagram of a resource processing method provided by an embodiment of the present specification;
fig. 5 is a schematic structural diagram of a resource processing apparatus according to an embodiment of the present specification;
fig. 6 is a block diagram of a computing device according to an embodiment of the present disclosure.
Detailed Description
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present description. This description may be embodied in many different forms and should not be construed as limited to the embodiments set forth herein, as those skilled in the art will be able to make and use the present disclosure without departing from the spirit and scope of the present disclosure.
The terminology used in the description of the one or more embodiments is for the purpose of describing the particular embodiments only and is not intended to be limiting of the description of the one or more embodiments. As used in one or more embodiments of the present specification and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used in one or more embodiments of the present specification refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It will be understood that, although the terms first, second, etc. may be used herein in one or more embodiments to describe various information, these information should not be limited by these terms. These terms are only used to distinguish one type of information from another. For example, a first can also be referred to as a second and, similarly, a second can also be referred to as a first without departing from the scope of one or more embodiments of the present description. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context.
First, the noun terms to which one or more embodiments of the present specification relate are explained.
The browser: software for displaying files, pictures and other information on the Internet or a local area network, and for enabling a user to perform interactive operations based on these files.
html (html): hypertext markup Language (Hypertext markup Language) unifies the format of documents on a network by using a series of tags to spread the documents across the Internet.
cs: the method comprises the following steps: cascading Style Sheets (Cascading Style Sheets), a computer language used to represent file styles such as html.
js: JavaScript is a lightweight, interpreted or just-in-time compiled programming language with function priority, is also a network scripting language, is commonly used for adding various dynamic functions to a webpage and providing a smoother and more attractive effect for a user, and normally js realizes the functions of the JavaScript by being embedded into html.
json: a lightweight computer data exchange format.
Resource: computer language data or files required for rendering a web page, including but not limited to: json data, js files, css files, html files, and the like.
oss: object Storage Service, Object Storage Service.
api: application Programming Interface, Application program Interface, is some predefined Interface, or refers to the convention for linking different parts of a software system.
In order to enable a user to quickly and accurately acquire real-time updated webpage resources at any time, the embodiment of the specification provides a technical scheme for loading the webpage resources.
Referring to fig. 1, fig. 1 illustrates a webpage resource loading scheme provided by an embodiment of the present specification.
Fig. 1 includes oss, a front-end publishing platform, a back-end server, and a version management system, where oss is an object storage system and is used to store front-end resources in a current scenario; the front-end publishing platform is used for publishing front-end resources to oss and related operations (for example, sending a resource update prompt to a version management system); the back-end server provides an api interface, and the functional end acquires data according to a scene; and the version management system is used for pushing the front-end version and the resources to the back-end server. Wherein, a resource is a resource in the above explanation.
In specific implementation, the oss, the front-end publishing platform, the back-end server and the version management system interact through the following steps.
Step 1.1: the front-end publishing platform packages the resources carried in the publishing request after receiving the publishing request, configures a resource version number for the packaged resources, and stores the packaged resources and the resource version number corresponding to the packaged resources to oss.
Specifically, the release request may be a release request generated by a developer by clicking a resource release button on a release interface of a front-end release platform, and after receiving the release request, the front-end release platform packages resources carried in the release request and configures a corresponding resource version number for the packaged resources (for example, the resource version number is 20190103).
In practical application, if the front-end publishing platform receives the resource for the first time, the version number can be set for the resource according to a preset resource format, for example, the version number of the resource is set for the resource in a date mode; and when the front-end publishing platform receives the resource publishing request again next time, the corresponding resource version number can be updated for the resource based on the current receiving time of the resource and the preset resource format of the resource version number.
Step 1.2: and the front-end release platform sends the resource version number corresponding to the packaged resource to the version management system.
Step 1.3: and after receiving the resource version number corresponding to the packaged resource sent by the front-end publishing platform, the version management system pushes the resource version number to the back-end server.
Step 2: and after receiving the resource version number, the back-end server stores the resource version number in a resource version file. Meanwhile, the back-end server receives a resource acquisition request sent by the browser, acquires the resource version number sent by the version management system based on the resource acquisition request, and analyzes a front-end resource path from a resource version file according to a preset format.
Specifically, the resource version number may be stored in the resource version file of the back-end server in a txt file form, or may be stored in the resource version file of the back-end server in a record form of the database.
In practical application, the predetermined format may be understood as a preset resource address format, a variable exists in the preset resource address, and in specific implementation, the latest resource version number is obtained from the resource version file, and the completed resource address can be obtained by performing variable replacement.
For example, the preset resource address format is: https: com, where, is a variable, if the latest resource version number is 20190103, then the backend server finally obtains the resource address as: https: // www.20190103.com.
And step 3: the back-end server sends the oss based on the parsed front-end resource path.
The front-end resource path may be understood as a resource address to be finally obtained by packing resources.
Step 3.1: and oss acquires the packaging resource corresponding to the resource version number of the front-end resource path based on the front-end resource path, and returns the packaging resource to the back-end server.
For example, the resource version number is 20190103, oss is based on the resource version number: 20190103 obtaining the packaged resource corresponding to the resource version number and returning to the back-end server.
And 4, step 4: and the back-end server sends the received packaging resource to the browser, and the browser performs webpage rendering and display based on the packaging resource.
In the embodiment of the present specification, when a front-end publishing platform receives a new web resource, the resource version number of the new web resource is pushed to a back-end server through a version management system, so that the back-end server can parse the resource version number when receiving a web resource acquisition request sent by a browser, so as to quickly and accurately acquire the latest web resource from oss to the browser through a parsed web resource address, and improve the web browsing experience of a user.
However, the above method for loading web page resources has the following problems:
first, since the backend server is a distributed system, the version management system needs to know all backend servers corresponding to the current application, so as to push the front-end resource information (version, path) in the following process, which may cause a burden on the version management system.
Second, there is a time difference between the version management system and the backend servers when synchronizing the resource version information (it is possible that a single backend server gets the latest resource version, and other backend servers are also old resource versions), which results in different users seeing different web page contents, or the same user seeing different web page contents (multiple page refreshing requests to different backend servers).
Thirdly, the version management system is a single point, which increases the overall instability of the system, and is liable to cause the version disorder of the front-end web page if the system is down or fails.
Based on this, in this specification, also provide a resource processing system. One or more embodiments of the present specification relate to a resource processing method, a resource processing apparatus, a computing device, and a computer-readable storage medium, which are described in detail in the following embodiments one by one.
Referring to fig. 2, fig. 2 is a schematic structural diagram illustrating a resource processing system according to an embodiment of the present disclosure.
Specifically, the resource processing system includes:
the resource publishing platform 202 is configured to receive a publishing request carrying a webpage resource, determine a corresponding target resource version number for the webpage resource and the resource index based on the publishing request, and publish the webpage resource carrying the target resource version number and the resource index to the resource storage platform 204;
the resource storage platform 204 is configured to receive a resource acquisition request sent by a resource acquisition terminal through a resource service platform 206, and return the stored resource index to the resource acquisition terminal 208 through the resource service platform 206 based on the resource acquisition request;
the resource obtaining terminal 208 is configured to obtain the corresponding web page resource from the resource storage platform 204 based on the resource index.
In practical applications, the resource publishing platform 202 may be understood as a front-end publishing platform of the foregoing embodiment, the resource storage platform 204 may be understood as an oss of the foregoing embodiment, the resource service platform 206 may be understood as a back-end server of the foregoing embodiment, and the resource obtaining terminal 208 may be understood as a browser of the foregoing embodiment, where specific functional explanations of the front-end publishing platform, the oss, the back-end server, and the browser may refer to the foregoing embodiment, and are not described herein.
In specific implementation, the resource publishing platform 202 is further configured to:
receiving an initial release request carrying initial webpage resources, and configuring an initial resource version number for the initial webpage resources based on the initial release request;
and establishing a resource index for the initial webpage resource so as to establish a corresponding relation between the resource index and the initial resource version number.
The initial webpage resource may be understood as a webpage resource which is firstly published to the resource publishing platform 202, and the initial publishing request may be understood as a request which is firstly published to the resource publishing platform 202.
Specifically, when the resource publishing platform 202 receives an initial publishing request carrying an initial web resource for the first time, a corresponding initial resource version number is configured for the initial web resource based on the initial publishing request, and a resource index is established for the initial web resource to establish a corresponding relationship between the resource index and the initial resource version number. By the method, the resource index is established for the webpage resource, so that the latest webpage resource can be quickly and accurately acquired based on the resource index in the subsequent process.
Optionally, the resource publishing platform 202 is further configured to:
and configuring the initial resource version number for the initial webpage resource based on the initial release request according to a preset version format.
The preset version format may be set according to practical applications, and this specification does not limit this, for example, a date format or a date + specific time format.
Specifically, since the initial web resource is a web resource received by the resource publishing platform 202 for the first time, the initial resource version number needs to be configured for the initial web resource based on a preset version format, for example, the preset version format is a date format, the current date of receiving the initial web resource may be used as the resource version number of the initial web resource, and if the current date is 20190103, 20190103 is used as the resource version number of the initial web resource.
In the embodiment of the description, a simple and convenient preset version format is used for setting a corresponding resource version number for an initial webpage resource, and subsequently, the resource version number of other received webpage resources can be conveniently updated and modified based on the resource version number format, so that the user experience is improved.
In specific implementation, when the resource publishing platform 202 has historical web resources and receives new web resources again, the version number of the received new web resources can be configured based on the resource version number corresponding to the historical web resources, so that the version numbers of all the web resources are realized in a preset version format, and the configuration is simple and orderly and is convenient for users to understand; the specific implementation mode is as follows:
the resource publishing platform 202, further configured to:
acquiring an initial resource version number corresponding to the resource index based on the release request, and configuring a target resource version number corresponding to the webpage resource based on the initial resource version number;
and updating the initial resource version number corresponding to the resource index into the target resource version number.
The initial resource version number may be understood as a historical latest resource version number in the resource publishing platform 202; and the resource index always has a corresponding relation with the latest resource version number.
Specifically, the resource publishing platform 202 obtains an initial resource version number, for example, 20190102, corresponding to the resource index based on the publishing request, and then configures a target resource version number corresponding to the newly received web resource based on the initial resource version number, that is, the resource publishing platform 202 configures a target resource version number, for example, 20190103, corresponding to the newly received web resource based on the format of the initial resource version number and the current time of the newly received web resource.
After configuring a corresponding target resource version number for the newly received webpage resource, establishing a corresponding relation for the target resource version number by the resource index, so that the resource index always has an association relation with a latest resource version number.
In the embodiment of the present specification, the target resource version number is configured for the newly received web resource based on the initial resource version number, so that all resource version numbers of the resource publishing platform 202 are uniform and convenient to understand, and in the case of receiving the new web resource, the association relationship between the resource index and the target resource version number is updated in time, and then the web resource to be acquired can be quickly and accurately acquired based on the resource index.
Optionally, the system further comprises:
the resource service platform 206 is configured to receive the resource obtaining request sent by the resource obtaining terminal 208, and send the resource obtaining request to the resource storage platform 204.
In practical application, the resource service platform 206 is only used as a forwarding service in the resource processing system provided in this specification, that is, receives a resource acquisition request sent by the resource acquisition terminal 208, and forwards the resource acquisition request to the resource storage platform 204, so as to implement association between the resource acquisition terminal 208 and the resource storage platform 204, thereby implementing decoupling between the resource service platform 206 and the resource publishing platform 202, and simplifying a front-end publishing process.
In particular implementation, the resource service platform 208 is further configured to:
receiving the resource index returned by the resource storage platform 204, and returning the resource index to the resource obtaining terminal 208.
In practical application, after sending the resource acquisition request to the resource storage platform 204, the resource service platform 208 receives the resource index returned by the resource storage platform 204, and returns the resource index to the resource acquisition terminal 208, so that the resource acquisition terminal 208 can accurately acquire the corresponding web resource from the resource storage platform 204 based on the resource index.
Furthermore, the resource acquisition terminal 208 is further configured to:
rendering the webpage based on the webpage resources, and displaying the rendered webpage.
Specifically, after the resource obtaining terminal 208 accurately obtains the corresponding web page resource from the resource storage platform 204 based on the resource index, the web page can be rendered based on the obtained web page resource, and the rendered web page is displayed to the user, so that the user can view the web page content of the latest version, and the user experience is improved.
In the resource processing system provided in the embodiment of the present specification, in the process of issuing a new webpage resource by the resource issuing platform, the resource service platform only performs forwarding processing on the resource acquisition request and the resource index, and no other operation is required, so that the resource issuing platform and the resource service platform are not coupled to each other, the whole webpage resource issuing process is simple, and the resource acquisition terminal can quickly and efficiently switch the webpage version based on the resource index, thereby improving user experience.
Referring to fig. 3, fig. 3 is a flowchart illustrating a process for implementing web page resource acquisition based on a resource processing system according to an embodiment of the present specification.
Taking a resource publishing platform as a front-end publishing platform, a resource storage platform as oss, a resource service platform as a back-end server, and a resource acquiring terminal as a browser as an example, a processing procedure of the resource processing system to acquire the web resource in the embodiment of the present specification is described in detail.
Step 302: the front-end publishing platform receives a publishing request carrying the webpage resources, determines corresponding target resource version numbers for the webpage resources and the resource indexes based on the publishing request, and publishes the webpage resources and the resource indexes carrying the target resource version numbers to oss.
For example, a corresponding target resource version number is determined for the web page resource based on the publication request: 20190103, and the valid resource version number pointed to by the pointer of the resource index is modified to the target resource version number: 20190103.
step 304: and after receiving the webpage resource carrying the target resource version number and the resource index pointed by the updating pointer, the oss updates the pointer pointing of the resource index stored in the oss and points the pointer of the resource index to the target resource version number.
For example, the resource version number pointed to before the pointer of the resource index is: 20190102, the resource version number pointed to before the pointer of the updated resource index is: 20190103.
step 306: the back-end server receives the resource acquisition request sent by the browser and forwards the resource acquisition request to the oss.
Step 308: the oss returns a resource index to the back-end server based on the resource acquisition request.
Step 310: the back-end server receives the resource index returned by the oss based on the resource acquisition request, and returns the resource index to the browser.
Step 312: and the browser acquires the webpage resources corresponding to the effective target resource version number corresponding to the resource index from oss based on the resource index, and renders and displays the webpage based on the webpage resources.
As can be seen from the above, the web resource obtaining process of the resource processing system in the embodiment of the present specification is as follows:
after receiving the release request, the front-end release platform releases the webpage resources carried in the release request to oss, switches versions, and then completes the webpage resource release process; when receiving a request for acquiring the webpage resources from the browser, the back-end server directly forwards the request to oss without any processing, so as to acquire the webpage resources. From the process, in the process of issuing the webpage resources by the front-end issuing platform, the back-end server is not required to execute any operation, the resource acquisition request is forwarded once when the resource acquisition request sent by the browser is processed, the back-end server is not required to perform any other operation, the whole process is simple, and the front-end issuing platform and the back-end server are completely separated and are not coupled. Actually, the forwarding resource acquisition request operation can also be simply and independently carried out, no processing logic is needed in the follow-up process of once deployment, and the complete decoupling of the front-end issuing platform and the back-end server is realized. If the webpage resource version of the front-end publishing platform needs to be modified subsequently, only index (namely resource index) file version information needs to be modified, and the instant switching of the webpage resource version can be realized, so that the method is simple, efficient and fast.
The front-end publishing platform can be a small tool (for example, idea and eclipse plug-ins, only what webpage resource version needs to be published to which oss needs to be configured), can be used as a very light-weight-level publishing platform, does not need any resource deployment, greatly simplifies the front-end publishing flow, and reduces the maintenance cost; and the system stability can be greatly improved by the method.
Referring to fig. 4, fig. 4 shows a flowchart of a resource processing method provided in an embodiment of the present specification, which is applied to a resource publishing platform, and specifically includes the following steps.
Step 402: receiving a release request carrying a webpage resource, and determining a corresponding target resource version number for the webpage resource and the resource index based on the release request.
Step 404: and issuing the webpage resource carrying the target resource version number and the resource index to a resource storage platform.
Optionally, the determining, based on the release request, a corresponding target resource version number for the web resource and the resource index includes:
acquiring an initial resource version number corresponding to the resource index based on the release request, and configuring a target resource version number corresponding to the webpage resource based on the initial resource version number;
and updating the initial resource version number corresponding to the resource index into the target resource version number.
Optionally, the method further comprises:
receiving an initial release request carrying initial webpage resources, and configuring an initial resource version number for the initial webpage resources based on the initial release request;
and establishing a resource index for the initial webpage resource so as to establish a corresponding relation between the resource index and the initial resource version number.
Optionally, the configuring, for the initial web page resource, an initial resource version number based on the initial publishing request includes:
and configuring the initial resource version number for the initial webpage resource based on the initial release request according to a preset version format.
In specific implementation, the steps of the resource processing method in the embodiments of this specification may refer to specific descriptions of functions of the resource publishing platform in the embodiments described above, and are not described herein again.
In practical application, the resource publishing platform can be understood as a front-end publishing platform, and is mainly used for receiving a publishing request carrying a webpage resource, updating a corresponding target resource version number for the webpage resource and a resource index based on the publishing request, and publishing the webpage resource and the resource index carrying the target resource version number to oss, so that the browser can quickly and accurately realize the acquisition of the webpage resource based on the acquired resource index under the condition that a back-end server receives a resource acquisition request sent by the browser.
Corresponding to the above method embodiment, this specification further provides a resource processing apparatus embodiment, and fig. 5 shows a schematic structural diagram of a resource processing apparatus provided in an embodiment of this specification. As shown in fig. 5, the apparatus includes:
a resource publishing platform 502 configured to:
receiving a release request carrying a webpage resource, and determining a corresponding target resource version number for the webpage resource and a resource index based on the release request;
and issuing the webpage resource carrying the target resource version number and the resource index to a resource storage platform.
Optionally, the resource publishing platform 502 is further configured to:
acquiring an initial resource version number corresponding to the resource index based on the release request, and configuring a target resource version number corresponding to the webpage resource based on the initial resource version number;
and updating the initial resource version number corresponding to the resource index into the target resource version number.
Optionally, the resource publishing platform 502 is further configured to:
receiving an initial release request carrying initial webpage resources, and configuring an initial resource version number for the initial webpage resources based on the initial release request;
and establishing a resource index for the initial webpage resource so as to establish a corresponding relation between the resource index and the initial resource version number.
Optionally, the resource publishing platform 502 is further configured to:
and configuring the initial resource version number for the initial webpage resource based on the initial release request according to a preset version format.
The resource processing device provided by the embodiment of the application is used for receiving a release request carrying a webpage resource, updating a corresponding target resource version number for the webpage resource and a resource index based on the release request, and releasing the webpage resource and the resource index carrying the target resource version number to oss, so that the browser can quickly and accurately acquire the webpage resource based on the acquired resource index under the condition that a back-end server receives a resource acquisition request sent by the browser.
The above is a schematic scheme of a resource processing apparatus of this embodiment. It should be noted that the technical solution of the resource processing apparatus and the technical solution of the resource processing method belong to the same concept, and details that are not described in detail in the technical solution of the resource processing apparatus can be referred to the description of the technical solution of the resource processing method.
FIG. 6 illustrates a block diagram of a computing device 600 provided in accordance with one embodiment of the present description. The components of the computing device 600 include, but are not limited to, a memory 610 and a processor 620. The processor 620 is coupled to the memory 610 via a bus 630 and a database 650 is used to store data.
Computing device 600 also includes access device 640, access device 640 enabling computing device 600 to communicate via one or more networks 660. Examples of such networks include the Public Switched Telephone Network (PSTN), a Local Area Network (LAN), a Wide Area Network (WAN), a Personal Area Network (PAN), or a combination of communication networks such as the internet. Access device 640 may include one or more of any type of network interface (e.g., a Network Interface Card (NIC)) whether wired or wireless, such as an IEEE802.11 Wireless Local Area Network (WLAN) wireless interface, a worldwide interoperability for microwave access (Wi-MAX) interface, an ethernet interface, a Universal Serial Bus (USB) interface, a cellular network interface, a bluetooth interface, a Near Field Communication (NFC) interface, and so forth.
In one embodiment of the present description, the above-described components of computing device 600, as well as other components not shown in FIG. 6, may also be connected to each other, such as by a bus. It should be understood that the block diagram of the computing device architecture shown in FIG. 6 is for purposes of example only and is not limiting as to the scope of the present description. Those skilled in the art may add or replace other components as desired.
Computing device 600 may be any type of stationary or mobile computing device, including a mobile computer or mobile computing device (e.g., tablet, personal digital assistant, laptop, notebook, netbook, etc.), mobile phone (e.g., smartphone), wearable computing device (e.g., smartwatch, smartglasses, etc.), or other type of mobile device, or a stationary computing device such as a desktop computer or PC. Computing device 600 may also be a mobile or stationary server.
Wherein the processor 620 is configured to execute computer-executable instructions that, when executed by the processor, implement the steps of the resource processing method.
The above is an illustrative scheme of a computing device of the present embodiment. It should be noted that the technical solution of the computing device and the technical solution of the resource processing method belong to the same concept, and details that are not described in detail in the technical solution of the computing device can be referred to the description of the technical solution of the resource processing method.
An embodiment of the present specification also provides a computer-readable storage medium storing computer instructions which, when executed by a processor, implement the steps of the resource processing method.
The above is an illustrative scheme of a computer-readable storage medium of the present embodiment. It should be noted that the technical solution of the storage medium belongs to the same concept as the technical solution of the resource processing method, and details that are not described in detail in the technical solution of the storage medium can be referred to the description of the technical solution of the resource processing method.
The foregoing description has been directed to specific embodiments of this disclosure. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
The computer instructions comprise computer program code which may be in the form of source code, object code, an executable file or some intermediate form, or the like. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, etc. It should be noted that the computer readable medium may contain content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media does not include electrical carrier signals and telecommunications signals as is required by legislation and patent practice.
It should be noted that, for the sake of simplicity, the foregoing method embodiments are described as a series of acts, but those skilled in the art should understand that the present embodiment is not limited by the described acts, because some steps may be performed in other sequences or simultaneously according to the present embodiment. Further, those skilled in the art should also appreciate that the embodiments described in this specification are preferred embodiments and that acts and modules referred to are not necessarily required for an embodiment of the specification.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
The preferred embodiments of the present specification disclosed above are intended only to aid in the description of the specification. Alternative embodiments are not exhaustive and do not limit the invention to the precise embodiments described. Obviously, many modifications and variations are possible in light of the above teaching. The embodiments were chosen and described in order to best explain the principles of the embodiments and the practical application, to thereby enable others skilled in the art to best understand and utilize the embodiments. The specification is limited only by the claims and their full scope and equivalents.

Claims (14)

1. A resource processing system, comprising:
the resource publishing platform is configured to receive a publishing request carrying a webpage resource, determine a corresponding target resource version number for the webpage resource and the resource index based on the publishing request, and publish the webpage resource carrying the target resource version number and the resource index to the resource storage platform;
the resource storage platform is configured to receive a resource acquisition request sent by a resource acquisition terminal through a resource service platform, and based on the resource acquisition request, the resource storage platform returns the stored resource index to the resource acquisition terminal through the resource service platform;
the resource obtaining terminal is configured to obtain the corresponding webpage resource from the resource storage platform based on the resource index.
2. The resource processing system of claim 1, the resource publishing platform further configured to:
acquiring an initial resource version number corresponding to the resource index based on the release request, and configuring a target resource version number corresponding to the webpage resource based on the initial resource version number;
and updating the initial resource version number corresponding to the resource index into the target resource version number.
3. The resource processing system of claim 1, the resource publishing platform further configured to:
receiving an initial release request carrying initial webpage resources, and configuring an initial resource version number for the initial webpage resources based on the initial release request;
and establishing a resource index for the initial webpage resource so as to establish a corresponding relation between the resource index and the initial resource version number.
4. The resource processing system of claim 3, the resource publishing platform further configured to:
and configuring the initial resource version number for the initial webpage resource based on the initial release request according to a preset version format.
5. The resource processing system of claim 1, the system further comprising:
and the resource service platform is configured to receive the resource acquisition request sent by the resource acquisition terminal and send the resource acquisition request to the resource storage platform.
6. The resource processing system of claim 5, the resource service platform further configured to:
and receiving the resource index returned by the resource storage platform, and returning the resource index to the resource acquisition terminal.
7. The resource handling system of any of claims 1-6, the resource acquisition terminal, further configured to:
rendering the webpage based on the webpage resources, and displaying the rendered webpage.
8. A resource processing method is applied to a resource publishing platform and comprises the following steps:
receiving a release request carrying a webpage resource, and determining a corresponding target resource version number for the webpage resource and a resource index based on the release request;
and issuing the webpage resource carrying the target resource version number and the resource index to a resource storage platform.
9. The resource processing method of claim 8, wherein the determining a corresponding target resource version number for the web resource and resource index based on the publishing request comprises:
acquiring an initial resource version number corresponding to the resource index based on the release request, and configuring a target resource version number corresponding to the webpage resource based on the initial resource version number;
and updating the initial resource version number corresponding to the resource index into the target resource version number.
10. The resource handling method of claim 8, the method further comprising:
receiving an initial release request carrying initial webpage resources, and configuring an initial resource version number for the initial webpage resources based on the initial release request;
and establishing a resource index for the initial webpage resource so as to establish a corresponding relation between the resource index and the initial resource version number.
11. The resource processing method of claim 10, said configuring an initial resource version number for the initial web page resource based on the initial publication request, comprising:
and configuring the initial resource version number for the initial webpage resource based on the initial release request according to a preset version format.
12. A resource processing apparatus comprising:
a resource publishing platform configured to:
receiving a release request carrying a webpage resource, and determining a corresponding target resource version number for the webpage resource and a resource index based on the release request;
and issuing the webpage resource carrying the target resource version number and the resource index to a resource storage platform.
13. A computing device, comprising:
a memory and a processor;
the memory is configured to store computer-executable instructions and the processor is configured to execute the computer-executable instructions, which when executed by the processor implement the steps of the resource handling method of any one of claims 8 to 11.
14. A computer-readable storage medium storing computer-executable instructions which, when executed by a processor, implement the steps of the resource processing method of any one of claims 8 to 11.
CN202110310514.7A 2021-03-23 2021-03-23 Resource processing system, resource processing method and device Pending CN112883254A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110310514.7A CN112883254A (en) 2021-03-23 2021-03-23 Resource processing system, resource processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110310514.7A CN112883254A (en) 2021-03-23 2021-03-23 Resource processing system, resource processing method and device

Publications (1)

Publication Number Publication Date
CN112883254A true CN112883254A (en) 2021-06-01

Family

ID=76041957

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110310514.7A Pending CN112883254A (en) 2021-03-23 2021-03-23 Resource processing system, resource processing method and device

Country Status (1)

Country Link
CN (1) CN112883254A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015051177A1 (en) * 2013-10-03 2015-04-09 Sagelegion, Inc. Social analytics marketplace platform
CN106649395A (en) * 2015-11-03 2017-05-10 腾讯科技(深圳)有限公司 Webpage updating method and apparatus
CN107357890A (en) * 2017-07-12 2017-11-17 腾讯科技(深圳)有限公司 A kind of web page files processing method, apparatus and system and storage device
CN109408750A (en) * 2018-09-26 2019-03-01 中国平安财产保险股份有限公司 Page display method, device, computer equipment and storage medium
CN111833179A (en) * 2020-07-17 2020-10-27 浙江网商银行股份有限公司 Resource allocation platform, resource allocation method and device
CN112346761A (en) * 2020-10-27 2021-02-09 长沙市到家悠享网络科技有限公司 Front-end resource online method, equipment, system and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015051177A1 (en) * 2013-10-03 2015-04-09 Sagelegion, Inc. Social analytics marketplace platform
CN106649395A (en) * 2015-11-03 2017-05-10 腾讯科技(深圳)有限公司 Webpage updating method and apparatus
CN107357890A (en) * 2017-07-12 2017-11-17 腾讯科技(深圳)有限公司 A kind of web page files processing method, apparatus and system and storage device
CN109408750A (en) * 2018-09-26 2019-03-01 中国平安财产保险股份有限公司 Page display method, device, computer equipment and storage medium
CN111833179A (en) * 2020-07-17 2020-10-27 浙江网商银行股份有限公司 Resource allocation platform, resource allocation method and device
CN112346761A (en) * 2020-10-27 2021-02-09 长沙市到家悠享网络科技有限公司 Front-end resource online method, equipment, system and storage medium

Similar Documents

Publication Publication Date Title
RU2673403C2 (en) Website access method, device and website system
US10713034B2 (en) Updating web resources
CN107622135B (en) Method and apparatus for displaying information
CN104111944B (en) Page processing method and device and page generation method and device
US11563674B2 (en) Content based routing method and apparatus
US8161160B2 (en) XML-based web feed for web access of remote resources
EP2962216B1 (en) Sharing application states
CN109542427B (en) System customization method and device, electronic equipment and storage medium
CN112559927B (en) Webpage loading method and device
CN107465722B (en) Web access realization method and device
US20130318208A1 (en) Dynamic package creation for predictive page load optimization
CN107357890B (en) Webpage file processing method, device and system and storage equipment
CN109150929B (en) Data request processing method and device under high concurrency scene
CN109981719A (en) Information processing method and its system, computer system and computer readable medium
CN112579928A (en) Page jump method, page jump device, computer equipment and computer readable storage medium
CN112256772A (en) Data service method, device and readable storage medium
CN103581249A (en) Information push method, system and client terminal
CN112926002A (en) Service request processing method and device
CN111666074B (en) Web application customization method, related device and system
CN112883254A (en) Resource processing system, resource processing method and device
CN116340659A (en) Data processing method and device
CN111953718A (en) Page debugging method and device
CN110928547A (en) Public file extraction method, device, terminal and storage medium
CN111753226A (en) Page loading method and device
CN107045549B (en) Method and device for acquiring page number of electronic book

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210601