Message file processing method and device, electronic equipment and storage medium

By issuing message files to the target cache node in the message file processing system based on the terminal's file access request and location information, the problem of low access efficiency in the prior art is solved, and more efficient file access and lower network bandwidth pressure are achieved.

CN120201020APending Publication Date: 2025-06-24ZTE CORP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311737975.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-12-15
Publication Date
2025-06-24

AI Technical Summary

Technical Problem

The storage and acquisition methods of existing message files are inefficient in access, especially when a large number of message files are downloaded and retrieved in a centralized manner, network congestion is easily caused, which puts great pressure on the server's network bandwidth.

Method used

By determining the target access file based on the terminal's file access request, the target access file is determined, and the target location area and file access information are determined based on the terminal's location information. When the file access information meets the preset access policy triggering condition, the target access file is sent to the target cache node in the target location area, and a request response message is sent to the terminal to notify the terminal to obtain the target access file from the target cache node.

Benefits of technology

It realizes that the target access file is sent to the target cache node based on file access information, flexibly adjust the storage location of the target access file, improve access efficiency, reduce access to access nodes, and reduce network congestion.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120201020A_ABST
    Figure CN120201020A_ABST
Patent Text Reader

Abstract

The invention relates to a message file processing method and device, electronic equipment and a storage medium, and the method comprises the steps: determining a target access file according to a file access request of a terminal, determining a target position region according to the position information of the terminal, and determining the file access information corresponding to the target access file; and under the condition that the file access information meets a preset access strategy triggering condition, the target access file is sent to a target cache node of the target position area, so that a request response message is sent to the terminal, and the request response message is used for notifying the terminal to obtain the target access file from the target cache node. Therefore, the effect of issuing the target access file to the target cache node according to the file access information is achieved, and the effects of flexibly adjusting the storage position of the target access file and improving the access efficiency are achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of mobile communications, and particularly to a method, apparatus, electronic device, and storage medium for processing message files. Background Art

[0002] With the continuous development of mobile communications, the situation where users use terminals to obtain various message files is also increasing continuously, such as downloading files, obtaining messages, etc.

[0003] For the message file publishing end, message files are usually centrally stored on the server. When users obtain or download such message files, they need to download and obtain them from the centrally stored server. When a large number of message files are centrally downloaded and obtained, it causes a large pressure on the network bandwidth of the server, easily forms network congestion, and impacts the network. The existing storage and acquisition methods of message files have the problem of low access efficiency. Summary of the Invention

[0004] To solve the technical problem of low access efficiency in the existing storage and acquisition methods of message files, this application provides a method, apparatus, electronic device, and storage medium for processing message files.

[0005] In a first aspect, this application provides a method for processing message files, which is applied to an access node and includes:

[0006] Determine a target access file according to a file access request of a terminal;

[0007] Determine a target location area according to the location information of the terminal, and determine file access information corresponding to the target access file;

[0008] When the file access information meets a preset access policy trigger condition, send the target access file to a target cache node in the target location area;

[0009] Send a request response message to the terminal, where the request response message is used to notify the terminal to obtain the target access file from the target cache node.

[0010] In a second aspect, this application provides a method for processing message files, which is applied to a cache node and includes:

[0011] Receive a target access file, where the target access file is an access file sent by an access node according to a file access request of a terminal;

[0012] Receive a file acquisition request, where the file acquisition request is an acquisition request sent by the terminal according to a request response message, and the request response message is a response message sent by the access node for the file access request;

[0013] In response to the file access request, send the target access file to the terminal.

[0014] In a third aspect, the present application provides a method for processing a message file, which is applied to a terminal and includes:

[0015] Send a file access request to an access node, where the access node is configured to send a target access file corresponding to the file access request to a target cache node;

[0016] Receive a request response message, where the request response message is a response message sent by the access node in response to the file access request;

[0017] According to the request response message, send a file acquisition request to the target cache node;

[0018] Receive the target access file sent by the target cache node in response to the file acquisition request.

[0019] In a fourth aspect, the present application provides a device for processing a message file, which is applied to an access node and includes:

[0020] A first determination module, configured to determine a target access file according to a file access request of a terminal;

[0021] A second determination module, configured to determine a target location area according to the location information of the terminal, and determine file access information corresponding to the target access file;

[0022] A sending module, configured to send the target access file to a target cache node in the target location area when the file access information meets a preset access policy trigger condition;

[0023] A response module, configured to send a request response message to the terminal, where the request response message is used to notify the terminal to obtain the target access file from the target cache node.

[0024] In a fifth aspect, an electronic device is provided, including a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory communicate with each other through the communication bus;

[0025] The memory is used to store a computer program;

[0026] The processor is configured to implement the method described in any one of the embodiments of the first aspect, the second aspect, and the third aspect when executing the program stored in the memory.

[0027] In a sixth aspect, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the method described in any one of the first, second, and third aspects is implemented.

