Data processing method and system, electronic equipment and storage medium

By pre-calculating and storing delivery time information on the server for real-time call by the client, the problem of high concurrency and long response time on the server is solved, and the user experience is improved.

CN119048190APending Publication Date: 2024-11-29SHANGHAI FENGNIAO JIPEI INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410875848.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-01
Publication Date
2024-11-29

AI Technical Summary

Technical Problem

In the case of high concurrent access, the computing pressure on the server increases and the computing resource consumption is serious, resulting in a long response time for the expected delivery time and poor user experience.

Method used

By pre-calculating the delivery time information of the target store on the server and storing it in the storage cluster, it is used for real-time call by the client to reduce the computing pressure on the server and shorten the response time.

Benefits of technology

It effectively reduces the computing pressure on the server, saves computing resources, shortens the response time of the expected delivery time, and improves the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119048190A_ABST
    Figure CN119048190A_ABST
Patent Text Reader

Abstract

The invention discloses a data processing method and system, electronic equipment and a storage medium. The method comprises the following steps: acquiring shop information of a target shop configured with a target function module, and calculating delivery time information corresponding to the target shop according to the shop information and a preset delivery distance; and storing the delivery time information corresponding to the target shop to a storage cluster used for storing the delivery time information, so that a second server responds to a time acquisition request of a client based on the storage cluster. According to the embodiment of the invention, the technical problems that the computing pressure is increased when the server faces high-concurrency access, the computing resource consumption is serious, and the user experience is poor due to the fact that the response time for obtaining the predicted arrival time is relatively long in the related technology can be solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of Internet information technology, and in particular to a data processing method, system, electronic device and storage medium. Background Art

[0002] With the development of Internet technology, more and more users choose to shop online, such as ordering food online, buying daily necessities online, etc. Delivery is an important factor affecting the user's online shopping experience. In order to improve the user experience, shopping platforms usually display the estimated delivery time of goods in different functional modules. Users can decide whether to place an order based on whether the estimated delivery time meets their expectations. In the related technology, the client sends a time acquisition request to the server in real time, and the server calculates the estimated delivery time based on the acquisition request, and sends the estimated delivery time to the client of the shopping platform for display; however, when the server faces high concurrent access, the above method will not only increase the computing pressure of the server, but also waste more computing resources; and the response time for obtaining the estimated delivery time is long, which will also lead to poor user experience. Summary of the invention

[0003] In view of the above problems, the present application provides a data processing method, system, electronic device and storage medium to at least solve the technical problems in the related technology that the server has increased computing pressure and serious consumption of computing resources when facing high-concurrency access, and the long response time for obtaining the estimated delivery time leads to poor user experience.

[0004] According to a first aspect of an embodiment of the present application, a data processing method is provided, which is applied to a first server, including: obtaining store information of a target store of a configured target function module, and calculating the delivery time information corresponding to the target store according to the store information and a preset delivery distance; storing the delivery time information corresponding to the target store in a storage cluster for storing the delivery time information, so that a second server responds to a time acquisition request from a client based on the storage cluster.

[0005] In some embodiments, storing the delivery time information corresponding to the target store in a storage cluster for storing the delivery time information includes:

[0006] storing the delivery time information corresponding to the target store in a first type storage cluster corresponding to the delivery time information in a first area; the first area is the area to which the first server belongs, and the first type storage cluster is a storage cluster for persistent storage of data; or

[0007] The delivery time information corresponding to the target store is stored in the second type storage cluster corresponding to the delivery time information in the first area and the first type storage cluster; the second type storage cluster is a storage cluster based on cache or memory storage data.

[0008] In some embodiments, the data processing method further includes:

[0009] The delivery time information stored in the first type storage cluster in the first area is synchronously stored in the first type storage cluster in the second area.

[0010] In some embodiments, storing the delivery time information corresponding to the target store in a storage cluster for storing the delivery time information includes:

[0011] Encapsulate the delivery time information corresponding to the target stores into time data packets corresponding to the target function modules;

[0012] Each of the time data packets is stored in a corresponding storage cluster.

[0013] In some embodiments, the acquiring of the store information of the target store and calculating the delivery time information corresponding to the target store according to the store information and a preset delivery distance include:

[0014] According to a preset calculation cycle, store information of a target store is obtained in each cycle, and delivery time information corresponding to the target store is calculated according to the store information and a preset delivery distance;

[0015] The data processing method further includes: replacing the delivery time information corresponding to the previous cycle in the storage cluster with the delivery time information obtained in the current cycle.

[0016] According to the second aspect of an embodiment of the present application, a data processing method is provided, which is applied to a second server, and the method includes: receiving a request from a client to obtain an estimated delivery time of a target store, and obtaining delivery time information corresponding to the store identifier from a storage cluster based on the store identifier carried in the acquisition request; the delivery time information is calculated by the first server based on the store information of the target store and a preset delivery distance; and the delivery time information is sent to the client, so that a target function module in the client displays the delivery time information.

[0017] In some embodiments, acquiring the delivery time information corresponding to the store identifier from the storage cluster based on the store identifier carried in the acquisition request includes:

[0018] Determine the region to which the second server belongs, and based on the store identifier, obtain the delivery time information corresponding to the store identifier from the first type storage cluster or the second type storage cluster in the region; the first type storage cluster is a storage cluster used for persistent storage of data, and the second type storage cluster is a storage cluster based on cache or memory storage of data.

[0019] In some embodiments, the acquisition request further includes a module identifier of a target functional module, and acquiring the delivery time information corresponding to the store identifier from the first type storage cluster or the second type storage cluster in the region based on the store identifier includes:

[0020] According to the store identifier and the module identifier, obtaining the delivery time information corresponding to the store identifier from the time data packet corresponding to the target functional module in the first type storage cluster in the region; or

[0021] According to the store identifier and the module identifier, the delivery time information corresponding to the store identifier is obtained from the time data packet corresponding to the target functional module in the second type storage cluster in the area.

[0022] In some embodiments, acquiring the delivery time information corresponding to the store identifier from the first type storage cluster or the second type storage cluster in the region based on the store identifier includes:

[0023] Based on the fact that the delivery time information corresponding to the store identifier is stored in the second type storage cluster in the region, acquiring the delivery time information corresponding to the store identifier from the second type storage cluster;

[0024] Based on the fact that the delivery time information corresponding to the store identifier is not stored in the second type storage cluster in the area, the delivery time information corresponding to the store identifier is acquired from the first type storage cluster in the area.

[0025] In some embodiments, the data processing method further includes:

[0026] Based on the fact that the delivery time information corresponding to the store identifier is stored in the second type storage cluster within the region and the storage duration of the delivery time information exceeds a preset expiration duration, the delivery time information corresponding to the store identifier is obtained from the first type storage cluster within the region.

