A file processing method and device, a server and a storage medium
By receiving file processing requests from the target terminal, determining the target configuration information, and configuring the performance parameters of the second server, the problem of lag when the terminal processes files is solved, and more efficient data transmission and file processing are achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- CHINA UNITED NETWORK COMM GRP CO LTD
- Filing Date
- 2023-06-07
- Publication Date
- 2026-04-10
AI Technical Summary
There may be a delay when the terminal sends control commands to the server, which may cause the terminal to lag when processing files and reduce the effectiveness of file processing.
By receiving file processing requests from the target terminal, the target configuration information is determined, and information configuration instructions are sent to the second server to enable it to process target files. Preset performance parameters, including preset memory size, preset transmission rate, preset computing power, and preset rendering power, are used to reduce line distance and improve data transmission stability and file processing efficiency.
It effectively processes target files, improves data transmission stability and file processing efficiency, reduces the line distance between the terminal and the server, and enhances the user experience.
Smart Images

Figure CN116760816B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of computers, and in particular to a file processing method and device, a server, and a storage medium. BACKGROUND
[0002] At present, a user can store a personal computer file in a server, and then send a control command to the server through a keyboard and a mouse, so as to perform related file processing.
[0003] However, in the above method, due to network fluctuations, a large amount of file processing of the server, and the like, there may be a delay when the terminal sends a control command to the server, which causes a lag phenomenon when the terminal processes a file, and reduces the effectiveness of file processing. SUMMARY
[0004] The present application provides a file processing method and device, a server, and a storage medium, which solve the technical problem that there may be a delay when a terminal sends a control command to a server, which causes a lag phenomenon when the terminal processes a service, and reduces the effectiveness of service processing.
[0005] In a first aspect, the present application provides a file processing method, including: receiving a file processing request sent by a target terminal, the file processing request including an internet protocol (IP) address of the target terminal, a file identifier of a target file, and a processing type of the target file, the target file being a file included in the target terminal, the file processing request being used to request processing of the target file; determining a target identifier from a first correspondence relationship, the target identifier being an identifier corresponding to the IP address of the target terminal, the first correspondence relationship including a plurality of IP addresses and an identifier corresponding to each IP address in the plurality of IP addresses; determining target configuration information based on the file identifier of the target file and the processing type of the target file, the target configuration information including a preset performance parameter and file content of the target file, the preset performance parameter including one or more of a preset memory size, a preset transmission rate, a preset computing capability, and a preset rendering capability; sending an information configuration indication to a second server, the second server being a server corresponding to the target identifier, the information configuration indication including the target configuration information, the information configuration indication being used to instruct the second server to configure the target configuration information, so that the second server has a function of processing the target file; and in a case where a configuration success response sent by the second server is received, sending a file processing response to the target terminal, the file processing response including the target identifier, the file processing response being used to indicate that the second server is a server processing the target file, and the configuration success response being used to notify that the target configuration information is configured successfully.
[0006] Optionally, the file processing request further comprises a user identifier of a target user corresponding to the target terminal, and the first server comprises a plurality of storage areas; the target configuration information is determined based on the file identifier of the target file and the processing type of the target file, and specifically comprises: determining a target storage area from the plurality of storage areas, the target storage area being a storage area corresponding to the user identifier of the target user, wherein one storage area comprises file content of at least one file; determining the file content of the target file from the target storage area based on the file identifier of the target file; and determining the preset performance parameter based on the processing type of the target file.
[0007] Optionally, the file processing method further comprises: receiving a processing end notification sent by the second server, the processing end notification comprising file content of a preset file, the preset file being a file obtained by processing the target file according to the processing type of the target file by the second server, the processing end notification being used to notify that the target file processing is successful; and storing the preset file to the target storage area.
[0008] Optionally, the file processing request can further comprise a first time point, the first time point being a processing time point of the target file indicated by the target terminal; and the information configuration indication is sent to the second server at a second time point, the second time point being before the first time point.
[0009] In a second aspect, the present application provides a file processing apparatus, comprising: a receiving module, a determining module and a sending module; the receiving module is configured to receive a file processing request sent by a target terminal, the file processing request comprising an IP address of the target terminal, a file identifier of a target file and a processing type of the target file, the target file being a file included in the target terminal, and the file processing request being configured to request processing of the target file; the determining module is configured to determine a target identifier from a first correspondence relationship, the target identifier being an identifier corresponding to the IP address of the target terminal, and the first correspondence relationship comprising a plurality of IP addresses and an identifier corresponding to each of the plurality of IP addresses; the determining module is further configured to determine target configuration information based on the file identifier of the target file and the processing type of the target file, the target configuration information comprising a preset performance parameter and file content of the target file, and the preset performance parameter comprising one or more of a preset memory size, a preset transmission rate, a preset computing capability and a preset rendering capability; the sending module is configured to send an information configuration instruction to a second server, the second server being a server corresponding to the target identifier, the information configuration instruction comprising the target configuration information, and the information configuration instruction being configured to instruct the second server to configure the target configuration information, so that the second server has the function of processing the target file; and the sending module is further configured to send a file processing response to the target terminal if a configuration success response sent by the second server is received, the file processing response comprising the target identifier, and the file processing response being configured to indicate that the second server is a server processing the target file, and the configuration success response being configured to notify that the target configuration information is configured successfully.
[0010] Optionally, the file processing request further comprises a user identifier of a target user, the target user being a user corresponding to the target terminal, and the first server comprising a plurality of storage areas; the determining module is specifically configured to determine a target storage area from the plurality of storage areas, the target storage area being a storage area corresponding to the user identifier of the target user, and one storage area comprising file content of at least one file; the determining module is further specifically configured to determine the file content of the target file from the target storage area based on the file identifier of the target file; and the determining module is further specifically configured to determine the preset performance parameter based on the processing type of the target file.
[0011] Optionally, the file processing apparatus further comprises a storage module; the receiving module is further configured to receive a processing end notification sent by the second server, the processing end notification comprising file content of a preset file, the preset file being a file obtained after the second server processes the target file according to the processing type of the target file, and the processing end notification being configured to notify that the target file is processed successfully; and the storage module is configured to store the preset file to the target storage area.
[0012] Optionally, the file processing request can further include a first time point, the first time point being a processing time point of the target file indicated by the target terminal, and the sending module is further configured to send the information configuration indication to the second server at a second time point, the second time point being located before the first time point.
[0013] In a third aspect, the present application provides a server, comprising: a processor and a memory configured to store processor-executable instructions; wherein the processor is configured to execute the instructions to implement any of the optional file processing methods in the first aspect.
[0014] In a fourth aspect, the present application provides a computer-readable storage medium, the computer-readable storage medium storing instructions, when the instructions in the computer-readable storage medium are executed by a server, the server is capable of executing any of the optional file processing methods in the first aspect.
[0015] The file processing method, device, server and storage medium provided by the present application, the first server can receive the file processing request sent by the target terminal, the first server can determine the target identifier from the first correspondence relationship, and then determine the target configuration information based on the file identifier of the target file and the processing type of the target file, the target configuration information including the file content of the target file and the preset performance parameter, and then send the information configuration indication to the second server, the information configuration indication being used to instruct the second server to configure the target configuration information, so that the second server has the function of processing the target file, and in the case that the first server receives the configuration success response sent by the second server, the first server can send the file processing response to the target terminal, the file processing response being used to instruct the second server to be the server for processing the target file. In the present application, since the preset performance parameter includes one or more of the preset memory size, the preset transmission rate, the preset computing capability and the preset rendering capability, therefore, after the second server is configured based on the target configuration information, the second server can have the function of processing the target file and effectively process the target file. Since the edge cloud corresponding to the target identifier is the edge cloud with a relatively short line distance from the IP address of the target terminal, therefore, the first server instructs the second server to be the server for processing the target file, which can reduce the line distance between the second server and the target terminal, improve the stability of data transmission and the effectiveness of file processing. BRIEF DESCRIPTION OF DRAWINGS
[0016] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the drawings needed to be used in the embodiments or prior art description will be briefly introduced.
[0017] Figure 1 A network architecture schematic diagram of an application scenario of a file processing method provided by an embodiment of the present application is shown in FIG. 1.
[0018] Figure 2 A network architecture schematic diagram of a file processing system provided by an embodiment of the present application is shown in FIG. 2.
[0019] Figure 3 A flowchart of a file processing method provided by an embodiment of the present application is shown in FIG. 3.
[0020] Figure 4 A flowchart of another file processing method provided by an embodiment of the present application is shown in FIG. 4.
[0021] Figure 5 A flowchart of another file processing method provided by an embodiment of the present application is shown in FIG. 5.
[0022] Figure 6 A flowchart of another file processing method provided by an embodiment of the present application is shown in FIG. 6.
[0023] Figure 7 A structural schematic diagram of a file processing apparatus provided by an embodiment of the present application is shown in FIG. 7.
[0024] Figure 8 A structural schematic diagram of another file processing apparatus provided by an embodiment of the present application is shown in FIG. 8. DETAILED DESCRIPTION
[0025] The file processing method, apparatus, server and storage medium provided by the embodiments of the present application will be described in detail below with reference to the accompanying drawings.
[0026] The terms “first” and “second” and the like in the description of the present application and the accompanying drawings are used to distinguish different objects, rather than to describe a specific order of the objects, for example, the first server and the second server are used to distinguish different servers, rather than to describe a specific order of the servers.
[0027] In addition, the terms “include” and “have” and any variations thereof mentioned in the description of the present application are intended to cover the inclusions without exclusivity. For example, a process, method, system, product or device including a series of steps or units is not limited to the listed steps or units, but can optionally include other steps or units not listed or can optionally include other steps or units inherent to the process, method, product or device.
[0028] It should be noted that in the embodiments of the present application, the words such as "exemplary" or "for example" are used to mean serving as an example, instance, or illustration. Any embodiment or design presented as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more advantageous or superior to other embodiments or design solutions. In fact, the use of the words such as "exemplary" or "for example" is intended to present the relevant concept in a specific manner.
[0029] In the present application, "and / or" includes any one of the two methods or both methods.
[0030] In the description of the present application, "a plurality of" means two or more, unless otherwise specified.
[0031] Some concepts related to a file processing method, device, server and storage medium provided by the embodiments of the present application are explained and described below.
[0032] Cloud computer, also known as cloud desktop or virtual personal computer (PC), is a desktop environment that is virtualized and stored in a cloud server, and provides a desktop environment that is allocated and delivered on demand. Users can access the personal space of the cloud computer through various types of terminal devices via a network.
[0033] From the perspective of technical architecture, cloud computer is an application mode of virtualization technology extending from server computing environment to computer terminal environment. Cloud computer centrally manages dispersed computer terminals on a cloud server through virtualization technology. Cloud computer solution is a mode of supplying and delivering scalable and elastic shared physical or virtual resource pool on demand through a network. Cloud computer operating system runs on shared physical or virtual resource pool, and can fully utilize the elastic expansion capability of computing and storage resources of cloud computing.
[0034] Unlike traditional local PC, the operating system of cloud computer is installed on a remote host computer, and the local terminal device only performs input and output of control commands such as keyboard and mouse, and data content such as audio and video, and files. The advantage of cloud computer to user experience is that users can access the cloud computer personal space on the network through different devices at any location and at any time, which is convenient for mobile office.
[0035] According to the implementation principle of cloud computer technology, the input information of the user at the terminal needs to be transmitted to the central cloud server through the network for processing, and then the output information is sent back to the terminal through the network for display and play. The transmission delay, packet loss, jitter and other performance indicators of information data in the communication network are closely related to user experience. Due to the large number of network devices and long distance of the line from the terminal to the central cloud server, the network performance lacks stability guarantee, and the user experience is not good due to the fluctuation of network performance indicators, such as mouse lag at the user end, obvious operation delay at the computer end, and out-of-sync of audio and video content playback progress.
[0036] Based on the description in the background art, in the related art, there may be a delay when the terminal sends a control command to the server, which causes the terminal to process the business to appear a lag phenomenon, and reduces the effectiveness of business processing. Based on this, the embodiments of the present application provide a file processing method, device, server and storage medium. Since the preset performance parameters include one or more of the preset memory size, the preset transmission rate, the preset computing capability and the preset rendering capability, the second server can have the function of processing the target file after being configured based on the target configuration information, and effectively process the target file. Since the edge cloud corresponding to the target identifier is an edge cloud with a short line distance from the IP address of the target terminal, the first server instructing the second server to be a server for processing the target file can reduce the line distance between the second server and the target terminal, improve the stability of data transmission, and improve the effectiveness of file processing.
[0037] The file processing method, device, server and storage medium provided by the embodiments of the present application are applied to the scene of file processing. When the first server receives the file processing request sent by the target terminal, the identifier corresponding to the IP address of the target terminal can be determined from the first correspondence relationship. Then, based on the file identifier of the target file and the processing type of the target file, the target configuration information is determined, and then the information configuration instruction is sent to the second server. In the case of receiving the configuration success response sent by the second server, the file processing response is sent to the target terminal, which is used to indicate that the second server is a server for processing the target file.
[0038] Figure 1 A network architecture diagram of the application scenario of the file processing method provided by the embodiments of the present application. As shown in FIG. 1, the network architecture diagram of the application scenario of the file processing method provided by the embodiments of the present application includes a terminal, a first server and a second server. Figure 1As shown, the central cloud includes the server 109 and the network device 110, and the edge cloud includes the server 107, the network device 105, and the network device 106, wherein the network device 105 is a mobile Internet core network data forwarding plane (user plane, UP), and the network device 106 is a multiple service gateway data forwarding plane (multiple service gateway-user plane, MSG-U).
[0039] In the embodiment of the application, the server 109 can send an information configuration indication to the server 107 through the network device 110, the network device 108, and the network device 106, and the terminal 101 can access the server 107 after the server 107 is configured.
[0040] Specifically, the terminal 101 can access the edge cloud through the network device 102 using the mobile Internet, and then access the server 107 through the network device 105 and the network device 106; the terminal 101 can access the edge cloud through the network device 103 using the broadband network, and then access the server 107 through the network device 106; or the terminal 101 can access the edge cloud through the network device 104 using the leased line network, and then access the server 107 through the network device 106.
[0041] For example, the central cloud can be deployed in a provincial core room, and the edge cloud can be deployed in a city or a network aggregation node.
[0042] The file processing method and device, the server, and the storage medium provided in the embodiment of the application can be applied to a file processing system, for example, Figure 2 As shown, the file processing system includes the terminal 201, the server 202, and the server 203. Generally, the connection between the above-mentioned devices can be a wireless connection in actual application, in order to conveniently and intuitively represent the connection relationship between the devices, Figure 1 In the embodiment, the connection between the devices is represented by a solid line.
[0043] The terminal 201 can be a mobile phone, a tablet computer, a desktop computer, a laptop computer, a handheld computer, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a cellular phone, a personal digital assistant (PDA), an augmented reality (AR) \ virtual reality (VR) device, and the like. The specific form of the terminal is not particularly limited in the present disclosure. The terminal 201 can interact with a user through one or more of a keyboard, a touchpad, a touch screen, a remote controller, voice interaction, or a handwriting device. In the present embodiment, the terminal 201 is configured to send a file processing request to the server 203, where the file processing request is configured to request processing of the target file.
[0044] The server 202 and the server 203 can be a stand-alone physical server, a server cluster composed of multiple physical servers, or a distributed system. The server 202 and the server 203 can also be a cloud server providing cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, content delivery network (CDN) services, and big data and artificial intelligence platforms. In the present embodiment, the server 203 is configured to send an information configuration instruction to the server 202, where the information configuration instruction is configured to instruct the server 202 to configure target configuration information. The server 202 is configured to receive the information configuration instruction sent by the server 203, and perform configuration based on the target configuration information.
[0045] As shown in Figure 3 The file processing method provided by the present application can include S101-S105.
[0046] S101, the first server receives a file processing request sent by a target terminal.
[0047] The file processing request includes an IP address of the target terminal, a file identifier of a target file, and a processing type of the target file. The target file is included in the target terminal. The file processing request is configured to request processing of the target file.
[0048] It can be understood that the terminal includes a plurality of files. The terminal can determine a target file to be processed from the plurality of files, and then send a file processing request to the first server.
[0049] It should be understood that the first server also includes the plurality of files.
[0050] Optionally, the processing type of the file can be text editing, picture processing, video playing, etc.
[0051] It should be noted that the number of target files can be one or multiple, and the number of target files is not limited in the embodiments of the present application.
[0052] Optionally, the target terminal can send the file processing request to the first server in a manner of mobile network, broadband network or dedicated line.
[0053] S102, the first server determines a target identifier from the first correspondence.
[0054] The target identifier is an identifier corresponding to the IP address of the target terminal, and the first correspondence includes a plurality of IP addresses and an identifier corresponding to each IP address in the plurality of IP addresses.
[0055] It should be understood that the identifier corresponding to each IP address stored in the first correspondence is the identifier of an edge cloud, wherein an edge cloud server is included in an edge cloud, and the first server can determine the edge cloud corresponding to the IP address of the target terminal, and then determine the edge cloud server included in the edge cloud.
[0056] In the embodiments of the present application, the first server can determine the edge cloud close to the line based on the IP address of each terminal and the IP address of each terminal and the IP address of the edge cloud close to the line, and generate the first correspondence.
[0057] In an optional implementation, the first server can also determine the IP address segment to which the IP address of the target terminal belongs, and then determine the identifier of the edge cloud corresponding to the IP address segment and the IP address of the edge cloud server included in the edge cloud.
[0058] Optionally, the first server can also store an IP address mapping table, and the IP address mapping table includes a plurality of IP address segments and an identifier of an edge cloud corresponding to each IP address, and an IP address of an edge cloud server included in the edge cloud.
[0059] Table 1 below is an example of an IP address mapping table.
[0060] Table 1
[0061] IP address segment of terminal home Identification of edge cloud IP address of edge server IP address segment one Identification A IP address 1 IP address segment two Identification B IP address 2 IP address segment three Identification C IP address 3
[0062] For example, as shown in Table 1, assuming that the IP address segment to which the IP address of the target terminal belongs is IP address segment 1, the first server can determine that the target identifier is identifier A, and that the IP address of the edge server included in the edge cloud corresponding to the identifier A is IP address 1.
[0063] In S103, the first server determines target configuration information based on the file identifier of the target file and the processing type of the target file.
[0064] The target configuration information includes preset performance parameters and file content of the target file, and the preset performance parameters include one or more of a preset memory size, a preset transmission rate, a preset computing capability, and a preset rendering capability.
[0065] In the embodiments of the present application, the preset performance parameters can also be understood as hardware resources, and the first server can determine the size of the hardware resources required for processing the target file according to the file identifier of the target file and the processing type of the target file.
[0066] In the embodiments of the present application, the file content of the target file can be text information, audio information, video information, or application software, etc.
[0067] It should be understood that the preset memory size is used to represent the size of the memory and the size of the disk, the preset transmission rate is used to represent the size of the data transmission rate, the preset computing capability is used to represent the size of the target central processing unit (CPU), and the preset rendering capability is used to represent the size of the target graphics processing unit (GPU).
[0068] It can be understood that the processing type of the target file is used to represent the function required for processing the target file.
[0069] Optionally, the processing type of the target file is used to represent the function of running the application software.
[0070] In S104, the first server sends an information configuration instruction to a second server.
[0071] The second server is a server corresponding to the target identifier, and the information configuration instruction includes the target configuration information. The information configuration instruction is used to instruct the second server to configure the target configuration information, so that the second server has the function of processing the target file.
[0072] In combination with the above description of the embodiments, it should be understood that the target identifier is an identifier of an edge cloud, and the second server is an edge cloud server included in the edge cloud corresponding to the target identifier.
[0073] It can be understood that after the second server receives the information configuration indication, the second server can be configured based on the target configuration information. Specifically, the second server can store the file content of the target file and configure hardware resources based on the preset performance parameters.
[0074] In an optional implementation, the first server can send the information configuration indication to the second server based on the IP address of the second server.
[0075] S105, in the case that the first server receives the configuration success response sent by the second server, the first server sends a file processing response to the target terminal.
[0076] The file processing response includes the target identifier, and the file processing response is used to indicate that the second server is a server for processing the target file, and the configuration success response is used to notify that the target configuration information is configured successfully.
[0077] It should be understood that after the second server is successfully configured based on the target configuration information, the second server can send a configuration success response to the first server, and the first server can send a file processing response to the terminal after receiving the configuration success response sent by the second server. The terminal can receive the file processing response and then access the second server.
[0078] After the terminal accesses the second server, only the target file is included in the second server and the terminal. The terminal can send a control instruction to the second server, and the second server can process the target file based on the control instruction.
[0079] In an optional implementation, the file processing response can further include the IP address of the second server, and the target terminal can access the second server based on the IP address of the second server.
[0080] The technical solutions provided by the above embodiments can bring at least the following beneficial effects: as can be seen from S101-S105, the first server can receive a file processing request sent by a target terminal, determine a target identifier from a first correspondence relationship, and then determine target configuration information based on a file identifier of a target file and a processing type of the target file, the target configuration information including file content of the target file and preset performance parameters. Then, the first server sends an information configuration instruction to a second server, the information configuration instruction being used to instruct the second server to configure the target configuration information, so that the second server has a function of processing the target file. In a case where a configuration success response sent by the second server is received, the first server can send a file processing response to the target terminal, the file processing response being used to instruct the second server to be a server for processing the target file. In the embodiments of the present application, since the preset performance parameters include one or more of a preset memory size, a preset transmission rate, a preset computing capability and a preset rendering capability, the second server can have the function of processing the target file and effectively process the target file after being configured based on the target configuration information. Since the edge cloud corresponding to the target identifier is an edge cloud with a relatively short line distance from the IP address of the target terminal, the first server instructs the second server to be the server for processing the target file, which can reduce the line distance between the second server and the target terminal, improve the stability of data transmission, and improve the effectiveness of file processing.
[0081] In combination Figure 3 As Figure 4 indicated, in an implementation manner of the embodiments of the present application, the file processing request further includes a target identifier of a target user, the target user being a user corresponding to the target terminal, and the first server includes a plurality of storage areas. The first server determines the target configuration information based on the file identifier of the target file and the processing type of the target file, and specifically can include S1031-S1033.
[0082] S1031, the first server determines a target storage area from the plurality of storage areas.
[0083] The target storage area is a storage area corresponding to a user identifier of the target user, and one storage area includes file content of at least one file.
[0084] In the embodiments of the present application, one storage area included in the first server can be understood as a user personal space of a user on the first server, and the user personal space of each user on the first server includes all files of the user.
[0085] In an optional implementation, the first server stores a second correspondence relationship, the second correspondence relationship including user identifiers of a plurality of users and a storage area corresponding to each of the user identifiers of the plurality of users, and the first server can determine the storage area corresponding to the target user (i.e., a target storage area) based on the user identifier of the target user.
[0086] S1032, the first server determines the file content of the target file from the target storage area based on the file identifier of the target file.
[0087] It should be understood that the target storage area stores a file identifier of each of at least one file and file content of each of the at least one file, and the first server can determine the file content of the target file based on the file identifier of the target file.
[0088] In an implementation, the terminal can access the first server based on the user identifier of the target user, and then display all files corresponding to the target user, and then the terminal can determine the target file and send the file processing request to the first server, the first server can determine the target storage area based on the user identifier of the target user, and determine the file content of the target file based on the file identifier of the target file.
[0089] S1033, the first server determines a preset performance parameter based on the processing type of the target file.
[0090] Specifically, the first server determines the size of the internal memory, the size of the CPU, the size of the GPU, and the size of the data transmission speed based on the processing type of the target file.
[0091] In an implementation of the embodiment of the present application, after the second server is configured based on the target configuration information, the second server can establish a user storage area for the target user on the second server based on the user identifier of the target user, and then store the target file.
[0092] It should be understood that the files included in the storage area of the target user on the second server can be understood as a subset of the files included in the target storage area.
[0093] Table 2 below is an example of file content included in the storage area of the target user on different servers.
[0094] Table 2
[0095] Location of user personal space File content First server (a, b, c, d) Second server (a, b)
[0096] As shown in Table 2, the file content (all files corresponding to the user) included in the storage space of the first server of the user is (a, b, c, d), and the file content included in the storage space of the second server of the user is (a, b).
[0097] The technical solutions provided by the above embodiments can at least bring the following beneficial effects: as can be known from S1031-S1033, the first server can determine a target storage area from a plurality of storage areas, then determine the file content of the target file from the target file storage area based on the file identifier of the target file, and then determine the preset performance parameter based on the processing type of the target file. The first server can accurately determine all files corresponding to the target user based on the user identifier of the target user, and then the first server can accurately determine the file content of the target file from the target storage area based on the file identifier of the target file, which can improve the accuracy of target file determination. Since the processing type of the target file is used to represent the function required for processing the target file, the first server determines the preset performance parameter based on the processing type of the target file, and then the second server performs configuration based on the target configuration information, which can improve the ability of the second server to process the target file, and thus improve the efficiency of file processing.
[0098] In combination Figure 4 As Figure 5 described above, the file processing method provided by the embodiments of the present application further includes S106-S107.
[0099] S106, the first server receives the processing end notification sent by the second server.
[0100] The processing end notification includes the file content of the preset file, and the preset file is a file obtained after the second server processes the target file according to the processing type of the target file. The processing end notification is used to notify that the target file processing is successful.
[0101] It should be understood that after the second server processes the target file, the file content of the target file may be updated. At this time, the second server can send the file obtained after processing to the first server, and then the first server can store the preset file.
[0102] In an implementation manner, the user can perform an end operation on the terminal, and in response to the end operation, the second server can send a processing end notification to the first server.
[0103] S107, the first server stores the preset file to the target storage area.
[0104] It can be understood that the preset file can include a new file and an original file, and the first server can directly store the new file to the target storage area, and replace the target file with the original file included in the preset file.
[0105] In an optional implementation, the processing end notification further includes a user identifier of the target user, and the first server can determine the target storage area based on the user identifier of the target user, and then store the preset file to the target storage area.
[0106] Optionally, after storing the preset file to the target storage area, the first server can further send a storage notification to the second server, the storage notification being used to notify that the preset file has been stored, and the second server can delete the storage space of the user on the second server and delete the preset file after receiving the storage notification.
[0107] Optionally, the second server can further release the newly created hardware resource based on the target configuration information.
[0108] In the embodiment of the application, after the first server receives the processing result notification sent by the second server, the preset file is stored to the target storage area, which can improve the integrity of the file corresponding to the user stored in the first server.
[0109] In combination Figure 1 As Figure 6 shown, in an implementation of the embodiment of the application, the file processing request can further include a first time, the first time being a processing time of the target file indicated by the target terminal, and the first server sending the information configuration indication to the second server can specifically include S1041.
[0110] S1041, the first server sends an information configuration indication to the second server at a second time.
[0111] The second time is before the first time.
[0112] In the embodiment of the application, the first time can be understood as a time of file processing that is still reserved by the terminal, and the first server can synchronize the file content of the target file from the target storage space to the second server before the time of file processing (i.e. the second time), so that the second server can process the target file at the first time.
[0113] In an optional implementation, the first server can further provide personalized settings for the target user. Specifically, the first server can further provide a plurality of desktop configuration templates, each of which includes a plurality of application software. The terminal can select a desktop template from the plurality of desktop templates, so that the first server determines the preset performance parameters based on the desktop template. This can improve the speed of the terminal in determining the file identifier of the target file, reduce the time required by the terminal in determining the file identifier of the target file, and improve the user experience.
[0114] Optionally, the first server can further assign separate IP addresses to the target storage space and the storage space of the target user in the second server, so that the terminal can access the storage space of the user on different servers based on the IP addresses.
[0115] Optionally, after receiving the file processing response sent by the first server, the terminal can further determine the service type of the second server, for example, the terminal can determine that the second server is a work area (or a living area).
[0116] Optionally, other terminals can also use the user identifier of the target user to access the first server, and then the first server can assign other servers to process the file processing request for the other terminals. The other terminals can determine the service type (for example, a living area) of the other servers.
[0117] Optionally, the first server can further store the desktop template selected by the terminal and the type of the second server.
[0118] Table 3 below is an example of the setting information of the personalized settings of the user stored by the first server.
[0119] Table 3
[0120]
[0121] As shown in Table 1, the IP address of the first server corresponding to the user 1 is IP address A, the IP address of the storage space of the first server corresponding to the user 1 is IP address A1, the identifier of the edge cloud corresponding to the user 1 includes edge cloud 1 and edge cloud 2, the IP address of the server included in the edge cloud 1 is IP address a, the IP address of the storage space of the server included in the edge cloud 1 corresponding to the user 1 is IP address a1, the identifier of the storage space of the server included in the edge cloud 1 corresponding to the user 1 is user 1-1, the desktop template used by the server included in the edge cloud 1 corresponding to the user 1 is template 1, and the service type of the server included in the edge cloud 1 is workspace; the IP address of the server included in the edge cloud 2 is IP address b, the IP address of the storage space of the server included in the edge cloud 2 corresponding to the user 1 is IP address b1, the identifier of the storage space of the server included in the edge cloud 2 corresponding to the user 1 is user 1-2, the desktop template used by the server included in the edge cloud 2 corresponding to the user 1 is template 2, and the service type of the server included in the edge cloud 2 is living area.
[0122] In combination with Table 3, in an optional implementation, the file processing request can further include a service type, assuming that the user identifier is user 1 and the service type is workspace, the first server can determine that the IP address of the server corresponding to the server type is IP address a, and then the first server can send the information configuration instruction based on the IP address a.
[0123] It should be noted that the terminal corresponding to the service type can not be the terminal that sends the file processing request to the first server, and the preset terminal (i.e., the terminal corresponding to the service type) can send the control instruction at the first time, and the third server can process the target file based on the control instruction.
[0124] In the embodiments of the present application, the first time is included in the file processing request, and then the first server sends the information configuration instruction to the second server at the first time, so that the second server is configured before the first time, which can reduce the user waiting time and improve the efficiency of file processing.
[0125] The embodiments of the present application can divide the functional modules according to the above-mentioned method examples, for example, each functional module can be divided according to each function, or two or more functions can be integrated in one processing module. The above-mentioned integrated modules can be realized in the form of hardware or in the form of software functional modules. It should be noted that the division of modules in the embodiments of the present application is illustrative, and is only a logical function division, and another division mode can be used in actual implementation.
[0126] In the case of dividing each functional module according to each function, Figure 7 A possible structural schematic diagram of the file processing apparatus involved in the above embodiments is shown as follows, Figure 7 As shown, the file processing apparatus 30 can include a receiving module 301, a determining module 302, and a sending module 303.
[0127] The receiving module 301 is configured to receive a file processing request sent by a target terminal, the file processing request including an IP address of the target terminal, a file identifier of a target file, and a processing type of the target file, the target file being a file included in the target terminal, and the file processing request being used to request processing of the target file.
[0128] The determining module 302 is configured to determine a target identifier from a first correspondence relationship, the target identifier being an identifier corresponding to the IP address of the target terminal, and the first correspondence relationship including a plurality of IP addresses and an identifier corresponding to each of the plurality of IP addresses.
[0129] The determining module 302 is further configured to determine target configuration information based on the file identifier of the target file and the processing type of the target file, the target configuration information including a preset performance parameter and a file content of the target file, and the preset performance parameter including one or more of a preset memory size, a preset transmission rate, a preset computing capability, and a preset rendering capability.
[0130] The sending module 303 is configured to send an information configuration indication to a second server, the second server being a server corresponding to the target identifier, the information configuration indication including the target configuration information, and the information configuration indication being used to instruct the second server to configure the target configuration information, so that the second server has a function of processing the target file.
[0131] The sending module 303 is further configured to send a file processing response to the target terminal in a case where a configuration success response sent by the second server is received, the file processing response including the target identifier, and the file processing response being used to indicate that the second server is a server for processing the target file, and the configuration success response being used to notify that the target configuration information is configured successfully.
[0132] Optionally, the file processing request further includes a user identifier of a target user, the target user being a user corresponding to the target terminal, and the first server including a plurality of storage areas.
[0133] The determining module 302 is specifically configured to determine a target storage area from the plurality of storage areas, the target storage area being a storage area corresponding to the user identifier of the target user, and one storage area including a file content of at least one file.
[0134] The determining module 302 is also specifically configured to determine the file content of the target file from the target storage area based on the file identifier of the target file.
[0135] The determining module 302 is also specifically configured to determine the preset performance parameter based on the processing type of the target file.
[0136] Optionally, the file processing apparatus further includes a storage module 304.
[0137] The receiving module 301 is also configured to receive a processing completion notification sent by the second server, the processing completion notification including file content of a preset file, the preset file being a file obtained by processing the target file according to the processing type of the target file by the second server, the processing completion notification being used to notify that the target file processing is successful.
[0138] The storage module 304 is configured to store the preset file to the target storage area.
[0139] Optionally, the file processing request can further include a first time point, the first time point being a processing time point of the target file indicated by the target terminal.
[0140] The sending module 303 is also configured to send the information configuration indication to the second server at a second time point, the second time point being before the first time point.
[0141] In the case of employing integrated units, Figure 8 A possible structural schematic diagram of the file processing apparatus involved in the above embodiments is shown. As shown in Figure 8 The file processing apparatus 40 can include a processing module 401 and a communication module 402. The processing module 401 can be used to control and manage the actions of the file processing apparatus 40. The communication module 402 can be used to support the communication of the file processing apparatus 40 with other entities. Optionally, as shown in Figure 8 The file processing apparatus 40 can further include a storage module 403 for storing the program code and data of the file processing apparatus 40.
[0142] The processing module 401 can be a processor or a controller. The communication module 402 can be a transceiver, a transceiver circuit or a communication interface, etc. The storage module 403 can be a memory.
[0143] When the processing module 401 is a processor, the communication module 402 is a transceiver, and the storage module 403 is a memory, the processor, the transceiver, and the memory can be connected through a bus. The bus can be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc.
[0144] It should be understood that the size of the sequence number of each process described above in various embodiments of the present application does not mean the order of execution, and the execution order of each process should be determined according to its function and inherent logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0145] Those skilled in the art can realize that the units and algorithm steps of each example described in combination with the embodiments disclosed herein can be realized by electronic hardware or a combination of computer software and electronic hardware. Whether the functions are executed in hardware or software depends on the specific application and design constraints of the technical solution. Professional technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the present application.
[0146] Those skilled in the art can clearly understand that, for the convenience and brevity of the description, the specific working processes of the system, device and unit described above can refer to the corresponding processes in the foregoing method embodiments, which will not be described here.
[0147] The units described as separate components can or can not be physically separated, and the components shown as units can or can not be physical units, that is, they can be located in one place, or they can be distributed on multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the present embodiment scheme.
[0148] In the above embodiments, all or part of the embodiments can be implemented by software, hardware, firmware or any combination thereof. When implemented by using a software program, all or part of the embodiments can be implemented in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of the present application are generated. The computer can be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions can be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another computer readable storage medium, for example, the computer instructions can be transmitted from one website, computer, server or data center to another website, computer, server or data center through wired (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.) manner. The computer readable storage medium can be any available medium that can be accessed by a computer or data storage device including one or more servers, data centers, etc. integrated with the medium. The available medium can be a magnetic medium (such as a floppy disk, a hard disk, a magnetic tape), an optical medium (such as a DVD), or a semiconductor medium (such as a solid state disk (SSD)), etc.
[0149] The above description is merely a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art can easily think of changes or replacements within the technical range disclosed in the present application, which should be covered within the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.
Claims
1. A file processing method, characterized in that, Applied to the first server, including: The system receives a file processing request sent by a target terminal. The file processing request includes the Internet Protocol IP address of the target terminal, the file identifier of the target file, and the processing type of the target file. The target file is a file included in the target terminal. The file processing request is used to request the processing of the target file. The target identifier is determined from the first correspondence relationship, wherein the target identifier is an identifier corresponding to the IP address of the target terminal, and the first correspondence relationship includes multiple IP addresses and an identifier corresponding to each of the multiple IP addresses; Based on the file identifier and processing type of the target file, target configuration information is determined. The target configuration information includes preset performance parameters and the file content of the target file. The preset performance parameters include one or more of preset memory size, preset transfer rate, preset computing power, and preset rendering power. Send an information configuration instruction to a second server, the second server being the server corresponding to the target identifier, the information configuration instruction including the target configuration information, the information configuration instruction being used to instruct the second server to configure the target configuration information so that the second server has the function of processing the target file; Upon receiving a configuration success response from the second server, a file processing response is sent to the target terminal. The file processing response includes the target identifier and is used to indicate that the second server is the server processing the target file. The configuration success response is used to notify the target that the configuration information has been successfully configured. The file processing request also includes a user identifier of the target user, where the target user is the user corresponding to the target terminal. The first server includes multiple storage areas. Determining the target configuration information based on the file identifier of the target file and the processing type of the target file includes: A target storage area is determined from the plurality of storage areas, wherein the target storage area is a storage area corresponding to the user identifier of the target user, and a storage area includes the file content of at least one file; Based on the file identifier of the target file, determine the file content of the target file from the target storage area; The preset performance parameters are determined based on the processing type of the target file.
2. The file processing method according to claim 1, characterized in that, The method further includes: The system receives a processing completion notification sent by the second server. The processing completion notification includes the file content of a preset file, which is a file obtained by the second server after processing the target file according to the processing type of the target file. The processing completion notification is used to notify the target file that the processing was successful. Store the preset file in the target storage area.
3. The document processing method according to any one of claims 1-2, characterized in that, The file processing request includes a first moment, which is the processing moment of the target file indicated by the target terminal. Sending the information configuration instruction to the second server includes: The information configuration instruction is sent to the second server at a second time point, which is prior to the first time point.
4. A document processing device, characterized in that, include: The module consists of a receiving module, a determining module, and a sending module; The receiving module is used to receive a file processing request sent by the target terminal. The file processing request includes the Internet Protocol IP address of the target terminal, the file identifier of the target file, and the processing type of the target file. The target file is a file included in the target terminal. The file processing request is used to request the processing of the target file. The determining module is used to determine a target identifier from a first correspondence relationship, wherein the target identifier is an identifier corresponding to the IP address of the target terminal, and the first correspondence relationship includes multiple IP addresses and an identifier corresponding to each of the multiple IP addresses; The determining module is further configured to determine target configuration information based on the file identifier of the target file and the processing type of the target file. The target configuration information includes preset performance parameters and the file content of the target file. The preset performance parameters include one or more of preset memory size, preset transmission rate, preset computing power, and preset rendering power. The sending module is used to send an information configuration instruction to a second server, which is a server corresponding to the target identifier. The information configuration instruction includes the target configuration information and is used to instruct the second server to configure the target configuration information so that the second server has the function of processing the target file. The sending module is further configured to send a file processing response to the target terminal upon receiving a configuration success response from the second server. The file processing response includes the target identifier and is used to indicate that the second server is the server processing the target file. The configuration success response is used to notify the target that the configuration information has been successfully configured. The file processing request also includes the user identifier of the target user, where the target user is the user corresponding to the target terminal, and the first server includes multiple storage areas. The determining module is specifically used to determine a target storage area from the plurality of storage areas. The target storage area is a storage area corresponding to the user identifier of the target user. Each storage area includes the file content of at least one file. The determining module is further specifically used to determine the file content of the target file from the target storage area based on the file identifier of the target file; The determining module is further specifically used to determine the preset performance parameters based on the processing type of the target file.
5. The document processing apparatus according to claim 4, characterized in that, The file processing device further includes: a storage module; The receiving module is further configured to receive a processing completion notification sent by the second server. The processing completion notification includes the file content of a preset file, which is a file obtained by the second server after processing the target file according to the processing type of the target file. The processing completion notification is used to notify the target file that the processing was successful. The storage module is used to store the preset file to the target storage area.
6. The document processing apparatus according to any one of claims 4-5, characterized in that, The file processing request includes a first moment, which is the processing moment of the target file indicated by the target terminal. The sending module is also configured to send the information configuration instruction to the second server at a second time point, which is prior to the first time point.
7. A server, characterized in that, The server includes: processor; A memory configured to store processor-executable instructions; The processor is configured to execute the instructions to implement the file processing method as described in any one of claims 1-3.
8. A computer-readable storage medium storing instructions thereon, characterized in that, When the instructions in the computer-readable storage medium are executed by the server, the server is able to perform the file processing method as described in any one of claims 1-3.
Citation Information
Patent Citations
Software license processing method and system, edge cloud server and storage medium
CN115080232A
Cloud hosted device instances method and apparatus
US20220007437A1