[0028] The above technical solutions provided in the embodiments of the present application have the following advantages compared with the prior art:

[0029] In the present application, according to a file access request of a terminal, a target access file is determined, a target location area is determined according to the location information of the terminal, file access information corresponding to the target access file is determined, and when the file access information meets a preset access policy trigger condition, the target access file is sent to a target cache node in the target location area, and a request response message is sent to the terminal thereby. The request response message is used to notify the terminal to obtain the target access file from the target cache node. Thus, the effect of sending the target access file to the target cache node according to the file access information is achieved, and the effect of flexibly adjusting the storage location of the target access file and improving the access efficiency is realized. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] The drawings here are incorporated into the specification and constitute a part of this specification, showing embodiments consistent with the present invention and used together with the specification to explain the principles of the present invention.

[0031] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, for those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.

[0032] Figure 1 It is a schematic flowchart of a method for processing a message file provided in an embodiment of the present application;

[0033] Figure 2 It is a schematic flowchart of a method for processing a message file provided in another embodiment of the present application;

[0034] Figure 3 It is a schematic flowchart of a method for processing a message file provided in another embodiment of the present application;

[0035] Figure 4 It is a schematic flowchart of a method for processing a message file provided in another embodiment of the present application;

[0036] Figure 5 It is a schematic flowchart of a method for processing a message file provided in another embodiment of the present application;

[0037] Figure 6Schematic structural diagram of a message file processing device provided by an embodiment of the present application;

[0038] Figure 7 Schematic structural diagram of an electronic device provided by an embodiment of the present application. Detailed implementation manners

[0039] To make the objectives, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Apparently, the described embodiments are some but not all of the embodiments of the present application. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present application without creative efforts shall fall within the protection scope of the present application.

[0040] Mobile communication is the communication between mobile entities or between a mobile entity and a fixed entity. Usually, the mobile entity is a terminal device and the fixed entity is a server. In the scenario of mobile communication, the more common application scenario is the communication interaction between the terminal and the server. For example, in the scenario of A2P (Application to Person) application messages in the message system of the fifth-generation mobile communication technology, the server sends multimedia messages, such as activity links, download links, etc., to the terminal. The terminal can access the server based on the multimedia message and download the accessed file. Such accessed files are usually centrally stored on the server. If a large number of terminals download the accessed file within the same time period, it will cause a great pressure on the network bandwidth of the server, resulting in network congestion and low download efficiency of the accessed file.

[0041] To solve the above problems, the present embodiment provides a method for processing a message file. By determining a target accessed file according to a file access request of a terminal, determining a target location area according to the location information of the terminal, and determining file access information corresponding to the target accessed file, and when the file access information meets a preset access policy trigger condition, sending the target accessed file to a target cache node in the target location area, so as to send a request response message to the terminal, and the request response message is used to notify the terminal to obtain the target accessed file from the target cache node. Thus, the effect of sending the target accessed file to the target cache node according to the file access information is achieved, and the effect of flexibly adjusting the storage location of the target accessed file and improving the access efficiency is realized.

[0042] Figure 1 Flow schematic diagram of a method for processing a message file provided by an embodiment of the present application. As Figure 1As shown, the method for processing a message file provided by an embodiment of the present application can be applied to a server corresponding to an access node, where the access node is responsible for the unified access of applications and terminals. Specifically, the method for processing a message file applied to the access node side may include the following steps:

[0043] Step S110: Determine a target access file according to the file access request of the terminal.

[0044] Specifically, in this embodiment, the terminal can establish a communication connection with the access node; when the terminal needs to obtain an access file, it can generate a file access request according to the required access file, and based on the communication connection, send the file access request to the access node, so that the access node can determine the target access file according to the file access request of the terminal; among them, the file access request can be used to indicate the target access file to be obtained. For example, the file access request can include information such as a file identifier and a terminal location identifier. The file identifier is used to indicate the access file to be accessed or downloaded, and the terminal location identifier is used to indicate the location where the terminal is located. For example, after receiving the file access request of the terminal, the access node can extract the file identifier in the file access request and determine the access file indicated by the file identifier as the target access file.

[0045] Step S120: Determine a target location area according to the location information of the terminal, and determine the file access information corresponding to the target access file;

[0046] Specifically, in this embodiment, after determining the target access file, the location information of the terminal can be determined to determine the target location area according to the location information of the terminal; among them, the location information of the terminal can represent the location where the terminal is located; the target location area can refer to the location area where the terminal is currently located. For example, after determining the target access file, the access node can determine the location information of the terminal according to the terminal location identifier carried in the file access request, and then determine the target location area according to the location information. Of course, in addition to determining the location information of the terminal according to the terminal location identifier carried in the file access request, the access node can also use other methods to determine the location information of the terminal, such as sending a terminal location acquisition request for the file access request to obtain the location information of the terminal. This embodiment does not limit this. Among them, the terminal location acquisition request can trigger the location system or location module to obtain the user terminal location through signaling, so that the location information of the terminal can be determined based on the user terminal location.