[0027] In some embodiments, the data processing method further includes:

[0028] Based on the fact that the delivery time information corresponding to the store identifier is not stored in the second type storage cluster in the region, the delivery time information in the first type storage cluster is written into the first type storage cluster; or

[0029] Based on the storage duration of the delivery time information in the second type storage cluster exceeding the preset expiration duration, the delivery time information is deleted, and the delivery time information in the first type storage cluster is written into the second type storage cluster.

[0030] According to the third aspect of an embodiment of the present application, a data processing device is provided, comprising: an acquisition unit, used to acquire store information of a target store of which a target function module is configured, and to calculate the delivery time information corresponding to the target store according to the store information and a preset delivery distance; a storage unit, used to store the delivery time information corresponding to the target store in a storage cluster for storing the delivery time information, so that the second server responds to the client's time acquisition request based on the storage cluster.

[0031] In some embodiments, the storage unit comprises:

[0032] A first storage module is used to store the delivery time information corresponding to the target store in a first type storage cluster corresponding to the delivery time information in a first area; the first area is the area to which the first server belongs, and the first type storage cluster is a storage cluster based on cache or memory storage data; or

[0033] The second storage module is used to store the delivery time information corresponding to the target store in the second type storage cluster corresponding to the delivery time information in the first area and the first type storage cluster; the second type storage cluster is a storage cluster used for persistent storage of data.

[0034] In some embodiments, the data processing device further includes:

[0035] The synchronization storage unit is used to synchronize and store the delivery time information stored in the first type storage cluster in the first area to the first type storage cluster in the second area.

[0036] In some embodiments, the storage unit comprises:

[0037] A packaging module, used to package the delivery time information corresponding to the target store into time data packets corresponding to each target functional module;

[0038] The third storage module is used to store each of the time data packets into a corresponding storage cluster.

[0039] In some embodiments, the acquisition unit includes:

[0040] A calculation module, used to obtain store information of a target store in each cycle according to a preset calculation cycle, and calculate the delivery time information corresponding to the target store according to the store information and a preset delivery distance;

[0041] The data processing device further includes: a replacement unit, configured to replace the delivery time information corresponding to the previous cycle in the storage cluster with the delivery time information acquired in the current cycle.

[0042] According to the fourth aspect of an embodiment of the present application, a data processing device is provided, and the above-mentioned data processing device includes: a receiving unit, used to receive a request from a client to obtain an estimated delivery time of a target store, and obtain the delivery time information corresponding to the store identifier from a storage cluster based on the store identifier carried in the acquisition request; the target store is configured with a target function module, and the delivery time information is calculated by the first server based on the store information of the target store and a preset delivery distance; a sending unit, used to send the delivery time information to the client, so that the target function module in the client displays the delivery time information.

[0043] In some embodiments, in one or more embodiments, the receiving unit includes:

[0044] An acquisition module is used to determine the area to which the second server belongs, and based on the store identifier, obtain the delivery time information corresponding to the store identifier from a first type storage cluster or a second type storage cluster in the area; the first type storage cluster is a storage cluster based on cache or memory storage data, and the second type storage cluster is a storage cluster for persistent storage of data.

[0045] In some embodiments, the acquisition module includes:

[0046] A first acquisition subunit is configured to acquire, according to the store identifier and the module identifier, the delivery time information corresponding to the store identifier from a time data packet corresponding to the target functional module in a first type storage cluster in the region; or

[0047] The second acquisition subunit is used to acquire the delivery time information corresponding to the store identification from the time data packet corresponding to the target functional module in the second type storage cluster in the area according to the store identification and the module identification.

[0048] In some embodiments, the acquisition module includes:

[0049] A third acquisition subunit is configured to acquire the delivery time information corresponding to the store identifier from the second type storage cluster based on the fact that the delivery time information corresponding to the store identifier is stored in the second type storage cluster in the region;

[0050] The fourth acquisition subunit is configured to acquire the delivery time information corresponding to the store identifier from the first type storage cluster in the area based on the fact that the delivery time information corresponding to the store identifier is not stored in the second type storage cluster in the area.

[0051] In some embodiments, the data processing device further includes:

[0052] An acquisition unit is used to acquire the delivery time information corresponding to the store identifier from the first type storage cluster in the area based on the fact that the delivery time information corresponding to the store identifier is stored in the second type storage cluster in the area and the storage duration of the delivery time information exceeds a preset expiration duration.

[0053] In some embodiments, the data processing device further includes:

[0054] A first writing unit is configured to write the delivery time information in the first type of storage cluster into the first type of storage cluster based on the fact that the delivery time information corresponding to the store identifier is not stored in the second type of storage cluster in the region; or

[0055] The second writing unit is configured to delete the delivery time information and write the delivery time information in the first type storage cluster into the second type storage cluster based on the storage duration of the delivery time information in the second type storage cluster exceeding a preset expiration duration.

[0056] According to the fifth aspect of the embodiment of the present application, a data processing system is also provided, including: a first server, a second server and a client; the first server is used to obtain store information of a target store, and calculate the delivery time information corresponding to the target store according to the store information and a preset delivery distance; the delivery time information corresponding to the target store is stored in a storage cluster used to save the delivery time information; the second server is used to receive a request from the client to obtain the estimated delivery time of the target store, and based on the store identifier carried in the acquisition request, obtain the delivery time information corresponding to the store identifier from the storage cluster; send the delivery time information to the client; the client is used to send a request to obtain the estimated delivery time of the target store to the second server, receive the delivery time information sent by the second server, and display the delivery time information in the target function module corresponding to the client.

[0057] According to the sixth aspect of the embodiments of the present application, there is also provided an electronic device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor is configured to execute the data processing method of the first aspect or the data processing method of the second aspect through the computer program.

[0058] According to the seventh aspect of the embodiment of the present application, a computer-readable storage medium is also provided, in which a computer program is stored, wherein the computer program is configured to execute the data processing method of the first aspect or the data processing method of the second aspect when running.

[0059] According to an eighth aspect of an embodiment of the present application, a computer program product is also provided, including a computer program, wherein the computer program is executed by a processor to execute the data processing method of the first aspect or the data processing method of the second aspect.

[0060] In an embodiment of the present application, a first server is used to obtain store information of a target store configured with a target function module, and the delivery time information corresponding to the target store is calculated according to the store information and a preset delivery distance; the delivery time information corresponding to the target store is stored in a storage cluster for storing the delivery time information, so that the second server responds to the client's time acquisition request based on the storage cluster; compared with the prior art, the present application does not require the server to directly process the estimated delivery time calculation request sent by the client, but puts the pre-calculated estimated delivery time into the storage cluster for real-time call by the client, which can not only greatly reduce the computing pressure of the server and save the computing resources of the server, but also shorten the response time of the estimated delivery time and improve the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0061] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present application. Moreover, the same reference numerals are used throughout the drawings to represent the same components. In the drawings:

