Activity page processing method, operation platform, service server and storage medium
By dividing the page resources of the activity page into structural and reference resources and storing them separately, the problem of low publishing efficiency in the existing technology is solved, and more efficient page publishing and stable service are achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- ZHANGYUE TECH CO LTD
- Filing Date
- 2023-01-17
- Publication Date
- 2026-07-21
AI Technical Summary
In existing technologies, the publishing efficiency of event pages is low. Resources need to be submitted to the version controller and the event service creation process needs to be triggered before they can be distributed to various business servers.
Page resources are divided into structural resources and reference resources, which are stored in different resource areas using object storage. The business server then retrieves the corresponding resources from these resource areas and sends them back to the user, thus avoiding the traditional submission and distribution process.
This improved the efficiency of event page publishing, ensuring page loading speed and service stability.
Smart Images

Figure CN116204198B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of data processing technology, specifically to an activity page processing method, an operating platform, a business server, and a storage medium. Background Technology
[0002] With the continuous development of technology and society, e-books have become increasingly popular due to their flexibility, convenience, large capacity, and environmental friendliness. To improve user retention, some e-book platforms typically provide users with promotional activity pages.
[0003] However, during implementation, the inventors discovered the following drawbacks in the existing technology: When an activity page is published in the existing technology, its related resources need to be submitted to version control, triggering the corresponding activity service creation process, and then the resources are distributed to various business servers. However, this method of publishing activity pages is inefficient. Summary of the Invention
[0004] In view of the above problems, the present invention is proposed to provide an activity page processing method, operating platform, business server and storage medium that overcomes or at least partially solves the above problems.
[0005] According to a first aspect of the present invention, an activity page processing method is provided, the method being executed on the operation platform side, the method comprising:
[0006] Obtain the page resources of the event page to be published, and extract the page structure resources and page reference resources from the page resources;
[0007] The page structure resources are stored in the first resource area using object storage, and the page reference resources are stored in the second resource area using object storage.
[0008] The storage paths of the first resource area and the second resource area are sent to the business server so that after receiving a user's page access request, the business server can identify the target page for the page access request, and extract the page structure resources of the target page from the first resource area and the page reference resources of the target page from the second resource area.
[0009] According to a second aspect of the present invention, an active page processing method is provided, the method being executed on the business server side, the method comprising:
[0010] Receive a user's page access request and identify the target page for the page access request;
[0011] Extract the page structure resources of the target page from the first resource area according to the storage path of the first resource area;
[0012] Extract the page reference resources of the target page from the second resource area according to the storage path of the second resource area.
[0013] According to a third aspect of the present invention, an operating platform is provided, comprising: a processor, a memory, a communication interface, and a communication bus, wherein the processor, the memory, and the communication interface communicate with each other via the communication bus;
[0014] The memory is used to store at least one executable instruction, which causes the processor to perform the following operations:
[0015] Obtain the page resources of the event page to be published, and extract the page structure resources and page reference resources from the page resources;
[0016] The page structure resources are stored in the first resource area using object storage, and the page reference resources are stored in the second resource area using object storage.
[0017] The storage paths of the first resource area and the second resource area are sent to the business server so that after receiving a user's page access request, the business server can identify the target page for the page access request, and extract the page structure resources of the target page from the first resource area and the page reference resources of the target page from the second resource area.
[0018] According to a fourth aspect of the present invention, a service server is provided, comprising: a processor, a memory, a communication interface, and a communication bus, wherein the processor, the memory, and the communication interface communicate with each other through the communication bus;
[0019] The memory is used to store at least one executable instruction, which causes the processor to perform the following operations:
[0020] Receive a user's page access request and identify the target page for the page access request;
[0021] Extract the page structure resources of the target page from the first resource area according to the storage path of the first resource area;
[0022] Extract the page reference resources of the target page from the second resource area according to the storage path of the second resource area.
[0023] According to a fifth aspect of the present invention, a computer storage medium is provided, the storage medium storing at least one executable instruction, the executable instruction causing a processor to perform the operation corresponding to the above-described active page processing method.
[0024] The activity page processing method, operation platform, business server, and storage medium provided by this invention do not adopt the traditional publishing process of submitting page resources to the version controller, creating an activity page service, and distributing page resources to the server when publishing an activity page. Instead, the page structure resources in the page resources are stored in the first resource area in the form of object storage, and the page reference resources in the page resources are stored in the second resource area in the form of object storage. Subsequently, the business server retrieves the corresponding resources from the corresponding resource areas and feeds them back to the user, thereby improving the page publishing efficiency.
[0025] The above description is merely an overview of the technical solution of the present invention. In order to better understand the technical means of the present invention and to implement it in accordance with the contents of the specification, and to make the above and other objects, features and advantages of the present invention more apparent and understandable, specific embodiments of the present invention are described below. Attached Figure Description
[0026] Various other advantages and benefits will become apparent to those skilled in the art upon reading the following detailed description of preferred embodiments. The accompanying drawings are for illustrative purposes only and are not intended to limit the invention. Furthermore, the same reference numerals denote the same parts throughout the drawings. In the drawings:
[0027] Figure 1 A flowchart illustrating an active page processing method provided in Embodiment 1 of the present invention is shown.
[0028] Figure 2 A flowchart illustrating an active page processing method according to Embodiment 2 of the present invention is shown.
[0029] Figure 3 This diagram illustrates the structure of an operating platform according to Embodiment 5 of the present invention.
[0030] Figure 4 A schematic diagram of the structure of a business server provided in Embodiment Six of the present invention is shown. Detailed Implementation
[0031] Exemplary embodiments of the invention will now be described in more detail with reference to the accompanying drawings. While exemplary embodiments of the invention are shown in the drawings, it should be understood that the invention may be implemented in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this invention will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art.
[0032] Example 1
[0033] Figure 1 The diagram shows a flowchart of an active page processing method provided in Embodiment 1 of the present invention.
[0034] In this embodiment, the entity executing each step can be an operation platform.
[0035] like Figure 1 As shown, the method includes the following steps:
[0036] Step S110: Obtain the page resources of the activity page to be published.
[0037] An event page to be published refers to the event page of an operational activity that is about to enter the publication process. Before the event page is published, its page resources must be generated first. These page resources refer to various program files that enable the functionality of the event page, and may include: HTML files, JS files, and / or CSS files, etc.
[0038] In one optional method of acquiring page resources, the operations platform provides a page resource input portal, and the page resources input through this portal are then acquired. In this implementation, developers compile the page resources for the activity pages based on the operational activities and submit the compiled page resources through the operations platform's page resource input portal.
[0039] In another optional method of acquiring page resources, the operations platform provides a visual activity page creation workbench. This workbench displays commonly used candidate basic components. Operations personnel can drag and drop candidate basic components to the component layout area to create the corresponding basic components. The basic components in the layout area can be moved based on user actions, allowing operations personnel to arrange the display positions of each basic component according to needs. Furthermore, operations personnel can bind data components to the basic components and configure data sources, data processing algorithms, and other configuration information for the data components. By binding basic components with corresponding data components, corresponding composite components can be generated. Then, based on the display position of the basic components in the composite component, the component information of the basic components, and the component information of the data components, the component configuration data of the composite component is generated. Additionally, the page configuration data of the activity page is generated based on the component configuration data of each composite component in the component layout area. After obtaining the page configuration data, the operations platform's H5 building service retrieves the page configuration data and generates the page resources for the activity page based on it. Specifically, in the process of generating page resources based on page configuration data, a page code template can be obtained, and then the page code template can be compiled using the page configuration data to generate the page resources for the activity page. In this implementation, operators do not need to compile the code; they only need to select and configure components to obtain page resources.
[0040] Step S120: Extract the page structure resources and page reference resources from the page resources.
[0041] Unlike existing technologies, this invention does not follow the traditional publishing process of submitting page resources to a version controller, creating an activity page service, and distributing page resources to a server. Instead, after obtaining the page resources, the invention identifies and categorizes them to extract page structure resources and page reference resources. The page structure resources describe the basic structure of the activity page, while the page reference resources are those referenced by the page structure resources.
[0042] In one optional implementation, the file type of each resource in the page resources is determined, and page structure resources and page reference resources are extracted from the page resources based on the file type. In actual implementation, page structure resources and page reference resources typically have specific file types. For example, HTML files in page resources are usually used to determine the structure and content of the webpage, i.e., describing what content the webpage should display; CSS files in page resources are usually used to determine the presentation of the webpage, i.e., describing how the webpage should display relevant content; and JS files in page resources are usually used to control the behavior or effects of the webpage, i.e., describing how the content in the webpage should react to events, or what kind of reaction it should have to events. From the functions of the above file types, it can be seen that HTML files determine the structure and content of the webpage and are the foundation of the webpage, while CSS and JS files are extensions of HTML files. Therefore, in this implementation, resources with an HTML file type can be identified as page structure resources, and resources with a CSS or JS file type can be identified as page reference resources. Using this implementation method, page structure resources and page reference resources can be quickly identified, improving page publishing efficiency.
[0043] In another optional implementation, the resource identifier of each resource in the page resources is obtained. This resource identifier can be the name of the resource, a unique code assigned to the resource, etc. In short, the resource identifier is unique within the activity page, and the corresponding resource can be uniquely identified within the resources corresponding to the activity page through this resource identifier. Further, resources containing a reference list are identified, and it is then determined whether the resource identifier of the aforementioned resource exists in the reference list. If so, the resource containing the reference list is identified as a page structure resource, and the resource corresponding to the resource identifier in the reference list of the page structure resource is identified as a page reference resource. For example, if the page resources of the activity page include: 11.html, 22.css, and 33.js, where 11.html contains the reference list "22.css and 33.js", then 11.html is a page structure resource, while 22.css and 33.js are page reference resources. This implementation method is not limited to H5 pages, thus broadening the applicability of this method.
[0044] In another alternative implementation, the two methods described above can be combined, that is, resources of file type HTML are identified as page structure resources, and resources corresponding to resource identifiers in the reference list of HTML files are identified as page reference resources.
[0045] Step S130: Store the page structure resources in the first resource area using object storage, and store the page reference resources in the second resource area using object storage.
[0046] Page structure resources and page reference resources are not deployed on the server, but are stored using object storage. Object storage (OSS), also known as object-based storage, supports the storage of both structured and unstructured data.
[0047] To improve the loading speed of subsequent activity pages, in this embodiment of the invention, page structure resources and page reference resources are stored in different resource areas, which can also be called "buckets". The page structure resources are stored in the first resource area, which can be called a dynamic resource bucket; the page reference resources are stored in the second resource area, which can be called a static resource bucket.
[0048] In one optional implementation, the first resource zone and the second resource zone employ different resource management methods, as detailed below:
[0049] For the first resource area, when storing page structure resources in object storage, the operational activity corresponding to the activity page to be published is identified. This involves determining the operational activity to which the page structure resource to be stored belongs, and further checking if a page structure resource corresponding to that operational activity already exists in the first resource area. If so, the stored page structure resource corresponding to that operational activity is deleted from the first resource area, and the page structure resource of the activity page to be published is stored in the first resource area using object storage. If not, the page structure resource is stored in the first resource area using object storage. Therefore, the first resource area only stores the latest page structure resource for each operational activity, allowing for rapid retrieval of page structure resources when processing user page access requests and reducing the storage footprint of the first resource area.
[0050] Optionally, to facilitate quick and accurate storage of page structure resources and subsequent rapid retrieval of page structure resources, the first resource area in this embodiment contains a corresponding resource directory. The resource directory of the first resource area records the activity identifiers of the operational activities to which each page structure resource currently stored in the first resource area belongs. Therefore, when storing the current page structure resource, specifically, the resource directory of the first resource area is retrieved, and it is determined whether the resource directory of the first resource area contains the activity identifier of the operational activity to which the page structure resource to be stored belongs; that is, whether the resource directory of the first resource area contains the activity identifier of the operational activity corresponding to the activity page to be published. If yes, the page structure resource corresponding to the operational activity that has already been stored is deleted from the first resource area, and the page structure resource is stored in the first resource area using object storage. If no, the page structure resource is stored in the first resource area using object storage, and the activity identifier of the operational activity is added to the resource directory of the first resource area.
[0051] Optionally, in this embodiment of the invention, change events in the first resource area are also monitored, and version control data for the first resource area is generated based on the change events, thereby achieving version control of relevant activity pages in the first resource area. Specifically, whenever a change event in the first resource area is detected, the change time, the operational activity to which the change event applies, the backup of the page structure resources of the operational activity in the first resource area before and after the change, etc., are recorded, thereby generating version control data for the first resource area based on the recorded information.
[0052] This embodiment of the invention can also receive a rollback instruction for a preset version of a target activity page. Specifically, this rollback instruction refers to an instruction to publish the preset version of the activity page. Upon receiving this instruction, the page structure resources of the preset version of the target activity page are obtained based on the version control data in the first resource area. For example, the page identifier and version identifier of the preset version of the activity page are obtained by parsing the instruction. Then, a backup of the page structure resources matching the page identifier and version identifier is obtained by searching the version control data in the first resource area. This backup is the page structure resource of the preset version of the target activity page. The stored page structure resources corresponding to the operational activity to which the target activity page belongs are then deleted from the first resource area, and the page structure resources of the preset version of the target activity page are stored in the first resource area using object storage.
[0053] Optionally, when generating page structure resources, this embodiment of the invention can determine the operational activity to which the page structure resource belongs, and then embed the activity identifier of the operational activity into the corresponding field of the resource identifier of the page structure resource. Therefore, the process of storing page structure resources specifically involves: matching the preset fields of page structure resources already stored in the first resource area with the preset fields of the page structure resource to be stored; if a preset field of an already stored page structure resource matches the preset field of the page structure resource to be stored, then the already stored page structure resource is deleted from the first resource area, and the page structure resource is stored in the first resource area as an object. Using this method, the operational activity to which the page structure resource belongs can be quickly determined through the resource identifier of the page structure resource, improving resource storage efficiency.
[0054] For the second resource area, page reference resources are stored in object storage, and the resource identifiers of the page reference resources are recorded in the resource directory of the second resource area. The second resource area can store page reference resources for various versions corresponding to the same operational activity. Therefore, unlike the first resource area, when storing new page reference resources, the second resource area does not need to overwrite other page reference resources belonging to the same operational activity that were previously stored. It only needs to add the resource identifier of the newly stored page reference resource to the resource directory of the second resource area.
[0055] Optionally, to avoid storage chaos of page reference resources in the second resource area, the resource identifier of the page reference resource in this embodiment is generated as follows: The activity identifier of the operation activity corresponding to the page reference resource is obtained, and the MD5 value of the page reference resource is obtained. The resource identifier of the page reference resource is generated based on the activity identifier and the MD5 value. The MD5 value is obtained by performing an MD5 algorithm on the page reference resource. If the content of the page reference resources is the same, the MD5 value will be the same, thereby avoiding storing page reference resources with completely identical content in the second resource area, and thus saving storage resources in the second resource area.
[0056] Step S140: Send the storage paths of the first resource area and the second resource area to the business server so that after receiving the user's page access request, the business server can identify the target page of the page access request, and extract the page structure resources of the target page from the first resource area and the page reference resources of the target page from the second resource area.
[0057] After storing the page structure resources and page reference resources, the operations platform sends the storage paths of the first and second resource areas to the business server, thereby enabling page publishing. When the business server subsequently processes page access requests, it can locate the first and second resource areas based on the storage paths and then retrieve the corresponding page resources from them to provide feedback to the user.
[0058] Therefore, it can be seen that when publishing an activity page, the embodiments of the present invention do not adopt the traditional publishing process of submitting page resources to the version controller, creating an activity page service, and distributing page resources to the server. Instead, the page structure resources in the page resources are stored in the first resource area in the form of object storage, and the page reference resources in the page resources are stored in the second resource area in the form of object storage. Subsequently, the business server retrieves the corresponding resources from the corresponding resource area and feeds them back to the user, thereby improving the efficiency of page publishing.
[0059] Example 2
[0060] Figure 2 The diagram shows a flowchart of an active page processing method provided in Embodiment 2 of the present invention.
[0061] In this embodiment, the entity executing each step can be a business server.
[0062] like Figure 2 As shown, the method includes the following steps:
[0063] Step S210: Receive the user's page access request and identify the target page for the page access request.
[0064] The business server receives a user's page access request. By parsing the page access request, it can obtain the page that the request is targeting; this page is the target page. The target page is an activity page that has been published through the operations platform. The publishing process is described in Implementation Example 1 and will not be repeated here.
[0065] Step S220: Extract the page structure resources of the target page from the first resource area according to the storage path of the first resource area.
[0066] The first resource area can be located based on its storage path, and then the page structure resources of the target page can be extracted from the first resource area.
[0067] In one optional implementation, after determining the first resource area based on its storage path, the system searches the resource directory of the first resource area for a directory entry corresponding to the operational activity to which the target page belongs. Then, based on the resource storage address corresponding to the target entry, the page structure resource of the target page is extracted from the first resource area. Each operational activity in the resource directory of the first resource area corresponds to one target entry, and each target entry corresponds to a page structure resource and its specific storage address in the first resource area. This implementation method enables the rapid and accurate acquisition of page structure resources.
[0068] Step S230: Extract the page reference resources of the target page from the second resource area according to the storage path of the second resource area.
[0069] The second resource area can be located based on its storage path, and then the page structure resources of the target page can be extracted from the second resource area.
[0070] In one optional implementation, a reference list of page structure resources is obtained, and the resource identifier of the page application resource of the target page is determined from the reference list. Then, the second resource area is determined according to the storage path of the second resource area, and a directory entry matching the resource identifier of the page reference resource is found in the resource directory of the second resource area. Based on the storage address corresponding to the matching directory entry, the page reference resource of the target page is extracted from the second resource area. In this implementation, after extracting the page structure resources, the page reference resource of the target page can be accurately determined based on the reference list of the page structure resources, and the specific storage address of the page reference resource in the second resource area can be determined through the resource directory of the second resource area, thereby quickly extracting the page reference resource of the target page.
[0071] After obtaining the page structure resources and page reference resources of the target page, the business server can provide the corresponding resources to the user so that the user can access the target page.
[0072] Therefore, in this embodiment of the invention, after receiving a user's page access request, the business server can quickly extract the page structure resources and page reference resources of the target page from the first resource area and the second resource area, thereby enabling the user to access the target page normally and ensuring the stability of the page service.
[0073] Example 3
[0074] Embodiment 3 of the present invention provides a non-volatile computer storage medium storing at least one executable instruction that can execute the method in any of the above method embodiments.
[0075] Executable instructions can specifically be used to cause the processor to perform the following operations:
[0076] Obtain the page resources of the event page to be published, and extract the page structure resources and page reference resources from the page resources;
[0077] The page structure resources are stored in the first resource area using object storage, and the page reference resources are stored in the second resource area using object storage.
[0078] The storage paths of the first resource area and the second resource area are sent to the business server so that after receiving a user's page access request, the business server can identify the target page for the page access request, and extract the page structure resources of the target page from the first resource area and the page reference resources of the target page from the second resource area.
[0079] In one alternative implementation, the executable instructions cause the processor to perform the following operations:
[0080] Determine the file type of each resource in the page resources, and extract the page structure resources and page reference resources from the page resources according to the file type.
[0081] In one alternative implementation, the executable instructions cause the processor to perform the following operations:
[0082] Resources with an HTML file type are identified as page structure resources, and resources with a CSS or JS file type are identified as page reference resources.
[0083] In one alternative implementation, the executable instructions cause the processor to perform the following operations:
[0084] Retrieve the resource identifiers of each resource in the page resources;
[0085] Identify resources containing a reference list, determine whether the resource identifier of the resource exists in the reference list, and if so, determine the resource containing the reference list as a page structure resource, and determine the resource corresponding to the resource identifier in the reference list of the page structure resource as a page reference resource.
[0086] In one alternative implementation, the executable instructions cause the processor to perform the following operations:
[0087] Identify the operational activities corresponding to the activity page to be published;
[0088] Determine whether the first resource area already stores page structure resources corresponding to the operational activity;
[0089] If so, delete the stored page structure resources corresponding to the operation activity from the first resource area, and store the page structure resources in the first resource area in object storage mode;
[0090] If not, the page structure resources are stored in the first resource area using object storage.
[0091] In one alternative implementation, the executable instructions cause the processor to perform the following operations:
[0092] Obtain the resource directory of the first resource zone and determine whether the resource directory of the first resource zone contains the activity identifier of the operation activity;
[0093] If so, delete the stored page structure resources corresponding to the operation activity from the first resource area, and store the page structure resources in the first resource area in object storage mode;
[0094] If not, the page structure resources are stored in the first resource area using object storage, and the activity identifier of the operation activity is added to the resource directory of the first resource area.
[0095] In one alternative implementation, the executable instructions cause the processor to perform the following operations:
[0096] Monitor change events in the first resource zone and generate version control data for the first resource zone based on the change events.
[0097] In one alternative implementation, the executable instructions cause the processor to perform the following operations:
[0098] Receive a rollback command for a preset version of the target activity page;
[0099] Based on the version control data of the first resource area, obtain the page structure resources of the preset version of the target activity page;
[0100] Delete the stored page structure resources corresponding to the operational activities to which the target activity page belongs from the first resource area, and store the preset version of the page structure resources of the target activity page in the first resource area in object storage.
[0101] In one alternative implementation, the executable instructions cause the processor to perform the following operations:
[0102] The page references resources are stored in the second resource area using object storage, and the resource identifiers of the page references resources are recorded in the resource directory of the second resource area.
[0103] In one alternative implementation, the executable instructions cause the processor to perform the following operations:
[0104] Obtain the activity identifier of the operation activity corresponding to the page referenced resource, and obtain the MD5 value of the page referenced resource. Generate the resource identifier of the page referenced resource based on the activity identifier and the MD5 value.
[0105] Example 4
[0106] Embodiment 4 of the present invention provides a non-volatile computer storage medium storing at least one executable instruction that can execute the method in any of the above method embodiments.
[0107] Executable instructions can specifically be used to cause the processor to perform the following operations:
[0108] Receive a user's page access request and identify the target page for the page access request;
[0109] Extract the page structure resources of the target page from the first resource area according to the storage path of the first resource area;
[0110] Extract the page reference resources of the target page from the second resource area according to the storage path of the second resource area.
[0111] In one alternative implementation, the executable instructions cause the processor to perform the following operations:
[0112] The first resource zone is determined based on its storage path.
[0113] Locate the directory entry corresponding to the operational activity to which the target page belongs in the resource directory of the first resource area;
[0114] Based on the resource storage address corresponding to the target entry, extract the page structure resources of the target page from the first resource area.
[0115] In one alternative implementation, the executable instructions cause the processor to perform the following operations:
[0116] Obtain the reference list of the page structure resources;
[0117] The resource identifier of the page application resource of the target page is determined from the reference list;
[0118] The second resource area is determined based on its storage path, and the directory entry matching the resource identifier of the page referenced resource is found in the resource directory of the second resource area.
[0119] Based on the storage address corresponding to the matched directory entry, extract the page reference resources of the target page from the second resource area.
[0120] Example 5
[0121] Figure 3 A schematic diagram of an operating platform provided in Embodiment 5 of the present invention is shown. The specific embodiments of the present invention do not limit the specific implementation of the computing device.
[0122] like Figure 3 As shown, the operating platform may include: processor 302, communications interface 304, memory 306, and communication bus 308.
[0123] The processor 302, communication interface 304, and memory 306 communicate with each other via communication bus 308. Communication interface 304 is used to communicate with other network elements such as clients or other servers. The processor 302 executes program 310, specifically performing the relevant steps in the above method embodiments.
[0124] Specifically, program 310 may include program code that includes computer operation instructions.
[0125] Processor 302 may be a central processing unit (CPU), an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to implement embodiments of the present invention. The computing device may include one or more processors of the same type, such as one or more CPUs; or it may include processors of different types, such as one or more CPUs and one or more ASICs.
[0126] Memory 306 is used to store program 310. Memory 306 may include high-speed RAM memory, and may also include non-volatile memory, such as at least one disk storage device.
[0127] Specifically, program 310 can be used to cause processor 302 to perform the following operations:
[0128] Obtain the page resources of the event page to be published, and extract the page structure resources and page reference resources from the page resources;
[0129] The page structure resources are stored in the first resource area using object storage, and the page reference resources are stored in the second resource area using object storage.
[0130] The storage paths of the first resource area and the second resource area are sent to the business server so that after receiving a user's page access request, the business server can identify the target page for the page access request, and extract the page structure resources of the target page from the first resource area and the page reference resources of the target page from the second resource area.
[0131] In one alternative implementation, program 310 may specifically be used to cause processor 302 to perform the following operations:
[0132] Determine the file type of each resource in the page resources, and extract the page structure resources and page reference resources from the page resources according to the file type.
[0133] In one alternative implementation, program 310 may specifically be used to cause processor 302 to perform the following operations:
[0134] Resources with an HTML file type are identified as page structure resources, and resources with a CSS or JS file type are identified as page reference resources.
[0135] In one alternative implementation, program 310 may specifically be used to cause processor 302 to perform the following operations:
[0136] Retrieve the resource identifiers of each resource in the page resources;
[0137] Identify resources containing a reference list, determine whether the resource identifier of the resource exists in the reference list, and if so, determine the resource containing the reference list as a page structure resource, and determine the resource corresponding to the resource identifier in the reference list of the page structure resource as a page reference resource.
[0138] In one alternative implementation, program 310 may specifically be used to cause processor 302 to perform the following operations:
[0139] Identify the operational activities corresponding to the activity page to be published;
[0140] Determine whether the first resource area already stores page structure resources corresponding to the operational activity;
[0141] If so, delete the stored page structure resources corresponding to the operation activity from the first resource area, and store the page structure resources in the first resource area in object storage mode;
[0142] If not, the page structure resources are stored in the first resource area using object storage.
[0143] In one alternative implementation, program 310 may specifically be used to cause processor 302 to perform the following operations:
[0144] Obtain the resource directory of the first resource zone and determine whether the resource directory of the first resource zone contains the activity identifier of the operation activity;
[0145] If so, delete the stored page structure resources corresponding to the operation activity from the first resource area, and store the page structure resources in the first resource area in object storage mode;
[0146] If not, the page structure resources are stored in the first resource area using object storage, and the activity identifier of the operation activity is added to the resource directory of the first resource area.
[0147] In one alternative implementation, program 310 may specifically be used to cause processor 302 to perform the following operations:
[0148] Monitor change events in the first resource zone and generate version control data for the first resource zone based on the change events.
[0149] In one alternative implementation, program 310 may specifically be used to cause processor 302 to perform the following operations:
[0150] Receive a rollback command for a preset version of the target activity page;
[0151] Based on the version control data of the first resource area, obtain the page structure resources of the preset version of the target activity page;
[0152] Delete the stored page structure resources corresponding to the operational activities to which the target activity page belongs from the first resource area, and store the preset version of the page structure resources of the target activity page in the first resource area in object storage.
[0153] In one alternative implementation, program 310 may specifically be used to cause processor 302 to perform the following operations:
[0154] The page references resources are stored in the second resource area using object storage, and the resource identifiers of the page references resources are recorded in the resource directory of the second resource area.
[0155] In one alternative implementation, program 310 may specifically be used to cause processor 302 to perform the following operations:
[0156] Obtain the activity identifier of the operation activity corresponding to the page referenced resource, and obtain the MD5 value of the page referenced resource. Generate the resource identifier of the page referenced resource based on the activity identifier and the MD5 value.
[0157] Example 6
[0158] Figure 4 A schematic diagram of a business server according to Embodiment Six of the present invention is shown. The specific embodiments of the present invention do not limit the specific implementation of the business server.
[0159] like Figure 4 As shown, the service server may include: a processor 402, a communications interface 404, a memory 406, and a communications bus 408.
[0160] The processor 402, communication interface 404, and memory 406 communicate with each other via communication bus 408. Communication interface 404 is used to communicate with other network elements such as clients or other servers. The processor 402 executes program 410, specifically performing the relevant steps in the above method embodiments.
[0161] Specifically, program 410 may include program code that includes computer operation instructions.
[0162] Processor 402 may be a central processing unit (CPU), an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to implement embodiments of the present invention. The computing device includes one or more processors, which may be processors of the same type, such as one or more CPUs; or processors of different types, such as one or more CPUs and one or more ASICs.
[0163] Memory 406 is used to store program 410. Memory 406 may include high-speed RAM memory, and may also include non-volatile memory, such as at least one disk storage device.
[0164] Specifically, program 410 can be used to cause processor 402 to perform the following operations:
[0165] Receive a user's page access request and identify the target page for the page access request;
[0166] Extract the page structure resources of the target page from the first resource area according to the storage path of the first resource area;
[0167] Extract the page reference resources of the target page from the second resource area according to the storage path of the second resource area.
[0168] In one alternative implementation, program 410 may specifically be used to cause processor 402 to perform the following operations:
[0169] The first resource zone is determined based on its storage path.
[0170] Locate the directory entry corresponding to the operational activity to which the target page belongs in the resource directory of the first resource area;
[0171] Based on the resource storage address corresponding to the target entry, extract the page structure resources of the target page from the first resource area.
[0172] In one alternative implementation, program 410 may specifically be used to cause processor 402 to perform the following operations:
[0173] Obtain the reference list of the page structure resources;
[0174] The resource identifier of the page application resource of the target page is determined from the reference list;
[0175] The second resource area is determined based on its storage path, and the directory entry matching the resource identifier of the page referenced resource is found in the resource directory of the second resource area.
[0176] Based on the storage address corresponding to the matched directory entry, extract the page reference resources of the target page from the second resource area.
[0177] The algorithms or displays provided herein are not inherently related to any particular computer, virtual system, or other device. Various general-purpose systems can also be used in conjunction with the teachings herein. The required structure for constructing such systems is apparent from the above description. Furthermore, the embodiments of the present invention are not directed to any particular programming language. It should be understood that the content of the invention described herein can be implemented using various programming languages, and the above description of specific languages is for the purpose of disclosing the best mode of implementation of the invention.
[0178] Numerous specific details are set forth in the specification provided herein. However, it will be understood that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures, and techniques have not been shown in detail so as not to obscure the understanding of this specification.
[0179] Similarly, it should be understood that, in order to simplify the invention and aid in understanding one or more of the various inventive aspects, features of the embodiments of the invention are sometimes grouped together in a single embodiment, figure, or description thereof in the above description of exemplary embodiments of the invention. However, this disclosure should not be construed as reflecting an intention that the claimed invention requires more features than are expressly recited in each claim. Rather, as reflected in the following claims, inventive aspects lie in fewer than all features of a single foregoing disclosed embodiment. Therefore, the claims following the detailed description are hereby expressly incorporated into this detailed description, wherein each claim itself is a separate embodiment of the invention.
[0180] Those skilled in the art will understand that modules in the device of the embodiments can be adaptively changed and placed in one or more devices different from that embodiment. Modules, units, or components in the embodiments can be combined into a single module, unit, or component, and further, they can be divided into multiple sub-modules, sub-units, or sub-components. Except where at least some of such features and / or processes or units are mutually exclusive, any combination can be used to combine all features disclosed in this specification (including the accompanying claims, abstract, and drawings) and all processes or units of any method or device so disclosed. Unless expressly stated otherwise, each feature disclosed in this specification (including the accompanying claims, abstract, and drawings) may be replaced by an alternative feature that serves the same, equivalent, or similar purpose.
[0181] Furthermore, those skilled in the art will understand that although some embodiments herein include certain features included in other embodiments but not others, combinations of features from different embodiments are intended to be within the scope of the invention and form different embodiments. For example, in the following claims, any of the claimed embodiments can be used in any combination.
[0182] The various component embodiments of the present invention can be implemented in hardware, or as software modules running on one or more processors, or a combination thereof. Those skilled in the art will understand that microprocessors or digital signal processors (DSPs) can be used in practice to implement some or all of the functions of some or all of the components according to the embodiments of the present invention. The present invention can also be implemented as a device or apparatus program (e.g., a computer program and computer program product) for performing part or all of the methods described herein. Such programs implementing the present invention can be stored on a computer-readable medium, or can be in the form of one or more signals. Such signals can be downloaded from an Internet website, provided on a carrier signal, or provided in any other form.
[0183] It should be noted that the above embodiments are illustrative of the invention and not restrictive, and that those skilled in the art can devise alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses should not be construed as limiting the claims. The word "comprising" does not exclude the presence of elements or steps not listed in the claims. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention can be implemented by means of hardware comprising several different elements and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by the same item of hardware. The use of the words first, second, and third, etc., does not indicate any order. These words can be interpreted as names. The steps in the above embodiments, unless otherwise specified, should not be construed as limiting the order of execution.
Claims
1. A method for processing an activity page, the method being executed on the operation platform side, the method comprising: Obtain the page resources of the event page to be published, and extract the page structure resources and page reference resources from the page resources; The page structure resources are stored in the first resource area using object storage, and the page reference resources are stored in the second resource area using object storage. The resource directory of the first resource area records the activity identifier of the operation activity to which each page structure resource currently stored in the first resource area belongs. For the second resource area, the page reference resources are stored in the second resource area using object storage, and the resource identifier of the page reference resources is recorded in the resource directory of the second resource area. The storage paths of the first resource area and the second resource area are sent to the business server so that after receiving a user's page access request, the business server can identify the target page for the page access request, and extract the page structure resources of the target page from the first resource area and the page reference resources of the target page from the second resource area.
2. The method of claim 1, wherein, The step of extracting page structure resources and page reference resources from the page resources further includes: Determine the file type of each resource in the page resources, and extract the page structure resources and page reference resources from the page resources according to the file type.
3. The method according to claim 2, wherein, The step of extracting page structure resources and page reference resources from the page resources according to the file type further includes: Resources with an HTML file type are identified as page structure resources, and resources with a CSS or JS file type are identified as page reference resources.
4. The method according to claim 1, wherein, The step of extracting page structure resources and page reference resources from the page resources further includes: Retrieve the resource identifiers of each resource in the page resources; Identify resources containing a reference list, determine whether the resource identifier of the resource exists in the reference list, and if so, determine the resource containing the reference list as a page structure resource, and determine the resource corresponding to the resource identifier in the reference list of the page structure resource as a page reference resource.
5. The method according to any one of claims 1-4, wherein, The step of storing the page structure resources in the first resource area in an object storage manner further includes: Identify the operational activities corresponding to the activity page to be published; Determine whether the first resource area already stores page structure resources corresponding to the operational activity; If so, delete the stored page structure resources corresponding to the operation activity from the first resource area, and store the page structure resources in the first resource area in object storage mode; If not, the page structure resources are stored in the first resource area using object storage.
6. The method according to claim 5, wherein, The first step is to determine whether the first resource area already contains page structure resources corresponding to the operation activity; if so, the stored page structure resources corresponding to the operation activity are deleted from the first resource area, and the page structure resources are stored in the first resource area in object storage mode. If not, storing the page structure resources in the first resource area using object storage further includes: Obtain the resource directory of the first resource zone and determine whether the resource directory of the first resource zone contains the activity identifier of the operation activity; If so, delete the stored page structure resources corresponding to the operation activity from the first resource area, and store the page structure resources in the first resource area in object storage mode; If not, the page structure resources are stored in the first resource area using object storage, and the activity identifier of the operation activity is added to the resource directory of the first resource area.
7. The method according to claim 5, wherein, The method further includes: Monitor change events in the first resource zone and generate version control data for the first resource zone based on the change events.
8. The method according to claim 7, wherein, The method further includes: Receive a rollback command for a preset version of the target activity page; Based on the version control data of the first resource area, obtain the page structure resources of the preset version of the target activity page; Delete the stored page structure resources corresponding to the operational activities to which the target activity page belongs from the first resource area, and store the preset version of the page structure resources of the target activity page in the first resource area in object storage.
9. The method according to claim 1, wherein, The resource identifier of the resource referenced by the page is generated in the following way: Obtain the activity identifier of the operation activity corresponding to the page referenced resource, and obtain the MD5 value of the page referenced resource. Generate the resource identifier of the page referenced resource based on the activity identifier and the MD5 value.
10. A method for processing an activity page, the method being executed on the business server side, the method comprising: Receive a user's page access request and identify the target page for the page access request; The page structure resources of the target page are extracted from the first resource area according to the storage path of the first resource area; wherein, the first resource area is determined according to the storage path of the first resource area; the directory entry corresponding to the operation activity to which the target page belongs is searched in the resource directory of the first resource area; and the page structure resources of the target page are extracted from the first resource area according to the resource storage address corresponding to the directory entry. The page reference resources of the target page are extracted from the second resource area according to the storage path of the second resource area; wherein, a reference list of the page structure resources is obtained; the resource identifier of the page application resource of the target page is determined from the reference list; the second resource area is determined according to the storage path of the second resource area, and a directory entry matching the resource identifier of the page reference resource is found in the resource directory of the second resource area; the page reference resources of the target page are extracted from the second resource area according to the storage address corresponding to the matching directory entry.
11. An operating platform, comprising: The processor, memory, communication interface, and communication bus are provided, wherein the processor, memory, and communication interface communicate with each other via the communication bus. The memory is used to store at least one executable instruction, which causes the processor to perform the following operations: Obtain the page resources of the event page to be published, and extract the page structure resources and page reference resources from the page resources; The page structure resources are stored in the first resource area using object storage, and the page reference resources are stored in the second resource area using object storage. The resource directory of the first resource area records the activity identifier of the operation activity to which each page structure resource currently stored in the first resource area belongs. For the second resource area, the page reference resources are stored in the second resource area using object storage, and the resource identifier of the page reference resources is recorded in the resource directory of the second resource area. The storage paths of the first resource area and the second resource area are sent to the business server so that after receiving a user's page access request, the business server can identify the target page for the page access request, and extract the page structure resources of the target page from the first resource area and the page reference resources of the target page from the second resource area.
12. The operating platform according to claim 11, wherein, The executable instructions cause the processor to perform the following operations: Determine the file type of each resource in the page resources, and extract the page structure resources and page reference resources from the page resources according to the file type.
13. The operating platform according to claim 12, wherein, The executable instructions cause the processor to perform the following operations: Resources with an HTML file type are identified as page structure resources, and resources with a CSS or JS file type are identified as page reference resources.
14. The operating platform according to claim 11, wherein, The executable instructions cause the processor to perform the following operations: Retrieve the resource identifiers of each resource in the page resources; Identify resources containing a reference list, determine whether the resource identifier of the resource exists in the reference list, and if so, determine the resource containing the reference list as a page structure resource, and determine the resource corresponding to the resource identifier in the reference list of the page structure resource as a page reference resource.
15. The operating platform according to any one of claims 11-14, wherein, The executable instructions cause the processor to perform the following operations: Identify the operational activities corresponding to the activity page to be published; Determine whether the first resource area already stores page structure resources corresponding to the operational activity; If so, delete the stored page structure resources corresponding to the operation activity from the first resource area, and store the page structure resources in the first resource area in object storage mode; If not, the page structure resources are stored in the first resource area using object storage.
16. The operating platform according to claim 15, wherein, The executable instructions cause the processor to perform the following operations: Obtain the resource directory of the first resource zone and determine whether the resource directory of the first resource zone contains the activity identifier of the operation activity; If so, delete the stored page structure resources corresponding to the operation activity from the first resource area, and store the page structure resources in the first resource area in object storage mode; If not, the page structure resources are stored in the first resource area using object storage, and the activity identifier of the operation activity is added to the resource directory of the first resource area.
17. The operating platform according to claim 15, wherein, The executable instructions cause the processor to perform the following operations: Monitor change events in the first resource zone and generate version control data for the first resource zone based on the change events.
18. The operating platform according to claim 17, wherein, The executable instructions cause the processor to perform the following operations: Receive a rollback command for a preset version of the target activity page; Based on the version control data of the first resource area, obtain the page structure resources of the preset version of the target activity page; Delete the stored page structure resources corresponding to the operational activities to which the target activity page belongs from the first resource area, and store the preset version of the page structure resources of the target activity page in the first resource area in object storage.
19. The operating platform according to claim 11, wherein, The executable instructions cause the processor to perform the following operations: Obtain the activity identifier of the operation activity corresponding to the page referenced resource, and obtain the MD5 value of the page referenced resource. Generate the resource identifier of the page referenced resource based on the activity identifier and the MD5 value.
20. A business server, comprising: The processor, memory, communication interface, and communication bus are provided, wherein the processor, memory, and communication interface communicate with each other via the communication bus. The memory is used to store at least one executable instruction, which causes the processor to perform the following operations: Receive a user's page access request and identify the target page for the page access request; The page structure resources of the target page are extracted from the first resource area according to the storage path of the first resource area; wherein, the first resource area is determined according to the storage path of the first resource area; the directory entry corresponding to the operation activity to which the target page belongs is searched in the resource directory of the first resource area; and the page structure resources of the target page are extracted from the first resource area according to the resource storage address corresponding to the directory entry. The page reference resources of the target page are extracted from the second resource area according to the storage path of the second resource area; wherein, a reference list of the page structure resources is obtained; the resource identifier of the page application resource of the target page is determined from the reference list; the second resource area is determined according to the storage path of the second resource area, and a directory entry matching the resource identifier of the page reference resource is found in the resource directory of the second resource area; the page reference resources of the target page are extracted from the second resource area according to the storage address corresponding to the matching directory entry.
21. A computer storage medium storing at least one executable instruction that causes a processor to perform an operation corresponding to the active page processing method as described in any one of claims 1-10.