[0047] In this embodiment, a location area refers to several areas pre-divided according to geographical locations. For example, when the preset location areas include the area of Province A and the area of Province B, etc., if the location area where the terminal is currently located is the area of Province B, then the area of Province B is determined as the target location area, and based on the access situation corresponding to the target access file, the file access information corresponding to the target access file is determined. The file access information may include all access data of the terminal to the target access file, such as the number of accesses, access duration, file size, location area of the access terminal, etc.

[0048] Step S130: When the file access information meets the preset access policy trigger condition, send the target access file to the target cache node in the target location area;

[0049] Specifically, in this embodiment, after determining the file access information, it can be determined whether the file access information meets the preset access policy trigger condition. The access policy trigger condition indicates the condition for whether the target access file needs to be sent to the target cache node. The access policy trigger condition can be a condition of the number of accesses, a condition of access time, such as the access policy trigger condition indicates that when the number of accesses is greater than 100 times, the target access file needs to be sent to the target cache node, or the access policy trigger condition indicates that when the access time is greater than 10 hours, the target access file needs to be sent to the target cache node, etc. When the file access information meets the preset access policy trigger condition, it can be determined that the target access file needs to be sent to the target cache node currently. In addition, in this embodiment, cache nodes can be pre-set in multiple location areas. The target cache node refers to the cache node set in the target location area. Since the communication between the terminal and the cache node is affected by the physical distance, sending the target access file to the target cache node set in the target location area can shorten the physical distance between the terminal and the target cache node, and reduce the access volume of the access node, achieving the effect of improving the access efficiency.

[0050] Step S140: Send a request response message to the terminal, where the request response message is used to notify the terminal to obtain the target access file from the target cache node.

[0051] Specifically, in this embodiment, after sending the target access file to the target cache node in the target location area, a request response message can be sent to the terminal. The request response message is used to notify the terminal to obtain the target access file from the target cache node, so that the terminal can obtain the target access file from the target cache node according to the request response message, instead of obtaining the target access file from the access node, thereby reducing the access volume of the access node and improving the access efficiency.

[0052] In summary, in this embodiment, based on the file access request of the terminal, the target access file is determined, the target location area is determined according to the location information of the terminal, the file access information corresponding to the target access file is determined, and when the file access information meets the preset access policy trigger condition, the target access file is sent to the target cache node in the target location area, so as to send a request response message to the terminal, and the request response message is used to notify the terminal to obtain the target access file from the target cache node. Thus, the target access file is sent to the target cache node according to the file access information, realizing the effect of flexibly adjusting the storage location of the target access file and improving the access efficiency.

[0053] Specific implementation may include:

[0054] Step 1: The terminal establishes a communication connection with the access node, and based on the target access file to be obtained, outputs a file access request to the access node;

[0055] Step 2: The access node determines whether the file access information corresponding to the target access file meets the access policy trigger condition. If it meets, the target access file is sent to the target cache node, and a request response message is output to the terminal;

[0056] Step 3: The terminal obtains the target access file from the target cache node by sending a request response message.

[0057] To solve the problem of low access efficiency caused by a large amount of server access, the related technology usually forwards the access file to other servers for storage, thereby dispersing the server access volume. Although the server access volume can be reduced at this time, for the terminal, the physical distance between other servers and the terminal may be relatively far. At this time, during the process of the terminal accessing other services, there may still be situations such as lag due to the relatively far physical distance, that is, the access efficiency cannot be effectively improved. After receiving the access request, the access node in the embodiment of the present application sends the target access file to the cache node, so that the terminal can obtain the target access file from the cache node, thereby reducing the access volume of the receiving node, and at the same time solving the lag problem caused by the relatively far physical distance between the server corresponding to the access node and the terminal, and effectively improving the access efficiency of the terminal.

[0058] As Figure 2 shown, in an embodiment of the present application, step S120 of determining the target location area according to the location information of the terminal and determining the file access information corresponding to the target access file may include:

[0059] Step S121: Based on the file access request, determine the location information;

[0060] Step S122: Determine the location area including the terminal location as the target location area;

[0061] Step S123: Extract the access data of each terminal in the target location area for the target access file;

[0062] Step S124: Generate file access information based on the access data.