[0062] Figure 1 is a schematic diagram of an application environment of an optional data processing method according to an embodiment of the present application;

[0063] Figure 2 is a schematic diagram of an application environment of another optional data processing method according to an embodiment of the present application;

[0064] Figure 3 is a flowchart of an optional data processing method according to an embodiment of the present application;

[0065] Figure 4 is a flowchart of another optional data processing method according to an embodiment of the present application;

[0066] Figure 5 is a flowchart of another optional data processing method according to an embodiment of the present application;

[0067] Figure 6 is a flowchart of another optional data processing method according to an embodiment of the present application;

[0068] Figure 7 is a structural schematic diagram of a data processing device according to an embodiment of the present application;

[0069] Figure 8 is a structural diagram of another data processing device provided in an embodiment of the present application;

[0070] Fig. 9 It is a structural diagram of a data processing system provided in an embodiment of the present application;

[0071] Fig.10 is a structural schematic diagram of an electronic device provided in an embodiment of the present application;

[0072] Fig.11 is a schematic diagram of the structure of another electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0073] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only embodiments of a part of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0074] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0075] Optionally, according to one aspect of the embodiments of the present application, a data processing method is provided. As an optional implementation, the data processing method can be but is not limited to being applied to: Figure 1 In the application environment shown. The application environment may include, but is not limited to: a first server 102, a second server 108, a network 124, and a terminal 114 for human-computer interaction with a user. An online service application client runs in the terminal 114, and the online service application client may be, for example, a shopping application client. The terminal 114 includes a display 116, a processor 118, and a memory 120. The display 116 is used to present the goods selected by the user and the estimated delivery time of the goods. The processor 118 is used to obtain a request for the estimated delivery time of the target store, send the acquisition request to the second server 108, and receive the delivery time information sent by the second server 108. The memory 120 is used to store the delivery time information. In addition, the first server 102 includes a database 104 and a processing engine 106, and the database is used to store store information and store delivery time information. The processing engine 106 is used to obtain the store information of the target store configured with the target function module, calculate the delivery time information corresponding to the target store according to the store information and the preset delivery distance; store the delivery time information corresponding to the target store in a storage cluster used to store the delivery time information, so that the second server 108 responds to the time acquisition request of the terminal 114 based on the storage cluster. The second server 108 includes a database 110 and a processing engine 112, and the database 110 is used to store store information and store delivery time information. The processing engine 112 is used to receive the acquisition request of the terminal 114 for the estimated delivery time of the target store, and acquire the delivery time information corresponding to the store identifier from the storage cluster based on the store identifier carried in the acquisition request; the target store is configured with the target function module, and the delivery time information is calculated by the first server 102 according to the store information of the target store and the preset delivery distance; send the delivery time information to the terminal 114, so that the corresponding target function module in the terminal 114 displays the delivery time information.

[0076] The specific process is as follows: Assume that Figure 1The terminal 114 shown runs a shopping application client, and the first server 102 executes steps S102-S106 to obtain the store information of the target store configured with the target function module, and calculates the delivery time information corresponding to the target store according to the store information and the preset delivery distance; the delivery time information corresponding to the target store is stored in the storage cluster 122 for storing the delivery time information, so that the second server 108 responds to the time acquisition request of the terminal 114 based on the storage cluster. The terminal 114 executes step S108 to send a request for obtaining the estimated delivery time of the target store to the second server 108. The second server 108 executes steps S110-112, receives a request from the terminal 114 for obtaining the estimated delivery time of the target store, and obtains the delivery time information corresponding to the store identifier from the storage cluster based on the store identifier carried in the acquisition request; the target store is configured with a target function module, and the delivery time information is calculated by the first server based on the store information of the target store and a preset delivery distance; the storage cluster 122 executes step S114, sends the delivery time information corresponding to the store identifier to the second server 108, and the second server 108 executes steps S116-S118, sends the delivery time information to the terminal 114, so that the corresponding target function module in the terminal 114 displays the delivery time information.

[0077] Optionally, the terminal 114 includes but is not limited to mobile phones, laptops, tablet computers, PDAs, MIDs (Mobile Internet Devices), desktop computers, smart TVs, etc. The online service client in the embodiment of the present application includes but is not limited to a client that provides online services for a video client, an instant messaging client, a browser client, an education client, etc. The network may include but is not limited to: a wired network, a wireless network, wherein the wired network includes: a local area network, a metropolitan area network and a wide area network, and the wireless network includes: Bluetooth, WIFI and other networks that implement wireless communication. The first server 102 and the second server 108 may be a single server, or a server cluster consisting of multiple servers, or a cloud server, wherein the cloud server includes but is not limited to a private cloud server or a public cloud server. The above is only an example, and no limitation is made to this in the present embodiment.

[0078] In one or more embodiments, the data processing method of the present application can be applied to Figure 2 In the application environment shown. Figure 2As shown, human-computer interaction can be performed between user 202 and user device 204. User device 204 includes memory 206 and processor 208. In this embodiment, user device 204 can refer to but not be limited to executing the operations performed by the above terminal 114 to display the delivery time information corresponding to the target store.

[0079] In order to improve the user experience, shopping platforms usually display the estimated delivery time of products in different functional modules. Users can decide whether to place an order based on whether the estimated delivery time meets their expectations. In the related technology, the client sends a time acquisition request to the server in real time, and the server calculates the estimated delivery time based on the acquisition request and sends the estimated delivery time to the client of the shopping platform for display; however, when the server faces high concurrent access, the above method will not only increase the computing pressure of the server and waste more computing resources; but also lead to a longer response time for the estimated delivery time, resulting in a poor user experience.

[0080] In order to solve the above technical problems, as an optional implementation method, Figure 3 As shown, an embodiment of the present application provides a data processing method, which is applied to a first server, and the method includes the following steps:

[0081] S302, acquiring the store information of the target store, and calculating the delivery time information corresponding to the target store according to the store information and the preset delivery distance; the delivery time information is used to be displayed in the target function module of the client.

[0082] Specifically, in an embodiment of the present application, the first server may be a single server, or a server cluster composed of multiple servers, or a cloud server, and the cloud server includes but is not limited to a private cloud server or a public cloud server. It should be noted that, taking a shopping platform as an example, the above-mentioned target function module may be, for example, a shopping guide module, a product details module, a shopping cart module, etc. of the shopping platform. In the above-mentioned target function module, it is necessary to display an estimated delivery time of a product to the user on the client, and the user can decide whether to place an order based on whether the estimated delivery time meets his or her expectations. The above-mentioned target stores may be all stores registered with the shopping platform, or they may be some stores selected according to a preset range. This application does not impose any restrictions on this.