[0063] Specifically, the file access request output by the terminal in this embodiment may include a location identifier corresponding to the terminal. The location identifier is used to indicate the location where the terminal is located, that is, the terminal location, so as to determine the location information of the terminal according to the file access request; then, the location area including the terminal location is determined as the target location area. Since the terminal location represents a specific location and the location area represents a range of locations, at this time, the location area including the terminal location is determined as the target location area. For example, location area A includes location 1, location 2, and location 3, location area B includes location 4, location 5, and location 6, and the terminal location represented by the location information is location 4. At this time, location area B includes location 4, so location area B can be determined as the target location area; then, extract the access data of each terminal in the target location area for the target access file. There may be multiple terminals in the target location area that all access the target access file. At this time, the access data of each terminal in the target location area for the target access file can be extracted. For example, there are terminals 1, 2, and 3 in the target location area. Among them, terminal 1 obtains the target access file 1 time, terminal 2 obtains the target access file 0 times, and terminal 3 obtains the target access file 5 times. At this time, the access data can represent that the target access file is accessed 1 time by terminal 1 and 5 times by terminal 3. The above is only an example for illustration. The access data can also be the access time, the size of the target access file, etc.; then, file access information can be generated based on the access data. The file access information can include all the access data of the target access file. For example, the target access file can include one or more of the following: the number of accesses, the access duration, the size of the accessed file, etc. In one example, the file access information can be that the number of accesses is 100 times, the access duration is 200 minutes, the size of the accessed file is 150 gigabytes, etc., so as to determine the access situation of the target access file through the file access information.

[0064] In some alternative embodiments of the present application, determining the location information of the terminal based on the file access request may include extracting the terminal location identifier from the file access request; determining the terminal location based on the terminal location identifier; and performing a fuzzification process on the terminal location to generate the location information.

[0065] In this embodiment, a terminal location identifier is added during the process of generating a file access request at the terminal. The terminal location identifier is used to indicate the location where the terminal is located, that is, the terminal location can be determined based on the terminal location identifier. Since the specific location of the terminal belongs to the user's personal information, at this time, the terminal location can be blurred to generate location information. The blurring process means blurring the terminal location. For example, if the terminal location is A Street, at this time, A Street is blurred to generate location information indicating A City, so as to blur A Street to the more general A City, thereby playing a role in protecting the user's personal information.

[0066] In some alternative embodiments of the present application, the access policy trigger condition preset in step S130 represents a judgment condition for determining whether the target access file needs to be sent to the target cache node in the target location area. When the target access file is frequently accessed, network congestion is likely to occur, resulting in low terminal access efficiency. To improve the terminal access efficiency, in this embodiment, the target access file is sent to the target cache node in the target location area, thereby transferring the node obtained by the terminal from the access node to the target cache node, reducing the number of accesses to the access node, and achieving the effect of improving the access efficiency. Therefore, before determining that the target access file is sent to the target cache node in the target location area, it is necessary to judge whether the access situation of the current target access file requires it to be sent to the target cache node, that is, it is necessary to judge whether the target access file belongs to a file that is frequently accessed and causes low access efficiency. In this embodiment, the access policy trigger condition is used to judge whether the target access file needs to be sent to the cache node. When the file access information meets the preset access policy trigger condition, it can be determined that the target access file belongs to a file that is frequently accessed and causes low access efficiency. At this time, the target access file is sent to the target cache node in the target location area. On the contrary, when the file access information does not meet the preset access policy trigger condition, it can be determined that the target access file does not belong to a file that is frequently accessed and causes low access efficiency. At this time, it is not necessary to send the target access file to the target cache node in the target location area, and the target access file can be retained at the access node. Thus, in this embodiment, the file access information is screened through the access policy trigger condition, thereby playing a role in determining whether the target access file needs to be sent to the target cache node in the target location area.

[0067] It should be noted that the file access information in this embodiment can be generated based on all access data of the target access file, or can be generated based on the access data of each terminal in the target location area for the target access file. Among them, in the case of generating file access information based on all access data of the target access file, when the file access information meets the preset access policy trigger condition, first, the target cache node can be determined based on the file access information, and then the target access file is sent to the target cache node in the target location area. In the process of determining the target cache node, the location area with a higher access frequency can be determined as the target location area according to the access data of the file access information, and thus the cache node in the target location area is determined as the target cache node. For example, if the access data of the file access information indicates that the access times of location area A is 90 and the access times of location area B is 30, at this time, location area A can be determined as the target location area, and the cache node in location area A is determined as the target cache node.

[0068] In addition, in the case of generating file access information based on all access data of the target access file, when the file access information meets the preset access policy trigger condition, first, the target cache node can be determined based on the file access information, and then the target access file is sent to the target cache node in the target location area. In the process of determining the target cache node, the location area with a higher access frequency can be determined as the target location area according to the access data of the file access information, and thus the cache node in the target location area is determined as the target cache node. For example, if the access data of the file access information indicates that the access times of location area A is 90 and the access times of location area B is 30, at this time, location area A can be determined as the target location area, and the cache node in location area A is determined as the target cache node.

[0069] In some alternative embodiments of the present application, step S120, when the file access information meets the preset access policy trigger condition, sending the target access file to the target cache node in the target location area may include: when the file access information meets the preset access policy trigger condition, obtaining the service area corresponding to each cache node; determining the target cache node according to the service area corresponding to the cache node, where the target cache node is the cache node whose service area includes the target location area; and sending the target access file to the target cache node.

[0070] Specifically, in this embodiment, when the file access information meets the preset access policy trigger condition, it can be determined that the target access file needs to be sent to the cache node. Since there are multiple cache nodes, it is necessary to determine the target cache node from multiple cache nodes. The specific determination process can be as follows: First, obtain the service area corresponding to each cache node, where the service area identifies the preset service range that the cache node can cover. Here, the service area can be divided according to the physical address of the cache node. For example, if the physical address of cache node A is set in City A, the corresponding service area at this time includes City A and City B adjacent to City A. Dividing the corresponding service areas for the cache nodes enables the cache nodes to quickly respond to the terminals within the service area, thereby avoiding the problem of low access efficiency caused by physical distance or a large service area. Then, the target location area represents the area where the terminal is located. Thus, the cache node whose service area includes the target location area can be determined as the target cache node. Finally, send the target access file to the target cache node, so that the terminal can obtain the target access file from the target cache node. While reducing the number of accesses to the access node, it also ensures the acquisition efficiency of the terminal to obtain the target access file from the target cache node.

[0071] As Figure 3 shown, after determining the file access information corresponding to the target access file in step S120, it may further include

[0072] Step S125: Based on the file access information, determine at least one statistical parameter corresponding to the target access file, and the preset parameter threshold corresponding to the statistical parameter;

[0073] Step S126: When at least one statistical parameter is greater than the parameter threshold, confirm that the file access information meets the access policy trigger condition;

[0074] Step S127: When there is no statistical parameter greater than the parameter threshold, confirm that the file access information does not meet the access policy trigger condition.

[0075] In this embodiment, the statistical parameter represents the accessed data of the target accessed file included in the file access information. After determining the target accessed file according to the file access information, at least one statistical parameter corresponding to the target accessed file can be determined. The statistical parameter can be the number of accesses, access duration, size of the accessed file, etc. That is, different target accessed files can correspond to different statistical parameters. After determining the file type of the target accessed file, the statistical parameter corresponding to the file type can be determined as the parameter corresponding to the target accessed file. For example, when the target accessed file is File A, if the file type of File A is a large-capacity file, and the statistical parameters corresponding to the large-capacity file are the number of accesses, access duration, and size of the accessed file, then at this time, the number of accesses, access duration, and size of the accessed file can be determined as the statistical parameters corresponding to File A; when the file type of File A is a small-capacity file, and the statistical parameters corresponding to the small-capacity file are the number of accesses and access duration, the number of accesses and access duration can be determined as the statistical parameters corresponding to File A. Among them, the statistical parameter corresponding to the preset parameter threshold represents the threshold for determining the statistical parameter in advance. The statistical parameter corresponding to the preset parameter threshold can be data configured in advance, or a threshold determined in real time according to the file access information; the parameter threshold can be used to determine whether the target accessed file is a highly accessed file. Among them, a highly accessed file refers to an accessed file that is frequently accessed; if the user frequently obtains highly accessed files, network congestion is likely to occur, resulting in low access efficiency of the terminal. In this embodiment, when it is determined that the target accessed file is a highly accessed file, the target accessed file can be sent to the cache node, so that the terminal can obtain the target accessed file from the cache node instead of obtaining the target accessed file from the access nodes, thereby improving the access efficiency.

[0076] Exemplarily, taking the statistical parameter as the number of accesses as an example, when the parameter threshold corresponding to the number of accesses is 100 times, that is, when the number of accesses is greater than 100, it can be determined that the target access file is frequently accessed. At this time, it can be determined that the file access information corresponding to the target access file meets the access policy trigger condition, and the target access file can be determined as a high-access file, so as to send the high-access file to the cache node, so that the terminal can obtain the high-access file from the cache node, avoiding the network congestion problem caused by the terminal frequently obtaining the high-access file, and thus effectively improving the access efficiency of the terminal; conversely, when the number of accesses is not greater than 100, it can be determined that the file access information corresponding to the target access file does not meet the access policy trigger condition. At this time, it can be determined that the target access file does not belong to the high-access file, and the target access file is retained at the access node until the number of accesses corresponding to the target access file is greater than 100, and then the target access file is sent to the cache node. In addition, since the file access information can include multiple statistical parameters, it can be determined whether there is at least one statistical parameter greater than the parameter threshold. In the case where at least one statistical parameter is greater than the parameter threshold, it can be confirmed that the file access information meets the access policy trigger condition, and the target access file is sent to the cache node to improve the access effect; conversely, in the case where there is no statistical parameter greater than the parameter threshold, it can be determined that the current target access file does not belong to the frequently accessed file, and there will be no network congestion and the problem of low terminal access efficiency, so it can be confirmed that the file access information does not meet the access policy trigger condition and the target access file is retained at the access node.