[0083] The above-mentioned store information may include, for example, the store ID of the merchant, the store type, the merchant code, the product ID, the quantity of the product purchased, the inventory of the product, etc. The value of the above-mentioned preset delivery distance may be, for example, [3, 5] KM. When calculating the delivery time according to the preset delivery distance, it is necessary to calculate the total fulfillment time in combination with the store's picking and packing time configuration, and calculate the delivery time information corresponding to the store according to the fulfillment time, the store's business hours configuration, the store's capacity limit order information, and the time slice rule configuration.

[0084] S304: Store the delivery time information corresponding to the target store in a storage cluster for storing the delivery time information, so that the second server responds to the time acquisition request of the client based on the storage cluster.

[0085] Specifically, in an embodiment of the present application, unlike the prior art in which the first server directly sends the delivery time information corresponding to the client's time acquisition request to the client, after the first server calculates the delivery time information of the target store, it stores the delivery time information in a storage cluster used to separately store the delivery time information, and the second server receives the client's time acquisition request and obtains the delivery time information from the storage cluster. It should be noted that the storage cluster can be a distributed storage cluster, which can improve data availability by storing multiple copies of data on multiple nodes. Even if some nodes fail, the data can still be accessed from other nodes. In addition, by storing multiple copies of data in different physical locations to provide data redundancy, it also helps prevent data loss. The distributed storage cluster can automatically distribute data and load to different nodes, thereby improving the overall performance and response time of the storage cluster and improving the user experience.

[0086] In an embodiment of the present application, a first server is used to obtain store information of a target store configured with a target function module, and the delivery time information corresponding to the target store is calculated according to the store information and a preset delivery distance; the delivery time information corresponding to the target store is stored in a storage cluster for storing the delivery time information, so that the second server responds to the client's time acquisition request based on the storage cluster; compared with the prior art, the present application does not require the server to directly process the estimated delivery time calculation request sent by the client, but puts the pre-calculated estimated delivery time into the storage cluster for real-time call by the client, which can not only greatly reduce the computing pressure of the server and save the computing resources of the server, but also shorten the response time of the estimated delivery time and improve the user experience.

[0087] As an optional implementation, Figure 4 As shown, an embodiment of the present application provides a data processing method, which is applied to a first server, and the method includes the following steps:

[0088] S402, acquiring store information of a target store, and calculating delivery time information corresponding to the target store according to the store information and a preset delivery distance.

[0089] S404, storing the delivery time information corresponding to the target store in a first type storage cluster corresponding to the delivery time information in a first region; the first region is a region to which the first server belongs, and the first type storage cluster is a storage cluster for persistently storing data;

[0090] S406, storing the delivery time information corresponding to the target store in the second type storage cluster corresponding to the delivery time information in the first area and the first type storage cluster; the second type storage cluster is a storage cluster based on cache or memory storage data.

[0091] Specifically, in an embodiment of the present application, the above-mentioned storage cluster may be, for example, a distributed cache cluster. After calculating the delivery time information of the target store, the first server stores the delivery time information corresponding to the target store in a first type of storage cluster in the first area (computer room or data center) where the first server is located. The first type of storage cluster is a storage cluster based on persistent storage of data, such as a storage cluster based on solid-state hard disk data storage. In another example, after calculating the delivery time information of the target store, the first server stores the delivery time information corresponding to the target store in the first type of storage cluster in the computer room or data center where the first server is located, and also synchronously stores it in the second type of storage cluster in the computer room or data center. The second type of storage cluster is a storage cluster based on cache or memory data storage. By directly obtaining the delivery time information from the above-mentioned first type of storage cluster and the first type of storage cluster, the response time for obtaining the delivery time information can be significantly improved, greatly improving the user's shopping experience.

[0092] The above step S402 has been explained in the previous text and will not be repeated here.

[0093] In one or more embodiments, the data processing method further includes:

[0094] The delivery time information stored in the first type storage cluster in the first area is synchronously stored in the first type storage cluster in the second area.

[0095] Specifically, in an embodiment of the present application, the above-mentioned first type of storage cluster also has a data synchronization function. Assuming that the above-mentioned first area is a central computer room and the second area is a unit computer room, after the first server calculates the delivery time information of the target store, it stores the delivery time information corresponding to the target store in the central computer room where the first server is located. The first type of storage cluster in the unit computer room will also receive the delivery time information sent by the central computer room, and the first type of storage cluster in the unit computer room will store the delivery time information locally, thereby achieving data synchronization between the unit computer room and the central computer room.

[0096] In one or more embodiments, storing the delivery time information corresponding to the target store in a storage cluster for storing the delivery time information includes:

[0097] Encapsulate the delivery time information corresponding to the target stores into time data packets corresponding to the target function modules;

[0098] Each of the time data packets is stored in a corresponding storage cluster.

[0099] Specifically, in the embodiment of the present application, in order to ensure that the delivery time information corresponding to different functional modules does not affect each other, the first server encapsulates the delivery time information corresponding to the target store into time data packets corresponding to each target functional module; and stores each time data packet in the storage cluster corresponding to each. For example, the first server encapsulates the same delivery time information with different modules such as the search module, the product details module, and the shopping cart to obtain the time data packets corresponding to the search module, the product details module, and the shopping cart, and then saves the time data packets to the distributed cache instances corresponding to the module, the product details module, and the shopping cart, so as to ensure data isolation and decoupling between different functional scenarios.

[0100] In one or more embodiments, acquiring store information of a target store for configuring a target function module, and calculating delivery time information corresponding to the target store according to the store information and a preset delivery distance, includes:

[0101] According to a preset calculation cycle, store information of a target store is obtained in each cycle, and delivery time information corresponding to the target store is calculated according to the store information and a preset delivery distance;

[0102] The method further includes: replacing the delivery time information corresponding to the previous cycle in the storage cluster with the delivery time information acquired in the current cycle.

[0103] Specifically, in order to ensure the real-time and accuracy of the delivery time information that the user sees on the client, the first server will obtain the store information of the target store in each cycle according to the preset calculation cycle, and calculate the delivery time information corresponding to the target store based on the store information and the preset delivery distance. Assuming that the above calculation cycle is calculated every 5 minutes, the first server will obtain the store information of the target store every 5 minutes, and then calculate the delivery time information corresponding to the target store based on the store information and the preset delivery distance. Afterwards, the first server will replace the delivery time information corresponding to the previous cycle in the storage cluster with the delivery time information obtained in the current cycle, so as to ensure the accuracy and real-time of the delivery time information obtained by the second server from the cache cluster.

[0104] As an optional implementation, Figure 5 As shown, an embodiment of the present application provides a data processing method, which is applied to a second server, and the method includes the following steps:

[0105] S502, receiving a request from a client for obtaining an estimated delivery time of a target store, and obtaining delivery time information corresponding to the store identifier from a storage cluster based on the store identifier carried in the acquisition request; the target store is configured with a target function module, and the delivery time information is calculated by the first server based on the store information of the target store and a preset delivery distance.

[0106] Specifically, in the embodiment of the present application, taking the client as an online service client as an example, when the user opens the online service client, when the user enters the homepage of the search page of the client, the online shopping system will display various types of stores and commodities matching the user on the homepage according to the user's shopping habits, and the client sends the store ID of the target store corresponding to the search module to the second server, and sends a request to obtain the estimated delivery time of the target store to the second server, and obtains the delivery time information corresponding to the store ID from the storage cluster based on the store ID carried in the acquisition request. For example, the target stores include store A, store B and store C, and the first server calculates the delivery time information of store A, store B and store C according to the store information of store A, store B and store C and the preset delivery distance, such as the delivery time information corresponding to store A is 30 minutes for delivery at the fastest, the delivery time information corresponding to store B is 35 minutes for delivery at the fastest, and the delivery time information corresponding to store C is 25 minutes for delivery at the fastest.

[0107] S504: Send the delivery time information to the client, so that the target function module in the client displays the delivery time information.

[0108] Specifically, in the embodiment of the present application, after the first server calculates the delivery time information corresponding to the above-mentioned target store, the second server receives the acquisition request for the estimated delivery time of the target store sent by the client, obtains the delivery time information corresponding to the store identifier from the storage cluster based on the store identifier carried in the acquisition request, and sends the delivery time information to the client. For example, the corresponding search module in the client displays the delivery time information corresponding to each store, such as the display position corresponding to store A displays the delivery time information as the fastest delivery in 30 minutes, the display position corresponding to store B displays the delivery time information as the fastest delivery in 35 minutes, and the display position corresponding to store C displays the delivery time information as the fastest delivery in 25 minutes.

[0109] In an embodiment of the present application, a first server is used to obtain store information of a target store configured with a target functional module, and the delivery time information corresponding to the target store is calculated according to the store information and a preset delivery distance; the delivery time information corresponding to the target store is stored in a storage cluster for storing the delivery time information, so that the second server responds to the time acquisition request of the client based on the storage cluster, obtains the delivery time information corresponding to the store identifier from the storage cluster based on the store identifier carried in the acquisition request, and sends the delivery time information to the client, so that the target functional module in the client displays the delivery time information; compared with the prior art, the present application does not require the server to directly process the calculation request of the estimated delivery time sent by the client, but puts the pre-calculated estimated delivery time into the storage cluster for real-time call by the client, which can not only greatly reduce the computing pressure of the server and save the computing resources of the server, but also shorten the response time of the estimated delivery time and improve the user experience.

[0110] In one or more embodiments, acquiring the delivery time information corresponding to the store identifier from the storage cluster based on the store identifier carried in the acquisition request includes:

[0111] Determine the region to which the second server belongs, and based on the store identifier, obtain the delivery time information corresponding to the store identifier from the first type storage cluster or the second type storage cluster in the region; the first type storage cluster is a storage cluster used for persistent storage of data, and the second type storage cluster is a storage cluster based on cache or memory storage of data.

[0112] Specifically, in an embodiment of the present application, the above-mentioned storage cluster can be, for example, a distributed cache cluster. After calculating the delivery time information of the target store, the first server stores the delivery time information corresponding to the target store in a first type of storage cluster in the computer room or data center (first area) where the first server is located. The first type of storage cluster is a storage cluster based on persistent storage of data, such as a storage cluster based on solid-state hard disk storage data. In another example, after calculating the delivery time information of the target store, the first server stores the delivery time information corresponding to the target store in the first type of storage cluster in the computer room or data center where the first server is located, and also synchronously stores it in the second type of storage cluster in the computer room or data center. The second type of storage cluster is a storage cluster based on cache or memory storage data. In one example, it is determined that the area to which the second server belongs is, for example, a unit computer room in area A. According to the store identifier, such as the store ID, the delivery time information corresponding to the store identifier can be obtained from the first type of storage cluster or the second type of storage cluster in the unit computer room in area A.

[0113] In one or more embodiments, the acquisition request further includes a module identifier of a target functional module, and acquiring the delivery time information corresponding to the store identifier from the first type storage cluster or the second type storage cluster in the region based on the store identifier includes:

[0114] According to the store identifier and the module identifier, obtaining the delivery time information corresponding to the store identifier from the time data packet corresponding to the target functional module in the first type storage cluster in the region;

[0115] Alternatively, according to the store identifier and the module identifier, the delivery time information corresponding to the store identifier is obtained from a time data packet corresponding to the target functional module in a second type storage cluster within the region.

[0116] Specifically, in the embodiment of the present application, in order to ensure that the access to the delivery time information corresponding to different functional modules does not affect each other, and to reduce the situation where the access volume of a functional module is too large to cause the flow limit to affect other functional modules, the first server encapsulates the delivery time information corresponding to the target store into time data packets corresponding to each of the target functional modules; and stores each of the time data packets in the storage clusters corresponding to each of them. For example, the first server encapsulates the same delivery time information with different modules such as the search module, the product details module, and the shopping cart to obtain the time data packets corresponding to the search module, the product details module, and the shopping cart, and then saves the time data packets to the distributed cache instances corresponding to the modules, the product details module, and the shopping cart. In one example, for example, the target store is storeA, and the target functional module is the search module. According to the store identifier storeA and the module identifier search1001, the delivery time information corresponding to the store identifier storeA is obtained from the time data packet jar100 corresponding to the search module in the first type storage cluster in the region, or the time data packet jar100 corresponding to the search module in the second type storage cluster.

[0117] In one or more embodiments, acquiring the delivery time information corresponding to the store identifier from the first type storage cluster or the second type storage cluster in the region based on the store identifier includes:

[0118] Based on the fact that the delivery time information corresponding to the store identifier is stored in the second type storage cluster in the region, acquiring the delivery time information corresponding to the store identifier from the second type storage cluster;

[0119] Based on the fact that the delivery time information corresponding to the store identifier is not stored in the second type storage cluster in the area, the delivery time information corresponding to the store identifier is acquired from the first type storage cluster in the area.

[0120] Specifically, in an embodiment of the present application, for example, the area to which the second server belongs is area A. When the delivery time information corresponding to the store identifier is stored in the second type storage cluster in area A, the delivery time information corresponding to the store identifier can be obtained from the second type storage cluster.

[0121] In another example, when the delivery time information corresponding to the store identifier is not stored in the second type storage cluster in area A, the first type storage cluster in area A is required to obtain the delivery time information corresponding to the store identifier.

[0122] In one or more embodiments, the data processing method further includes:

[0123] Based on the fact that the delivery time information corresponding to the store identifier is stored in the second type storage cluster within the region and the storage duration of the delivery time information exceeds a preset expiration duration, the delivery time information corresponding to the store identifier is obtained from the first type storage cluster within the region.

[0124] Specifically, in the embodiment of the present application, if the store ID corresponding to the target store is storeA, when the delivery time information corresponding to the store ID storeA is stored in the second type storage cluster in the area A. For example, the delivery time information is stored for 10 minutes, and the preset expiration time is set to 5 minutes, that is, the storage time of the delivery time information exceeds the preset expiration time, at this time, it is necessary to obtain the delivery time information corresponding to the store ID storeA from the first type storage cluster in the area A, and then send it to the client for display.

[0125] In one or more embodiments, the data processing method further includes:

[0126] Based on the fact that the delivery time information corresponding to the store identifier is not stored in the second type storage cluster in the region, the delivery time information in the first type storage cluster is written into the first type storage cluster; or

[0127] Based on the storage duration of the delivery time information in the second type storage cluster exceeding the preset expiration duration, the delivery time information is deleted, and the delivery time information in the first type storage cluster is written into the second type storage cluster.

[0128] Specifically, in an embodiment of the present application, if the store identifier corresponding to the target store is storeA, when the delivery time information corresponding to the store identifier storeA is not stored in the second type storage cluster in the area A, the delivery time information corresponding to the store identifier storeA in the first type storage cluster is written into the second type storage cluster.

[0129] In another example, when the delivery time information corresponding to the store identifier storeA is stored in the second type storage cluster in the area A, for example, the delivery time information is stored for 10 minutes and the preset expiration time is set to 5 minutes, that is, the storage time of the delivery time information exceeds the preset expiration time. At this time, it is necessary to delete the delivery time information in the second type storage cluster in the area A, and then write the delivery time information corresponding to the store identifier storeA in the first type storage cluster in the area A into the second type storage cluster in the area A.

[0130] As an optional implementation, Figure 6 As shown, an embodiment of the present application provides a data processing method, the method comprising the following steps:

[0131] S602, the first server obtains store information of a target store configured with a target function module, and calculates delivery time information corresponding to the target store according to the store information and a preset delivery distance.

[0132] S604: The first server stores the delivery time information corresponding to the target store in a storage cluster used to store the delivery time information.

[0133] S606, the client sends a request to obtain the estimated delivery time of the target store.

[0134] S608: The second server receives a request from the client to obtain an estimated delivery time of a target store, and obtains delivery time information corresponding to the store identifier from a storage cluster based on the store identifier carried in the acquisition request.

[0135] S610: The second server sends the delivery time information to the client.

[0136] S612: The client displays the delivery time information in the target function module.

[0137] It should be noted that, for the above-mentioned method embodiments, for the sake of simplicity, they are all described as a series of action combinations, but those skilled in the art should know that the present invention is not limited by the described action sequence, because according to the present invention, certain steps can be performed in other sequences or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present invention.

[0138] According to another aspect of the embodiment of the present application, a data processing device is also provided, and the device is applied to a first server, such as Figure 7 As shown, the device comprises:

[0139] An acquisition unit 702 is used to acquire store information of a target store configured with a target function module, and calculate the delivery time information corresponding to the target store according to the store information and a preset delivery distance;

[0140] The storage unit 704 is used to store the delivery time information corresponding to the target store in a storage cluster used to store the delivery time information, so that the second server responds to the time acquisition request of the client based on the storage cluster.

[0141] In an embodiment of the present application, a first server is used to obtain store information of a target store configured with a target function module, and the delivery time information corresponding to the target store is calculated according to the store information and a preset delivery distance; the delivery time information corresponding to the target store is stored in a storage cluster for storing the delivery time information, so that the second server responds to the client's time acquisition request based on the storage cluster; compared with the prior art, the present application does not require the server to directly process the estimated delivery time calculation request sent by the client, but puts the pre-calculated estimated delivery time into the storage cluster for real-time call by the client, which can not only greatly reduce the computing pressure of the server and save the computing resources of the server, but also shorten the response time of the estimated delivery time and improve the user experience.

[0142] In one or more embodiments, the storage unit 704 includes:

[0143] A first storage module is used to store the delivery time information corresponding to the target store in a first type storage cluster corresponding to the delivery time information in a first area; the first area is the area to which the first server belongs, and the first type storage cluster is a storage cluster based on cache or memory storage data; or

[0144] The second storage module is used to store the delivery time information corresponding to the target store in the second type storage cluster corresponding to the delivery time information in the first area and the first type storage cluster; the second type storage cluster is a storage cluster used for persistent storage of data.

[0145] In one or more embodiments, the data processing device further includes:

[0146] The synchronization storage unit is used to synchronize and store the delivery time information stored in the first type storage cluster in the first area to the first type storage cluster in the second area.

[0147] In one or more embodiments, the storage unit 704 includes:

[0148] A packaging module, used to package the delivery time information corresponding to the target store into time data packets corresponding to each target functional module;

[0149] The third storage module is used to store each of the time data packets into a corresponding storage cluster.

[0150] In one or more embodiments, the obtaining unit 702 includes:

[0151] A calculation module, used to obtain store information of a target store in each cycle according to a preset calculation cycle, and calculate the delivery time information corresponding to the target store according to the store information and a preset delivery distance;

[0152] The data processing device further includes: a replacement unit, configured to replace the delivery time information corresponding to the previous cycle in the storage cluster with the delivery time information acquired in the current cycle.

[0153] According to another aspect of the embodiment of the present application, a data processing device for implementing the above data processing method is also provided, which is applied to the second server. Figure 8 As shown, the device comprises:

[0154] The receiving unit 802 is configured to receive a request from a client for obtaining an estimated delivery time of a target store, and obtain delivery time information corresponding to the store identifier from a storage cluster based on the store identifier carried in the acquisition request; the target store is configured with a target function module, and the delivery time information is calculated by the first server according to the store information of the target store and a preset delivery distance;

[0155] The sending unit 804 is used to send the delivery time information to the client, so that the target function module in the client displays the delivery time information.

[0156] In one or more embodiments, the receiving unit 802 includes:

[0157] An acquisition module is used to determine the area to which the second server belongs, and based on the store identifier, obtain the delivery time information corresponding to the store identifier from a first type storage cluster or a second type storage cluster in the area; the first type storage cluster is a storage cluster based on cache or memory storage data, and the second type storage cluster is a storage cluster for persistent storage of data.

[0158] In one or more embodiments, the acquisition module includes:

[0159] A first acquisition subunit is configured to acquire, according to the store identifier and the module identifier, the delivery time information corresponding to the store identifier from a time data packet corresponding to the target functional module in a first type storage cluster in the region; or