[0077] In a specific example, the access policy trigger condition means that the number of accesses is greater than 100, and the file access information represents the number of terminal accesses. At this time, during the process of the access node responding to the file access request of the terminal, the number of accesses of the terminal is continuously collected to generate the number of terminal accesses corresponding to the target access file. During the first 100 accesses, the file access information does not meet the preset access policy trigger condition, and the access node can directly send the target access file to the terminal; during the 101st and subsequent accesses, the number of terminal accesses is 101, which is greater than the number of accesses 100, that is, the file access information meets the preset access policy trigger condition. At this time, the access node sends the target access file to the target cache node and sends a request response message to the terminal, and the target cache node sends the target access file to the terminal, so as to send the high-access file to the target cache node, reduce the access volume of the access node, and improve the access efficiency. It should be noted that during the access process after the 101st time of the terminal, the access node can directly send a request response message to the terminal so that the terminal can obtain the target access file from the target terminal.

[0078] Figure 4Schematic flowchart of a method for processing a message file provided by an embodiment of the present application.

[0079] As Figure 4 shown, the present application discloses an embodiment, providing a method for processing a message file. The method for processing the message file in this embodiment can be applied to the server corresponding to the cache node, where the cache node is a node for caching the target access file, so that the terminal can directly obtain the target access file from the cache node. Specifically, the method for processing the message file applied to the cache node side may include the following steps:

[0080] Step S410: Receive the target access file, where the target access file is an access file sent by the access node according to the file access request of the terminal;

[0081] Step S420: Receive the file acquisition request, where the file acquisition request is an acquisition request sent by the terminal according to the request response message, and the request response message is a response message sent by the access node for the file access request;

[0082] Step S430: For the file acquisition request, send the target access file to the terminal.

[0083] In this embodiment, after the access node sends the target access file to the cache node, the cache node receives and stores the target access file, and receives the file acquisition request. The file acquisition request is an acquisition request sent by the terminal according to the request response message. In response to the file acquisition request, the target access file is sent to the terminal, thereby playing a role in sending the target access file to the terminal through the cache node, achieving the effect of reducing the access volume of the access node and improving the access efficiency.

[0084] In addition, for the cache node, there may be a situation where the cache node receives and stores a large number of target access files. At this time, the cache node may also experience network congestion, resulting in low access efficiency of the terminal. During the process of the cache node responding to the file acquisition request, it can also determine the cache file access information according to the file acquisition request, and determine whether the cache file access information meets the preset cache access policy trigger condition. If the cache file access information meets the preset cache access policy trigger condition, the target cache file can be sent to the secondary cache node. The secondary cache node can be a node geographically close to the cache node, or other nodes within the service area of the cache node, etc. In this way, it can play a role in making full use of each node and improving the access efficiency of the terminal.

[0085] In some alternative embodiments of the present application, step S230 for the file acquisition request, sending the target access file to the terminal, may include:

[0086] Determine the target access file according to the file acquisition request;

[0087] Determine whether to receive the target access file sent by the access node;

[0088] In the case of not receiving the target access file sent by the access node, perform a pull operation, which is used to pull the target access file from the access node.

[0089] Specifically, in this embodiment, when the cache node responds to the file acquisition request, it first determines the target access file according to the file acquisition request; because errors may occur in the process of the access node sending the target access file, such as file sending errors and communication interference, resulting in the cache node not accurately receiving the target access file, so it can be determined whether to receive the target access file sent by the access node. In the case of not receiving the target access file sent by the access node, perform a pull operation, which is used to pull the target access file from the access node. Thus, when the cache node does not accurately receive the target access file, it can actively pull the target access file from the access node through the pull operation, achieving the effect of improving the effectiveness of the cache node's response to the file acquisition request.

[0090] Figure 5 It is a schematic flow chart of a method for processing message files provided by an embodiment of the present application.

[0091] As Figure 5 shown, the present application discloses an embodiment, providing a method for processing message files. The method for processing message files in this embodiment can be applied to a terminal, and the terminal can be communicatively connected to the access node and the cache node in the foregoing embodiments. Specifically, the method for processing message files applied to the terminal side may include the following steps:

[0092] Step S510: Send a file access request to the access node, and the access node is used to send the target access file corresponding to the file access request to the target cache node;

[0093] Step S520: Receive a request response message, where the request response message is a response message sent by the access node in response to the file access request;

[0094] Step S530: According to the request response message, send a file acquisition request to the target cache node;

[0095] Step S540: Receive the target access file sent by the target cache node in response to the file acquisition request.

[0096] In this embodiment, when the terminal obtains the target access file, it first sends a file access request to the access node. It can directly receive the target access file sent by the access node, or receive the response message sent by the access node for the file access request. Then, when receiving the request response message sent by the access node, it sends a file acquisition request to the target cache node according to the request response message. Then, it receives the target access file sent by the target cache node for the file acquisition request.

[0097] Specifically, the terminal can access the communication network through the access node, and through the connection with the access node, send the file access request to the access node, so that the access node generates a request response message after receiving the file access request. After the terminal receives the request response message fed back by the access node, it can send a file acquisition request to the target cache node according to the request response message to directly obtain the target access file from the target cache node.

[0098] The following scenarios may exist in specific implementation:

[0099] Scenario 1: Access nodes are built nationwide and cache nodes are built in large regions.