[0160] The second acquisition subunit is used to acquire the delivery time information corresponding to the store identification from the time data packet corresponding to the target functional module in the second type storage cluster in the area according to the store identification and the module identification.

[0161] In one or more embodiments, the acquisition module includes:

[0162] A third acquisition subunit is configured to acquire the delivery time information corresponding to the store identifier from the second type storage cluster based on the fact that the delivery time information corresponding to the store identifier is stored in the second type storage cluster in the region;

[0163] The fourth acquisition subunit is configured to acquire the delivery time information corresponding to the store identifier from the first type storage cluster in the area based on the fact that the delivery time information corresponding to the store identifier is not stored in the second type storage cluster in the area.

[0164] In one or more embodiments, the data processing device further includes:

[0165] An acquisition unit is used to acquire the delivery time information corresponding to the store identifier from the first type storage cluster in the area based on the fact that the delivery time information corresponding to the store identifier is stored in the second type storage cluster in the area and the storage duration of the delivery time information exceeds a preset expiration duration.

[0166] In one or more embodiments, the data processing device further includes:

[0167] A first writing unit is configured to write the delivery time information in the first type of storage cluster into the first type of storage cluster based on the fact that the delivery time information corresponding to the store identifier is not stored in the second type of storage cluster in the region; or

[0168] The second writing unit is configured to delete the delivery time information and write the delivery time information in the first type storage cluster into the second type storage cluster based on the storage duration of the delivery time information in the second type storage cluster exceeding a preset expiration duration.

[0169] According to another aspect of the embodiment of the present application, a data processing system for implementing the above data processing method is also provided. Fig. 9 As shown, the system includes a first server, a second server and a client;

[0170] The first server is used to obtain store information of a target store configured with a target function module, calculate the delivery time information corresponding to the target store according to the store information and a preset delivery distance; and store the delivery time information corresponding to the target store in a storage cluster used to store the delivery time information;

[0171] The second server is configured to receive a request from the client for obtaining an estimated delivery time of a target store, obtain the delivery time information corresponding to the store identifier from the storage cluster based on the store identifier carried in the acquisition request, and send the delivery time information to the client;

[0172] The client is used to send a request for obtaining the estimated delivery time of the target store to the second server, receive the delivery time information sent by the second server, and display the delivery time information in the target function module corresponding to the client.

[0173] According to another aspect of the embodiment of the present application, an electronic device for implementing the above data processing method is also provided. The electronic device may be Figure 1 The first server or the second server shown. This embodiment is described by taking the electronic device as the first server as an example. Fig.10 As shown, the electronic device includes a memory 1002 and a processor 1004. The memory 1002 stores a computer program, and the processor 1004 is configured to execute the steps in any of the above method embodiments through the computer program.

[0174] Optionally, in this embodiment, the electronic device may be at least one network device among a plurality of network devices of a computer network.

[0175] Optionally, in this embodiment, the processor may be configured to perform the following steps through a computer program:

[0176] S11, acquiring the store information of the target store, and calculating the delivery time information corresponding to the target store according to the store information and the preset delivery distance; the delivery time information is used to display in the target function module of the client;

[0177] S12: Store the delivery time information corresponding to the target store in a storage cluster for storing the delivery time information, so that the second server responds to the time acquisition request of the client based on the storage cluster.

[0178] Alternatively, a person skilled in the art may understand that: Fig.10 The structures shown are for illustration only. Fig.10 The structure of the electronic device is not limited. Fig.10 More or fewer components (such as network interfaces, etc.) as shown in, or with Fig.10 Different configurations shown.

[0179] Among them, the memory 1002 can be used to store software programs and modules, such as program instructions / modules corresponding to the data processing method and device in the embodiment of the present application. The processor 1004 executes various functional applications and data processing by running the software programs and modules stored in the memory 1002, that is, realizing the above-mentioned data processing method. The memory 1002 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 1002 may further include a memory remotely arranged relative to the processor 1004, and these remote memories may be connected to the terminal via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and a combination thereof. Among them, the memory 1002 can be specifically used, but not limited to, for storing the delivery time information corresponding to the target store.

[0180] As an example, Fig.10 As shown, the memory 1002 may include, but is not limited to, the acquisition unit 702 and the storage unit 704 in the data processing device. In addition, it may also include, but is not limited to, other module units in the data processing device, which will not be described in detail in this example.

[0181] Optionally, the transmission device 1006 is used to receive or send data via a network. Specific examples of the above-mentioned network may include a wired network and a wireless network. In one example, the transmission device 1006 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices and routers via a network cable so as to communicate with the Internet or a local area network. In one example, the transmission device 1006 is a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0182] In addition, the electronic device further includes: a display 1008 for displaying product information and delivery time information corresponding to the target store; and a connection bus 1010 for connecting various module components in the electronic device.

[0183] According to another aspect of the embodiment of the present application, an electronic device for implementing the above data processing method is also provided. The electronic device may be Figure 1 The first terminal or server shown in FIG. 1 is a first terminal or server shown in FIG. 1. The present embodiment is described by taking the electronic device as the server as an example. Fig.11 As shown, the electronic device includes a memory 1102 and a processor 1104. The memory 1102 stores a computer program, and the processor 1104 is configured to execute the steps in any of the above method embodiments through the computer program.

[0184] Optionally, in this embodiment, the electronic device may be at least one network device among a plurality of network devices of a computer network.

[0185] Optionally, in this embodiment, the processor may be configured to perform the following steps through a computer program:

[0186] S21, receiving a request from a client for obtaining an estimated delivery time of a target store, and obtaining delivery time information corresponding to the store identifier from a storage cluster based on the store identifier carried in the acquisition request; the delivery time information is calculated by the first server according to the store information of the target store and a preset delivery distance;

[0187] S22, sending the delivery time information to the client, so that the target function module in the client displays the delivery time information.

[0188] Alternatively, a person skilled in the art may understand that: Fig.11 The structure shown is for illustration only, and the electronic device may also be a cloud server or a physical server, or a cloud server cluster or a physical server cluster, etc. Fig.11 The structure of the electronic device is not limited. Fig.11 More or fewer components (such as network interfaces, etc.) as shown in, or with Fig.11 Different configurations shown.

[0189] Among them, the memory 1102 can be used to store software programs and modules, such as program instructions / modules corresponding to the data processing method and device in the embodiment of the present application. The processor 1104 executes various functional applications and data processing by running the software programs and modules stored in the memory 1102, that is, realizing the above-mentioned data processing method. The memory 1102 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 1102 may further include a memory remotely arranged relative to the processor 1104, and these remote memories may be connected to the terminal via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and a combination thereof. Among them, the memory 1102 can be specifically used, but not limited to, for storing the delivery time information corresponding to the target store.