[0100] Step 0: Set the access policy trigger condition through the policy configuration module, for example: set by the number of accesses, and if it exceeds the specified number of accesses, it is considered a high-access file.

[0101] Step 1: The terminal establishes a communication connection with the access nodes built nationwide, and the access node counts the access to the target access file to determine the file access information corresponding to the target access file.

[0102] Step 2: The access node obtains the location of the terminal and performs desensitization processing on the terminal location, only showing the large region location to obtain the target location area.

[0103] Step 3: After the file access information reaches the policy trigger condition, the target access file is sent to the target cache node in the target location area (corresponding large region).

[0104] Step 4: The access node notifies the terminal to obtain the target access file from the target location area in the corresponding large region.

[0105] Scenario 2: Access nodes are built in large regions and cache nodes are built in provinces.

[0106] Step 0: Set the access policy trigger condition through the policy configuration module, for example: set by the number of accesses, and if it exceeds the specified number of accesses, it is considered a high-access file.

[0107] Step 1: The terminal establishes a communication connection with the access nodes built across the country. The access nodes count the accesses to the target access file and determine the file access information corresponding to the target access file.

[0108] Step 2: The access node obtains the location of the terminal and performs desensitization processing on the terminal location, only showing the provincial location, to obtain the target location area.

[0109] Step 3: After the file access information reaches the policy trigger condition, the target access file is sent to the target cache node in the target location area (corresponding province).

[0110] Step 4: The access node notifies the terminal to obtain the target access file from the target location area in the corresponding province.

[0111] Scenario 3: Access nodes are built at the provincial level and cache nodes are built at the city level.

[0112] Step 0: Set the access policy trigger condition through the policy configuration module, for example: set by the number of accesses, and a file is considered a high-access file if it exceeds the specified number of accesses.

[0113] Step 1: The terminal establishes a communication connection with the access nodes built across the country. The access nodes count the accesses to the target access file and determine the file access information corresponding to the target access file.

[0114] Step 2: The access node obtains the location of the terminal and performs desensitization processing on the terminal location, only showing the city location, to obtain the target location area.

[0115] Step 3: After the file access information reaches the policy trigger condition, the target access file is sent to the target cache node in the target location area (corresponding city).

[0116] Step 4: The access node notifies the terminal to obtain the target access file from the target location area in the corresponding city.

[0117] Scenario 4: Assist in selecting cache nodes.

[0118] Step 0: Set the access policy trigger condition through the policy configuration module, for example: set by the number of accesses, and a file is considered a high-access file if it exceeds the specified number of accesses.

[0119] Step 1: The terminal establishes a communication connection with the access nodes built across the country. The access nodes count the accesses to the target access file and determine the file access information corresponding to the target access file.

[0120] Step 2: The access node obtains the location of the terminal and performs desensitization processing on the terminal location, only showing the regional location, to obtain the target location area.

[0121] Step 3: Filter out the location areas to be constructed according to the target location area of the terminal and the number of file access information. When constructing cache nodes subsequently, selection and construction can be carried out from the location areas to be constructed.

[0122] As Figure 6 shown, the present application also discloses an embodiment, providing a processing device for message files, which is applied to an access node and includes:

[0123] A first determination module 610, configured to determine a target access file according to a file access request of a terminal;

[0124] A second determination module 620, configured to determine a target location area according to the location information of the terminal, and determine file access information corresponding to the target access file;

[0125] A sending module 630, configured to send the target access file to a target cache node in the target location area when the file access information meets a preset access policy trigger condition;

[0126] A response module 640, configured to send a request response message to the terminal, where the request response message is used to notify the terminal to obtain the target access file from the target cache node.

[0127] In an embodiment, the second determination module 620 may include:

[0128] A first determination unit, configured to determine location information based on the file access request;

[0129] A second determination unit, configured to determine the location area including the terminal location as the target location area;

[0130] A first extraction unit, configured to extract access data of each terminal in the target location area for the target access file;

[0131] A first generation unit, configured to generate file access information based on the access data.

[0132] In an embodiment, the first determination unit may include:

[0133] A second extraction unit, configured to extract a terminal location identifier from the file access request;

[0134] A third determination unit, configured to determine the terminal location based on the terminal location identifier;

[0135] A first generation unit, configured to perform fuzzy processing on the terminal location to generate location information.

[0136] In an embodiment, after determining the file access information corresponding to the target access file, it further includes:

[0137] A third determination module, configured to determine at least one statistical parameter corresponding to a target accessed file and a parameter threshold preset for the statistical parameter based on file access information;

[0138] A fourth determination module, configured to confirm that the file access information meets the access policy trigger condition when at least one statistical parameter is greater than the parameter threshold;

[0139] A fifth determination module, configured to confirm that the file access information does not meet the access policy trigger condition when there is no statistical parameter greater than the parameter threshold.

[0140] In one embodiment, the sending module 630 may include:

[0141] An obtaining unit, configured to obtain the service area corresponding to each cache node when the file access information meets the preset access policy trigger condition;

[0142] A fourth determination unit, configured to determine a target cache node according to the service area corresponding to the cache node, where the target cache node is a cache node whose service area includes the target location area;

[0143] A sending unit, configured to send the target accessed file to the target cache node.

[0144] The implementation processes of the functions and roles of each module in the above device are specifically detailed in the implementation processes of the corresponding steps in the above method, and will not be elaborated here.

[0145] As Figure 7 shown, an embodiment of the present application provides an electronic device, including a processor 710, a communication interface 720, a memory 730, and a communication bus 740. Among them, the processor 710, the communication interface 720, and the memory 730 complete communication with each other through the communication bus 740.

[0146] The memory 730 is used to store a computer program;

[0147] In an embodiment of the present application, when the processor 710 is used to execute the program stored on the memory 730, it implements the method provided in any one of the foregoing method embodiments.

[0148] An embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, it implements the method provided in any one of the foregoing method embodiments.

[0149] It should be noted that in this document, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the terms "comprising", "including" or any other variation thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device comprising a series of elements not only includes those elements, but also includes other elements not expressly listed, or also includes elements inherent to such process, method, article or device. Without further limitation, an element defined by the statement "comprising one..." does not exclude the presence of additional identical elements in the process, method, article or device comprising the said element.

[0150] The specific embodiments of the present specification have been described above. Other embodiments are within the scope of the appended 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 the desired result. Additionally, the processes depicted in the figures do not necessarily require the particular order or sequential order shown to achieve the desired result. In certain embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0151] The above are only specific embodiments of the present invention, enabling those skilled in the art to understand or implement the present invention. Various modifications to these embodiments will be obvious to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present invention. The present invention will not be limited to the embodiments shown herein, but rather to the broadest scope consistent with the principles and novel features claimed herein.

Claims

1. A method for processing a message file, characterized in that, Applied to an access node, including: Determine a target access file according to a file access request of a terminal; Determine a target location area according to the location information of the terminal, and determine file access information corresponding to the target access file; When the file access information meets a preset access policy trigger condition, send the target access file to a target cache node in the target location area; Send a request response message to the terminal, where the request response message is used to notify the terminal to obtain the target access file from the target cache node.

2. The method according to claim 1, characterized in that, The determining the target location area according to the location information of the terminal, and determining the file access information corresponding to the target access file includes: Determine the location information based on the file access request; Determine the location area containing the terminal location as the target location area; Extract access data of each terminal in the target location area for the target access file; Generate the file access information based on the access data.

3. The method according to claim 2, wherein The determining the location information of the terminal based on the file access request includes: Extract a terminal location identifier from the file access request; Determine the terminal location based on the terminal location identifier; Perform fuzzification processing on the terminal location to generate the location information.

4. The method according to claim 1, wherein After determining the file access information corresponding to the target access file, further includes: Determine at least one statistical parameter corresponding to the target access file based on the file access information, and a preset parameter threshold corresponding to the statistical parameter; When at least one of the statistical parameters is greater than the parameter threshold, confirm that the file access information meets the access policy trigger condition.

5. The method according to claim 1, characterized in that, The sending the target access file to the target cache node in the target location area when the file access information meets a preset access policy trigger condition includes: When the file access information meets a preset access policy trigger condition, obtain service areas corresponding to each cache node; Determine the target cache node according to the service area corresponding to the cache node; Send the target access file to the target cache node.

6. A method for processing a message file, characterized in that, Applied to a cache node, including: Receive a target access file, where the target access file is an access file sent by an access node according to a file access request of a terminal; Receive a file acquisition request, where the file acquisition request is an acquisition request sent by the terminal according to a request response message, and the request response message is a response message sent by the access node for the file access request; Send the target access file to the terminal for the file acquisition request.

7. A method for processing a message file, characterized in that, Applied to a terminal, including: Send a file access request to an access node, where the access node is used to send a target access file corresponding to the file access request to a target cache node; Receive a request response message, where the request response message is a response message sent by the access node for the file access request; Send a file acquisition request to the target cache node according to the request response message; Receive the target access file sent by the target cache node for the file acquisition request.

8. A processing device for a message file, characterized in that, Applied to an access node, including: A first determination module, configured to determine a target access file according to a file access request of a terminal; A second determination module, configured to determine a target location area according to the location information of the terminal, and determine file access information corresponding to the target access file; A sending module, configured to send the target access file to a target cache node in the target location area when the file access information meets a preset access policy trigger condition; A response module, configured to send a request response message to the terminal, where the request response message is used to notify the terminal to obtain the target access file from the target cache node.

9. An electronic device, characterized in that, Including a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory complete mutual communication through the communication bus; The memory is used to store a computer program; The processor is configured to implement the method according to any one of claims 1-7 when executing the program stored on the memory.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that, The computer program, when executed by the processor, implements the method according to any one of claims 1-7.