[0190] As an example, Fig.11 As shown, the memory 1102 may include, but is not limited to, the receiving unit 802 and the sending unit 804 in the data processing device. In addition, it may also include, but is not limited to, other module units in the data processing device, which will not be described in detail in this example.

[0191] Optionally, the transmission device 1106 is used to receive or send data via a network. Specific examples of the network may include a wired network and a wireless network. In one example, the transmission device 1106 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices and routers via a network cable so as to communicate with the Internet or a local area network. In one example, the transmission device 1106 is a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0192] In addition, the electronic device further includes: a display 1108 for displaying product information and delivery time information corresponding to the target store; and a connection bus 1110 for connecting various module components in the electronic device.

[0193] In other embodiments, the electronic device may be a node in a distributed system, wherein the distributed system may be a blockchain system, and the blockchain system may be a distributed system formed by connecting the multiple nodes in the form of network communication. Among them, the nodes may form a peer-to-peer (P2P) network, and any form of computing device, such as a server, terminal, or other electronic device, may become a node in the blockchain system by joining the peer-to-peer network.

[0194] In one or more embodiments, the present application also provides a computer program product or computer program, which includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the above-mentioned power fault detection method. The computer program is configured to execute the steps of any of the above-mentioned method embodiments when it is run.

[0195] Optionally, in this embodiment, the computer-readable storage medium may be configured to store a computer program for performing the following steps:

[0196] S11, acquiring the store information of the target store, and calculating the delivery time information corresponding to the target store according to the store information and the preset delivery distance; the delivery time information is used to display in the target function module of the client;

[0197] S12, storing the delivery time information corresponding to the target store in a storage cluster for storing the delivery time information, so that the second server responds to the time acquisition request of the client based on the storage cluster. Alternatively, the computer-readable storage medium may also be configured to store a computer program for performing the following steps:

[0198] S21, receiving a request from a client for obtaining an estimated delivery time of a target store, and obtaining delivery time information corresponding to the store identifier from a storage cluster based on the store identifier carried in the acquisition request; the delivery time information is calculated by the first server according to the store information of the target store and a preset delivery distance;

[0199] S22, sending the delivery time information to the client, so that the target function module in the client displays the delivery time information.

[0200] Optionally, in this embodiment, a person of ordinary skill in the art may understand that all or part of the steps in the various methods of the above embodiments may be completed by instructing hardware related to the terminal device through a program, and the program may be stored in a computer-readable storage medium, and the storage medium may include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, etc.

[0201] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.

[0202] If the integrated units in the above embodiments are implemented in the form of software functional units and sold or used as independent products, they can be stored in the above computer-readable storage medium. Based on such understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling one or more computer devices (which can be personal computers, servers or network devices, etc.) to perform all or part of the steps of the methods of various embodiments of the present invention.

[0203] In the above embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0204] In the several embodiments provided in the present application, it should be understood that the disclosed client can be implemented in other ways. Among them, the device embodiments described above are only schematic, for example, the division of units is only a logical function division, and there may be other division methods in actual implementation, for example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.

[0205] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0206] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0207] The above are only preferred embodiments of the present invention. It should be pointed out that, for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

[0208] The user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.

Claims

1. A data processing method, characterized in that: Applied to the first server, the method includes: Acquire the store information of the target store, and calculate the delivery time information corresponding to the target store according to the store information and the preset delivery distance; the delivery time information is used to display in the target function module of the client; The delivery time information corresponding to the target store is stored in a storage cluster for storing the delivery time information, so that the second server responds to the time acquisition request of the client based on the storage cluster.

2. The method according to claim 1, characterized in that The storing the delivery time information corresponding to the target store in a storage cluster for storing the delivery time information includes: storing the delivery time information corresponding to the target store in a first type storage cluster corresponding to the delivery time information in a first area; the first area is the area to which the first server belongs, and the first type storage cluster is a storage cluster for persistent storage of data; or The delivery time information corresponding to the target store is stored in the second type storage cluster corresponding to the delivery time information in the first area and the first type storage cluster; the second type storage cluster is a storage cluster based on cache or memory storage data.

3. The method according to claim 2, characterized in that The method further comprises: The delivery time information stored in the first type storage cluster in the first area is synchronously stored in the first type storage cluster in the second area.

4. A data processing method, characterized in that: Applied to the second server, the method includes: Receive a request from a client for obtaining an estimated delivery time of a target store, and obtain, from a storage cluster based on a store identifier carried in the acquisition request, delivery time information corresponding to the store identifier; the delivery time information is calculated by the first server based on the store information of the target store and a preset delivery distance; The delivery time information is sent to the client, so that a target function module in the client displays the delivery time information.

5. The method according to claim 4, characterized in that The acquiring, from the storage cluster based on the store identifier carried in the acquisition request, the delivery time information corresponding to the store identifier includes: Determine the region to which the second server belongs, and based on the store identifier, obtain the delivery time information corresponding to the store identifier from the first type storage cluster or the second type storage cluster in the region; the first type storage cluster is a storage cluster used for persistent storage of data, and the second type storage cluster is a storage cluster based on cache or memory storage of data.

6. The method according to claim 5, characterized in that The acquisition request further includes a module identifier of a target functional module, and acquiring the delivery time information corresponding to the store identifier from the first type storage cluster or the second type storage cluster in the region based on the store identifier includes: According to the store identifier and the module identifier, obtaining the delivery time information corresponding to the store identifier from the time data packet corresponding to the target functional module in the first type storage cluster in the region; or According to the store identifier and the module identifier, the delivery time information corresponding to the store identifier is obtained from the time data packet corresponding to the target functional module in the second type storage cluster in the area.

7. A data processing system, characterized in that: The system comprises: a first server, a second server and a client; The first server is used to obtain store information of a target store, calculate the delivery time information corresponding to the target store according to the store information and a preset delivery distance; and store the delivery time information corresponding to the target store in a storage cluster used to store the delivery time information; The second server is configured to receive a request from the client for obtaining an estimated delivery time of a target store, obtain the delivery time information corresponding to the store identifier from the storage cluster based on the store identifier carried in the acquisition request, and send the delivery time information to the client; The client is used to send a request for obtaining the estimated delivery time of the target store to the second server, receive the delivery time information sent by the second server, and display the delivery time information in the target function module corresponding to the client.

8. An electronic device, characterized in that: The method comprises a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the method according to any one of claims 1 to 3 or 4 to 6.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: The program is executed by a processor to implement the method according to any one of claims 1 to 3 or 4 to 6.

10. A computer program product, comprising a computer program, characterized in that The computer program is executed by a processor to implement the method of any one of claims 1 to 3 or 4 to 6.