Business processing method, device, equipment and medium based on data storage
By adopting the storage-driven business processing method in the object storage system and combining it with the service registration mechanism, business processing can be carried out when data is uploaded, which solves the business processing delay and load problems in the object storage system and improves the real-time and real-time performance of data services. Availability.
Patent Information
- Application Number
- CN202111580612.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-22
- Publication Date
- 2024-10-25
- Estimated Expiration
- 2041-12-22
AI Technical Summary
Existing object storage systems start business processing only after data is uploaded, resulting in business processing delays and multiple readings of data, increasing system load and data transmission bandwidth, and making it impossible to implement real-time data processing, such as video transcoding, video preview, and Services such as automatic watermarking cannot be completed in time.
Adopting a storage-driven business processing method, business processing is performed when data is uploaded, and the service registration mechanism is used to integrate business services with object storage system components to achieve real-time processing during data upload, reducing business service time and system transmission bandwidth.
It realizes the real-time and availability of data services, reduces the transmission bandwidth load of the system, improves the timeliness and availability of business processing, and supports services with high real-time requirements such as real-time video transcoding and preview image interception.
Smart Images

Figure CN114281258B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of data processing technology, and in particular to a business processing method, device, equipment and medium based on data storage. Background Art
[0002] Object storage systems have been widely used in the current cloud computing field. Now almost all data, including pictures, videos, office documents, etc., are stored in object storage systems provided in the form of cloud services or self-built.
[0003] The existing object storage system is only a platform for storing data, but how to better provide data services for the business of enterprises is the core of data value-added.
[0004] The methods described in this section are not necessarily methods that have been previously conceived or employed. Unless otherwise indicated, it should not be assumed that any method described in this section is considered to be prior art simply because it is included in this section. Similarly, unless otherwise indicated, the issues mentioned in this section should not be considered to have been recognized in any prior art. Summary of the invention
[0005] The present disclosure provides a data storage-based service processing method, device, system, electronic device, computer-readable storage medium, and computer program product.
[0006] According to one aspect of the present disclosure, a data storage-based business processing method is provided, including: a target gateway receives a write request, the write request including target data, a target identifier for characterizing a business processing type of the target data, and a storage node identifier for storing the target data; determining a target business node corresponding to the target identifier; the target gateway sends the target data to the target business node to perform business processing on the target data; and the target gateway sends the target data to a target storage node corresponding to the storage node identifier.
[0007] According to another aspect of the present disclosure, a data storage-based business processing device is also provided, comprising: at least one gateway, including a target gateway, the target gateway being configured to receive a write request, the write request comprising target data, a target identifier for characterizing a business processing type of the target data, and a storage node identifier for storing the target data; and a controller being configured to determine a target business node corresponding to the target identifier, wherein the target gateway is further configured to send the target data to the target business node to perform business processing on the target data, and wherein the target gateway is further configured to send the target data to the target storage node corresponding to the storage node identifier.
[0008] According to another aspect of the present disclosure, there is also provided a data storage-based business processing system, comprising: the above-mentioned business processing device; and at least one business node, including a target business node, wherein the target business node is configured to receive target data from a target gateway and perform business processing on the target data.
[0009] According to another aspect of the present disclosure, there is also provided a business processing system based on data storage, comprising: the above-mentioned business processing device; at least one business node, including a target business node, the target business node being configured to receive target data from a target gateway and perform business processing on the target data; and at least one storage node, including a target storage node, the target storage node being configured to receive and store the target data from the target gateway.
[0010] According to another aspect of the present disclosure, an electronic device is also provided, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores a computer program, and the computer program implements the above method when executed by the at least one processor.
[0011] According to another aspect of the present disclosure, a non-transitory computer-readable storage medium storing a computer program is also provided, wherein the computer program implements the above method when executed by a processor.
[0012] According to another aspect of the present disclosure, a computer program product is further provided, comprising a computer program, wherein the computer program implements the above method when executed by a processor.
[0013] According to one or more embodiments of the present disclosure, by creating a storage-driven service registration method, the intelligent processing of business services is integrated with the components of the object storage system, and a storage-driven architecture design and implementation method is created. The business ecosystem is analyzed and abstracted in a storage-driven business manner, and the data is processed while uploading file data to the object storage system to provide external services, thereby providing better real-time and availability of data services and maximizing the reduction of the system's transmission bandwidth.
[0014] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] The accompanying drawings exemplarily illustrate the embodiments and constitute a part of the specification, and together with the text description of the specification, are used to explain the exemplary implementation of the embodiments. The embodiments shown are for illustrative purposes only and do not limit the scope of the claims. In all drawings, the same reference numerals refer to similar but not necessarily identical elements.
[0016] Figure 1 An architecture diagram of a business processing system based on data storage according to an embodiment of the present disclosure is shown;
[0017] Figure 2 A flowchart of a business processing method based on data storage according to an embodiment of the present disclosure is shown;
[0018] Figure 3 A flowchart of a business processing method based on data storage according to an embodiment of the present disclosure is shown;
[0019] Figure 4 A schematic diagram of a process of business processing based on data storage according to an embodiment of the present disclosure is shown;
[0020] Figure 5 A flowchart of a business processing method based on data storage according to an embodiment of the present disclosure is shown;
[0021] Figure 6 A schematic diagram of a process of business processing based on data storage according to an embodiment of the present disclosure is shown;
[0022] Figure 7 A flowchart of a business processing method based on data storage according to an embodiment of the present disclosure is shown;
[0023] Figure 8 A schematic diagram of a process of business processing based on data storage according to an embodiment of the present disclosure is shown;
[0024] Fig. 9 A block diagram of a data storage-based service processing device according to an embodiment of the present disclosure is shown;
[0025] Fig.10 A block diagram of a business processing system based on data storage according to an embodiment of the present disclosure is shown;
[0026] Fig.11 A block diagram of an electronic device according to an embodiment of the present disclosure is shown. DETAILED DESCRIPTION
[0027] The following is a description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope of the present disclosure. Similarly, for the sake of clarity and conciseness, the description of well-known functions and structures is omitted in the following description.
[0028] In the present disclosure, unless otherwise specified, the use of the terms "first", "second", etc. to describe various elements is not intended to limit the positional relationship, timing relationship, or importance relationship of these elements, and such terms are only used to distinguish one element from another element. In some examples, the first element and the second element may refer to the same instance of the element, and in some cases, based on the description of the context, they may also refer to different instances.
[0029] The terms used in the description of various examples in this disclosure are only for the purpose of describing specific examples and are not intended to be limiting. Unless the context clearly indicates otherwise, if the number of elements is not specifically limited, the element can be one or more. In addition, the term "and / or" used in this disclosure covers any one of the listed items and all possible combinations.
[0030] The inventors note that business decoupling is a means to reduce software complexity, and the business service system of the object storage system is no exception. All object storage systems and external services in the related art are a split process. All business services are based on a premise that data must be stored in the system in advance before business services can access data. This results in many businesses being unable to access data in a timely manner or even repeatedly reading data, thereby reducing the real-time nature of business implementation, and increasing the network transmission bandwidth within the system, adding pressure to the server, and increasing the risk of availability. Therefore, some businesses that require real-time processing of data during data upload cannot be implemented, such as security monitoring during video upload, capturing preview images during video upload, automatically adding watermarks during image upload, and transcoding during video upload. Taking the video transcoding service of a video website as an example, all object storage systems currently start the background transcoding service only after the user has completed uploading the video file. On the one hand, this causes a relatively long delay in the transcoding business, and on the other hand, transcoding of different bit rates requires multiple readings of video file data, which introduces a certain load to the storage system.
[0031] In order to solve the above technical problems, according to one or more embodiments of the present disclosure, a new business processing method based on data storage is proposed.
[0032] This method is contrary to the idea of actively using object storage based on the business layer in related technologies. It adopts the storage-driven business method, analyzes and abstracts the business ecosystem, and achieves the purpose of connecting business processing from the beginning of file upload through the abstract layer to solve the problem that services can only be provided to the outside world after the file data is uploaded. In addition, this method also adopts the service registration method to integrate the intelligent processing of the business with the components of the object storage system, so that some commonly used businesses can be easily connected to the storage-driven object storage system without having to implement a very complex business processing logic at the business layer.
[0033] In general, the present invention proposes a new data storage-based business processing method, which realizes processing of data to provide external services while uploading file data to the object storage system, thereby providing better real-time and availability of data services and greatly reducing the system's transmission bandwidth.
[0034] It can be understood that the technical solution of the present disclosure is specifically described by taking the object storage system as an example in the embodiments of the present disclosure, and the technical solution of the present disclosure is not limited to being applicable only to the object storage system.
[0035] Figure 1 The architecture diagram of a data storage-based business processing system 100 according to an embodiment of the present disclosure is shown. The business processing system 100 may include the following components:
[0036] At least one gateway 104 is stateless and highly available, and is used to connect to user business requests. The two most important interfaces of the gateway 104 are data reading and writing. The interface implemented by the gateway 104 processes and forwards read / write requests 102 through the http protocol and communicates with the backend. According to some embodiments, the gateway 104 will have the ability to provide services. Service types include but are not limited to video transcoding, media intelligence, format conversion, text recognition, video preview, image quality enhancement, etc.
[0037] Traffic replication module (ReqReplay) 106 is responsible for the traffic replication process, and replicates the read / write request 102 received by the gateway through the http protocol. The traffic replication module 106 can be set separately or integrated in the gateway 104;
[0038] Cache 108, used to cache data in the read / write request 102, and can use sdd or nvme to speed up the reading or writing;
[0039] The Gateway Monitor 110 is a stateless and highly available service responsible for the connection and scheduling of at least one gateway 104 and at least one computing node 112. The functions of the Gateway Monitor 110 include but are not limited to the management of computing service registration, the distribution of computing scripts, the scheduling of computing nodes 112, etc.
[0040] At least one compute node 112, which has computing resources (usually memory, CPU, GPU, etc.). The compute node 112 receives the script assigned by the gateway manager 110 and processes the data to perform a certain computing task;
[0041] The storage node 114 is used to store data. Usually, there are multiple disks on a storage node, and there is a process responsible for reading and writing data in the entire storage node 114;
[0042] The metadata service (MDS) node 116 is generally stateful, highly available, and strongly consistent, and is used to store metadata information related to user buckets and objects.
[0043] Figure 2 A flow chart of a data storage-based business processing method 200 according to an embodiment of the present disclosure is shown.
[0044] like Figure 2 As shown, the method includes: step S210, the target gateway receives a write request, the write request includes target data, a target identifier for characterizing the business processing type of the target data, and a storage node identifier for storing the target data; step S220, determining a target business node corresponding to the target identifier; step S230, the target gateway sends the target data to the target business node to perform business processing on the target data; step S240, the target gateway sends the target data to the target storage node corresponding to the storage node identifier.
[0045] Therefore, the gateway can be used to connect with the business from the moment of data upload during the data storage process, so that the data upload process can be utilized in real time, reducing the business service time and alleviating the internal traffic load.
[0046] In some embodiments, the target data is a file object to be uploaded by the user, such as video, picture, audio, etc.
[0047] In some embodiments, the target identifier represents the business processing type of the target data. By identifying the target identifier, the business processing type of the target data can be determined while uploading the target data to the object storage system, so as to perform corresponding business processing on the target data in parallel and improve the timeliness of business processing. The storage node identifier is used to mark the storage node used to store the target data.
[0048] According to some embodiments, the target identifier is a category identifier that can characterize the type of business processing or business attribute information of the target storage node. The business processing method in the present disclosure can provide two service modes: the gateway is given a service capability through registration, or the user's bucket is allowed to be configured with certain service attributes. When the user writes data, the bucket data (including service attributes) can be added to the write request.
[0049] In some embodiments, the target gateway has a business service capability corresponding to the target identifier. The target gateway having the corresponding business service capability may refer to the functional division of the gateway according to the business processing type of the data, so that the gateway is associated with the business processing type of the data, that is, data of a certain business processing type is sent to the associated gateway. In other words, when a gateway receives the data, it can know the business processing type of the data. According to some embodiments of the present disclosure, a gateway with business service capabilities can be set through a service registration mechanism. The service registration mechanism in some embodiments of the present disclosure is introduced below.
[0050] The gateway in the traditional object storage system is stateless, highly available, and indifferent. The gateway in the embodiment of the present disclosure will have the role of providing services. The business processing type of data may include, but is not limited to, video transcoding, media intelligence, format conversion, text recognition, video preview, image quality enhancement, etc., and accordingly, the business service type of the gateway may include, but is not limited to, video transcoding, media intelligence, format conversion, text recognition, video preview, image quality enhancement, etc. In some embodiments, when the system is initialized, the association relationship between the gateway and the identifier used to characterize the data business processing type, and the association relationship between the business node and the identifier used to characterize the data business processing type are configured. When the gateway has one or more business service capabilities, the target identifier can be a category identifier of the business processing type. Specifically, the gateway registers at the gateway manager to obtain the business service capability. The gateway manager has the function of service registration, and each service corresponds to a business processing category, such as video preview generation, network screenshots, video transcoding, video stream pornography identification, etc. By registering at the gateway manager, a lightweight or heavy business service capability can be registered for a gateway, or all business service capabilities can be registered for a gateway, and one of the functions can be selected during subsequent allocation. Accordingly, when writing data, the user can mark the business category identifier in the header of the write request http. In some embodiments, nginx can be connected to the gateway periphery and the gateway can be added to the configuration of nginx, so that nginx can access certain backend gateways according to the business processing type of the data. The nginx proxy parses the header of the received write request http and forwards the target data to the target gateway with the corresponding business service capability, but not to the target gateway without the corresponding business service capability.
[0051] In some embodiments, when the Bucket (i.e., storage node) of the object storage system is configured to have certain service attributes, the target identifier can be the business attribute information of the target storage node. The process of configuring the service attributes of the Bucket is as follows: when the system is initialized, the business attribute information of the target storage node is configured, and the business attribute information is associated with the business processing type. Through this configuration method, the Bucket can have business attribute information. When the user writes data, the data of the target Bucket (for example, which may include business attribute information) can be passed to a single write request. For example, the name and ID of the target Bucket may be included in the write request. The gateway can determine the business attribute information of the target Bucket by parsing the name and ID of the target Bucket in the write request, thereby determining the business processing type and subsequent computing tasks to be performed on the target data. Based on the known business processing type, the gateway manager assigns a gateway with corresponding service capabilities to perform the service.
[0052] The above-mentioned business processing types may include but are not limited to video transcoding, media intelligence, format conversion, text recognition, video preview, image quality enhancement, etc. These business processing types have high real-time and low latency requirements, and often require data to be processed while uploading to the object storage system.
[0053] In some embodiments, after receiving the write request, the gateway parses the HTTP header in the write request through an external nginx Lua script file to obtain a target identifier for indicating the business processing type in the write request. According to the target identifier of the business processing type, the write request is sent to a target gateway with corresponding business service capabilities, and a gateway without corresponding business service capabilities will not receive the write request.
[0054] In step S220, the target service node corresponding to the target identifier is determined. The target service node is a computing node that performs the corresponding service processing type, and the target service node is allocated by the gateway manager. The target service node can, for example, perform computing processing such as video transcoding, media intelligence, format conversion, text recognition, video preview, and image quality enhancement on the uploaded video data. In the embodiment of the present disclosure, the target service node can obtain the target data from the traffic replication module, cache, or storage node. This process depends on the service processing type and the service processing capability of the target service node, which will be described in detail in the following content.
[0055] In step S230, the target gateway sends the target data to the target service node to perform service processing on the target data. New data generated after successful service processing will be stored in the object storage system, and then the gateway updates the metadata service node.
[0056] According to some embodiments, the target gateway is associated with the business processing type of the target data, and the target business node is integrated with the target gateway. That is, the business computing node can be configured on the gateway, so that the corresponding business processing can be directly performed at the gateway, such as video capture preview, audio file metadata extraction, file md5 calculation and other computing resources that do not consume much.
[0057] According to other embodiments, for services such as transcoding that consume a large amount of computing resources and take minutes, it is necessary to independently configure service computing nodes, and the gateway manager schedules the service computing nodes to perform corresponding service processing.
[0058] In step S240, the target gateway sends the target data to the target storage node corresponding to the storage node identifier. The target storage node stores the target data. In response to determining that the target data has been stored in the target storage node, the target gateway records the metadata of the target data in the metadata service node, thereby updating the metadata service node of the object storage system after the storage is completed to complete the storage of the target data. The metadata service node is used to store metadata information related to the user bucket and object.
[0059] In some embodiments, the method may further include: after the target gateway receives the write request, copying the target data to obtain a copy of the target data, wherein the target gateway sends the copy data to the target service node. That is, after the target gateway receives the target data, the target data is copied to obtain a copy of the target data. In subsequent computing tasks, the target service node obtains the copy data from the traffic replication module. The way in which the target service node obtains the copy data from the traffic replication module is the fastest way to read data, and thus can improve the speed of service processing. This method is suitable for scenarios with fast service processing speed and high real-time requirements.
[0060] According to some embodiments, the target gateway sends the replica data to the target business node in one of the following ways: the target business node actively pulls the replica data; and the target gateway pushes the replica data to the target business node. In the pull method, the computing node (i.e., the target business node) actively pulls data from the traffic replication module or cache. It is preferred to pull data from the traffic replication module to increase the speed of obtaining data. The pull method enables the computing node to reasonably generate computing tasks according to its own load, but it will cause a certain delay in the completion of the computing tasks, and some write requests may be backlogged in the gateway. In the push method, the traffic replication module actively pushes data to the computing node. The push method has better real-time performance, which is conducive to clearing the write requests in the traffic replication module, but it may not be able to fully utilize the computing resources of the computing node, and there may be push failures.
[0061] In some embodiments, the method may further include: determining whether a preset condition is satisfied based at least on the target identifier in the write request. In response to satisfying the preset condition, the copy data of the target data in the write request may be stored in the cache. In scenarios of different business types and system loads, writing the copy data in the cache can avoid data congestion and data loss caused by data being overwritten.
[0062] In some embodiments, the above-mentioned determination of whether the preset condition is met based on at least the target identifier in the write request includes: obtaining the business processing capability parameters and / or network resource data of the target business node, and determining whether the preset condition is met based on the business processing capability parameters and / or network resource data of the target business node. That is, it is decided whether the replicated write request needs to be written into the cache according to the type of service registration. The business processing capability parameters of the target business node may include the speed of processing data, and the network resource data may include the amount of data to be written or the speed of writing data. In the process of traffic replication, if the speed of processing data is not fast enough, and the speed of processing data is less than or much less than the speed of writing data (for example, it only takes 10 seconds to write data, but it takes 100 seconds to process data), it is easy to cause congestion of data flow and data loss caused by overwriting of data flow. In this case, a cache can be used to store part of the overflowed copy data as a data buffer, thereby avoiding congestion of data flow and data loss.
[0063] According to some embodiments, the gateway may be configured to have a dynamic monitoring perception and decision-making module, which can dynamically and adaptively adjust the ratio between the data replicated and the data written to the cache according to the speed of processing data and the speed of writing data. When the speed of processing data is greater than the speed of writing data (for example, a video screenshot task with a longer screenshot cycle), all data is traffic replicated and not written to the cache; when the speed of processing data is less than or equal to the speed of writing data (for example, a video screenshot task with a shorter screenshot cycle, or a video transcoding task with a faster transcoding speed), part of the data is traffic replicated and part of the data is written to the cache; when the speed of processing data is much less than the speed of writing data (for example, a video transcoding task with a very slow transcoding speed), all data is written to the cache. Through the dynamic monitoring perception and decision-making module, the speed of data processing can be increased as much as possible while ensuring the quality of data processing.
[0064] According to some embodiments, the method may further include: the target gateway obtains the processing result of the target service node on the replica data, the processing result includes processing success and processing failure; and the target gateway records the processing result of the replica data. According to the processing result recorded by the target gateway, the metadata service node is updated after the processing is successful, or after the processing fails, the gateway records the failed computing task and then retries to execute the computing task.
[0065] According to some embodiments, the method may also include: at least in response to determining that the target business node has failed to process the replica data and determining that the data to be stored has all been stored in the target storage node, the target gateway reads the data to be stored from the target storage node and sends the read data to be stored to the target business node, and the target data is a part of the data to be stored. In the method of this embodiment, in the case where the replica data processing fails and the data to be stored has all been stored in the target storage node, the target business node directly reads the data to be stored from the target storage node without making any judgment, and then performs data processing to complete the corresponding business. This method of directly reading the data to be stored can speed up business processing.
[0066] According to some embodiments, at least in response to determining that the target business node has failed to process the replica data and determining that the data to be stored has all been stored in the target storage node, the target gateway reads the data to be stored from the target storage node and sends the read data to be stored to the target business node, including: in response to determining that the target business node has failed to process the replica data, determining whether to retry; and in response to determining to retry and determining that the data to be stored has all been stored in the target storage node, the target gateway reads the data to be stored from the target storage node and sends the read data to be stored to the target business node. In the method of this embodiment, when the replica data processing fails, it is determined that a retry is required and the data to be stored has all been stored in the target storage node, the target business node reads the data to be stored from the target storage node, and then performs data processing to complete the corresponding business. By judging whether a retry is required, the method can be applicable to different application scenarios.
[0067] According to some embodiments, the method may further include: at least in response to determining that the target business node has failed to process the copy data and determining that the data to be stored has all been stored in the target storage node, determining whether the target business node has read the data to be stored from the cache. Wherein, in response to determining that the target business node has not read the data to be stored from the cache, the target gateway reads the data to be stored from the target storage node and sends the read data to be stored to the target business node. In the method of this embodiment, the target business node preferentially reads the data to be stored from the cache, and the speed of this reading method is faster than the speed of reading the data to be stored from the target storage node, so data can be obtained faster, speeding up business processing. Data is read from the storage node only after the data is not read from the cache.
[0068] The following combination Figure 3 and Figure 4The following describes a business processing method 300 and a business processing process 400 based on data storage according to an embodiment of the present disclosure. In the business processing method, the target data is uploaded to the target gateway in a streaming manner. The data stream-based driving mode is suitable for scenarios where the business has high real-time requirements and the data stream processing is relatively fast. For example, transcoding of short videos, pornographic identification in media intelligence, and interception of preview images in video streams.
[0069] like Figure 3 As shown, the above-mentioned data storage-based business processing method 300 includes the following steps:
[0070] Step S310, the gateway 404 receives the user's write request and performs traffic replication through the traffic replication module 406. Thus, while uploading the target data to the object storage system, the replica data obtained by traffic replication is asynchronously used for business processing. In addition, in the business-driven mode based on data flow, the target business node 412 directly reads the data to be processed from the traffic replication module 406. This data reading speed is the fastest and is suitable for scenarios where the target business node 412 processes business quickly and has high real-time requirements.
[0071] Step S320, make a decision at least according to the type of service registration to determine whether the copied write request needs to be written into the cache 408. For example, in the traffic replication process of the traffic replication module 406, if the target service node 412 processes data fast enough, for example, the speed of processing data is less than or much less than the speed of writing data (for example, it only takes 10 seconds to write data, but it takes 100 seconds to process data), it is easy to cause data flow congestion and data loss caused by the data flow being covered. In this case, the cache 408 can be used to store part of the overflowed copy data as a data buffer, thereby avoiding data flow congestion and data loss. On the contrary, if the target service node 412 processes data fast enough, the speed of processing data is greater than or much greater than the speed of writing data (for example, it takes 100 seconds to write data, but it only takes 10 seconds to process data), then the copy data does not need to be stored in the cache 408. By deciding whether the copied write request needs to be written into the cache 408, adjustments can be made according to the actual application scenario to maximize the speed of data processing while ensuring the quality of data processing.
[0072] Step S330 : The traffic replication module 406 interacts with the gateway manager 410 to select a computing node 412 (ie, a target service node) to perform the computing task. The allocation and scheduling of the computing node 412 is implemented by the gateway manager 410 .
[0073] Step S340 : The gateway manager 410 sends the computing script to the computing node 412 .
[0074] Step S350, the traffic replication module 406 pushes the data stream to the computing node 412 by pulling 422 or pushing 420 according to the registered service decision. In some embodiments, the computing node 412 actively pulls data from the traffic replication module 406 or the cache 408 by pulling 422. It is preferred to pull data from the traffic replication module 406 to increase the speed of obtaining data. The pulling method can enable the computing node 412 to reasonably generate computing tasks according to its own load, but it will cause a certain delay in the completion of the computing tasks, and some write requests may be backlogged in the gateway 404. In some embodiments, the traffic replication module 406 actively pushes the data stream to the computing node 412 by pushing 420. The push method has better real-time performance and is conducive to clearing the write requests in the traffic replication module 406, but it may not be able to fully utilize the computing resources of the computing node, and there may be a push failure.
[0075] Step S360: The computing node 412 combines the acquired data stream and the computing script to run the computing task, and asynchronously returns the script indicating successful execution of the computing task to the gateway 404.
[0076] Step S370: If the asynchronous computing task fails during execution, the gateway 404 records the failed computing task.
[0077] Step S380: Determine whether a retry is required based on the type of service.
[0078] Among them, determining whether a retry is needed according to the category of the service may include: determining whether a retry is needed according to the failure rate allowed by the business processing type, for example, retrying for a high sensitivity to the failure rate, and not retrying for a low sensitivity to the failure rate. If a retry is needed, wait for the object of the user's file to be uploaded successfully, then go through the direct reading process and re-dispatch the computing task. After determining to retry, the computing node 412 first reads the target data from the cache 408, thereby improving the speed of data reading. If the target data fails to be read from the cache 408, the target data is read from the target storage node. After obtaining the target data, the computing node 412 processes the target data. Based on the above-mentioned retry method, although there is a certain delay, the method of reading the target data from the target storage node can at least ensure the completion of the computing task and realize the storage-driven business model.
[0079] It can be understood that the service processing method 300 is not limited to being applicable only to the processing of streaming uploaded data streams, for example, it can also be applicable to the processing of fragmented uploaded data.
[0080] The above content introduces a business processing method based on data storage in combination with a specific embodiment. It should be noted that the business processing method in the embodiment of the present disclosure is not limited to the above-mentioned implementation method. The following will introduce a business processing method based on data storage in combination with another specific embodiment, specifically, when the target data is a data fragment uploaded in fragments, the specific process of business processing.
[0081] According to some embodiments, the target data may be a data slice of the data to be stored. In this case, the method may include: in response to a message that determines that the target data has been stored in the target storage node, the target gateway writes a storage success message of the target data into the data bus, and the storage success message includes the data identifier of the data to be stored and the slice identifier of the target data. Wherein, the target gateway sends the target data to the target business node including: in response to receiving a read request from the target business node, the target gateway reads the target data from the target storage node and sends the read target data to the target business node. Thus, by obtaining a message that the slice data has been successfully stored, the uploaded data slices can be read separately and subsequent business processing can be performed, so as to realize data processing while uploading data.
[0082] According to some embodiments, when the target data is a data shard of the data to be stored, the method may further include: after the target gateway receives the write request, copying the target data to obtain a copy of the target data, and the target gateway stores the copy of the data in a cache. In this way, the target gateway writes the data shard to the cache asynchronously while writing the data shard to the target storage node, and the subsequent target service node can choose to read the shard data from the cache, thereby speeding up the reading speed of the target data.
[0083] According to some embodiments, when the target data is a data slice of the data to be stored, the target gateway sends the target data to the target business node, including: in response to determining that the target business node has not read the replica data from the cache, the target gateway reads the target data from the target storage node and sends the read target data to the target business node. Because the target business node reads the replica data from the cache faster than the target storage node, the target business node reads the data from the cache first to speed up the subsequent business processing. When the data cannot be read from the cache, the target business node reads the target data from the target storage node.
[0084] According to some embodiments, when the target data is a data shard of the data to be stored, the method may further include: the target gateway obtains the processing result of the target business node on the target data, the processing result includes successful processing and processing timeout; and the target gateway records the processing result of the target data. Then, according to the processing result recorded by the target gateway, the metadata service node is updated after the processing is successful, or after the processing fails, the computing node waits for the shard file to be uploaded and then reads the whole data again.
[0085] According to some embodiments, when the target data is a data slice of the data to be stored, the method may further include: in response to determining that the processing of the target data by the target business node has timed out, determining whether the data to be stored has been stored in full in the target storage node; in response to determining that the data to be stored has been stored in full in the target storage node, the target gateway reads the data to be stored from the target storage node and sends the read data to be stored to the target business node. In the method of this embodiment, when the business processing times out, wait for the upload of the data slice to be completed. In the case where the data to be stored has been stored in full in the target storage node, the target business node directly reads the data to be stored from the target storage node, and then performs data processing to complete the corresponding business. This method of directly reading the data to be stored can speed up business processing and realize storage drive.
[0086] According to some embodiments, when the target data is a data slice of the data to be stored, in the method, when the target gateway stores the replica data in the cache, in response to determining that the target business node has not read the data to be stored from the cache, the target gateway reads the data to be stored from the target storage node and sends the read data to be stored to the target business node. Because the target business node reads the data to be stored from the cache faster than the target storage node, the target business node reads the data from the cache first to speed up the subsequent business processing. When the data cannot be read from the cache, the target business node reads the target data from the target storage node.
[0087] The following combination Figure 5 and Figure 6Describe the business processing method 500 and business processing process 600 based on data storage according to the embodiment of the present disclosure. In the business processing method, the target data is a data slice of the data to be stored. Compared with the business driving mode based on data stream, the business driving mode based on slice upload is suitable for scenarios where the business has relatively low real-time requirements. For example, a preview image of a video with a long screenshot cycle. The difference between the business driving based on slice upload and the business driving based on data stream is that the fast reading and writing of the file upload process is not based on the data stream, but on the transformation of the slice upload in the S3 protocol. In the existing S3 protocol, the object storage system can only start reading data after the slice upload receives the CompleMultipartUpload interface, that is, after all slices are uploaded. The embodiment of the present disclosure improves the object storage system so that as long as a single slice of the file is uploaded, the data can be read through the standard range read interface. If a single slice is not uploaded, 404 is returned and the client tries again.
[0088] The business end and the object storage backend interact with each other through the data bus 618 regarding the successful upload of a single shard. Each time the object storage successfully executes PutObjectPart, it sends a message to the data bus 618 to inform that the data of a shard of a certain file is available for reading. Then the business end reads the message of successful shard storage from the data bus, and then sends a range read request to the object storage system to obtain the shard for business processing.
[0089] like Figure 5 As shown, the above-mentioned data storage-based business processing method 500 includes the following steps:
[0090] Step S510, gateway 604 receives the user's write request and first initializes the multipart upload through NewMultipartUpload. When the disclosed embodiment initializes NewMultipartUpload, a unique upload ID is assigned to the uploaded file, and the metadata service node stores the ID information of the unique identifier. One file corresponds to one uploadID, and one fragment of the file has a different number under the upload ID.
[0091] In step S520 , the gateway 604 obtains a computing node 612 through the gateway manager 610 , and sends the computing script to the computing node 612 , and the computing node 612 reads the successfully uploaded shard messages from the data bus 618 in a polling manner.
[0092] Step S530, the gateway 604 processes the PutObjectPart request, writes the data shard into the storage node 614, and records the shard metadata in the metadata service node. Optionally, after the target gateway 604 receives the target data, the target data can be copied to obtain a copy of the target data, and then the target gateway 604 stores the copy data in the cache 608. In this way, the gateway 604 writes the data shard into the cache 608 asynchronously while the data shard is written into the storage node 614, thereby speeding up the speed at which the subsequent target service node 612 reads the shard data.
[0093] Step S540, the gateway 604 writes the PutObjectPart message to the data bus 618. Specifically, in response to the message that the target data has been stored in the target storage node 614, the target gateway 604 writes a target data storage success message to the data bus 618, and the storage success message includes the data identifier of the data to be stored and the shard identifier of the target data. The subsequent computing node 612 can read the message that the shard data has been successfully stored separately and perform subsequent business processing, thereby processing data while uploading data.
[0094] Step S550, in response to the computing node 612 reading the message of successful shard storage from the data bus 618, the range read request is sent segment by segment, and the computing task is performed. Specifically, the target business node 612 sends a range read request to obtain the target data that needs to be processed. The embodiment of the present disclosure improves the range read request: the range read request carries a unique upload ID and the shard number of the shard, so as to find the shard metadata corresponding to the upload ID in the metadata service database, and find the storage location of the shard according to the metadata to complete the data reading. In this way, the uploaded data can be read in time, and then the calculation is performed to implement the corresponding business, thereby speeding up the business processing. When the computing node 612 reads data, it first sends a request to the cache 608. If the data cannot be read from the cache 608, the data is read from the storage node 614, because the speed of reading data from the cache 608 is faster than reading data from the storage node 614.
[0095] Step S560, the computing node 612 executes the computing task successfully, or times out. In response to the computing timeout and the shard file has been uploaded, the computing node 612 performs a full read again to execute the computing task again. Specifically, the target service node 612 sends the processing result of the target data to the target gateway 604, and the processing result includes a successful processing and a processing timeout; and the target gateway 604 records the processing result of the target data. According to the processing result recorded by the target gateway 604, the metadata service node is updated after the processing is successful, or after the processing times out, the computing node 612 waits for the shard file to be uploaded and then performs a full read again.
[0096] The following further describes the operations after the processing timeout: in response to the target business node 612 timing out on processing the target data and determining whether all the data to be stored have been stored in the target storage node 614, the target business node 612 preferentially reads data from the cache 608; when the data cannot be read from the cache 608, the target business node 612 reads the data to be stored from the target storage node 614; and the target business node 612 processes the read data to be stored.
[0097] The following combination Figure 7 and Figure 8 Describe the business processing method 700 and business processing process 800 based on data storage according to the embodiment of the present disclosure. In this business processing method, no data bus and cache are required. The business-driven mode based on standard S3 is suitable for scenarios where the business has the lowest real-time requirements and allows the maximum delay. The reason is that in the business-driven mode based on standard S3, the method for the target business node to obtain target data has the lowest real-time performance. In the method corresponding to this business-driven mode, the target gateway sends the target data to the target business node, including: determining whether the target data has been fully stored in the target storage node; in response to determining that the target data has been fully stored in the target storage node, the target gateway reads the target data from the target storage node and sends the read target data to the target business node. After all target data is stored in the target storage node, it is realized that the data is automatically read and the business is carried out, thereby realizing storage drive.
[0098] like Figure 7 As shown, the data storage-based business processing method 700 includes the following steps:
[0099] Step S710: Gateway 804 receives the write request, and writes the data completely into storage node 814, updates the metadata service node, and completes the file upload.
[0100] Step S720: Gateway 804 notifies gateway manager 810 to allocate a computing node 812 and sends the computing script to the computing node 812. After the data is completely uploaded, the operation is automatically triggered, so that the business can be carried out as quickly as possible after the storage is completed.
[0101] Step S730: The computing node 812 reads the file from the storage node 814 according to the computing script and executes the computing task. After the computing is completed, the new data generated by the business processing is stored in the object storage system and the metadata service node is updated.
[0102] Step S740: Release computing resources.
[0103] The following takes the business scenario of capturing a preview image during video upload as an example to specifically describe the application of the business processing method disclosed herein.
[0104] like Figure 4 As shown in the business processing process 400 in FIG. 4 , the process of capturing preview images during video upload is as follows: the first step is that the gateway 404 registers for service with the gateway manager 410, thereby having the business service capability of capturing preview images of videos; the second step is that the gateway 404 receives the user's write request and performs traffic replication through the traffic replication module 406; the third step is that the gateway 404 writes the data to the storage node and updates it to the metadata service node; the fourth step is that the gateway 404 selects a computing node 412 through the gateway manager 410. The gateway manager 410 sends the computing script based on the video capture preview image to the computing node 412; the fifth step is that the traffic replication module 406 of the gateway 404 asynchronously pushes the request to the selected computing node 412 by pushing; the sixth step is that the computing node 412 calls the computing script based on the video capture preview image based on the video stream pushed by the traffic replication module 406, executes the computing task, and stores the preview image to the storage node through the standard S3 protocol, and updates it to the metadata service node; the seventh step is that the computing node 412 completes the task of capturing the preview image and releases the resources. By using the method of this embodiment, when the user completes uploading the file, the preview of the video is also captured at the same time, which effectively reduces the time for obtaining the video preview image.
[0105] Fig. 9A block diagram of a business processing device 900 based on data storage according to an embodiment of the present disclosure is shown, including: at least one gateway 920, including a target gateway, the target gateway is configured to receive a write request, the write request includes target data, a target identifier for characterizing the business processing type of the target data, and a storage node identifier for storing the target data; a gateway manager 910, configured to determine a target business node corresponding to the target identifier, wherein the target gateway is further configured to send the target data to the target business node to perform business processing on the target data, and wherein the target gateway is further configured to send the target data to the target storage node corresponding to the storage node identifier.
[0106] According to some embodiments, the target gateway in the service processing device 900 is further configured to replicate the target data to obtain duplicate data of the target data. In this case, the traffic replication module is integrated in the target gateway.
[0107] According to some embodiments, the service processing device 900 may further include a cache configured to store duplicate data. An exemplary cache may be an SDD or an NVME to speed up the reading speed so as to cache the uploaded user data more quickly.
[0108] According to some embodiments, the service processing device 900 may further include a data bus configured to implement communication between the target gateway, the target service node, and the target storage node.
[0109] According to some embodiments, the business processing device 900 may further include a metadata service node, which is generally stateful, highly available and strongly consistent, and is used to store metadata information related to user buckets and objects.
[0110] According to some embodiments, the gateway manager 910 in the service processing device 900 is further configured to configure the association between the gateway 920 and the identifier used to characterize the data service processing type, and the association between the service node and the identifier used to characterize the data service processing type. Exemplarily, the gateway manager 910 is responsible for the connection and scheduling of the gateway and the service node, including but not limited to the management of computing service registration, the distribution of computing scripts, the scheduling of service nodes, etc.
[0111] According to another aspect of the present disclosure, a business processing system based on data storage is also provided. Fig.10 As shown, the business processing system 1000 includes: the business processing device 1010 according to the above; at least one business node 1020, including a target business node, the target business node is configured to receive target data from a target gateway and perform business processing on the target data.
[0112] According to another aspect of the present disclosure, a business processing system based on data storage is also provided. Fig.10 As shown, the business processing system 1000 includes: the business processing device 1010 according to the above-mentioned method; at least one business node 1020, including a target business node, which is configured to receive target data from a target gateway and perform business processing on the target data; and at least one storage node, including a target storage node, which is configured to receive and store target data from a target gateway.
[0113] According to another aspect of the present disclosure, an electronic device is also provided, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores a computer program, and the computer program implements the above method when executed by the at least one processor.
[0114] According to another aspect of the present disclosure, a non-transitory computer-readable storage medium storing a computer program is also provided, wherein the computer program implements the above method when executed by a processor.
[0115] According to another aspect of the present disclosure, a computer program product is further provided, comprising a computer program, wherein the computer program implements the above method when executed by a processor.
[0116] See also Fig.11 , a block diagram of an electronic device 1100 that can be used as the present disclosure will now be described, which is an example of a hardware device that can be applied to various aspects of the present disclosure. The electronic device can be a computer device of different types, such as a laptop computer, a desktop computer, a workbench, a personal digital assistant, a server, a blade server, a mainframe computer, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.
[0117] Fig.11 1 shows a block diagram of an electronic device according to an embodiment of the present disclosure. Fig.11 As shown, the electronic device 1100 may include at least one processor 1101, a working memory 1102, an input unit 1104, a display unit 1105, a speaker 1106, a storage unit 1107, a communication unit 1108 and other output units 1109 that can communicate with each other via a system bus 1103.
[0118] The processor 1101 may be a single processing unit or multiple processing units, all of which may include a single or multiple computing units or multiple cores. The processor 1101 may be implemented as one or more microprocessors, microcomputers, microcontrollers, digital signal processors, central processing units, state machines, logic circuits, and / or any device that manipulates signals based on operating instructions. The processor 1101 may be configured to obtain and execute computer-readable instructions stored in a working memory 1102, a storage unit 1107, or other computer-readable media, such as program codes of an operating system 1102a, program codes of an application 1102b, and the like.
[0119] The working memory 1102 and the storage unit 1107 are examples of computer-readable storage media for storing instructions, which are executed by the processor 1101 to implement the various functions described above. The working memory 1102 may include both volatile memory and non-volatile memory (e.g., RAM, ROM, etc.). In addition, the storage unit 1107 may include a hard disk drive, a solid-state drive, a removable medium, including external and removable drives, a memory card, a flash memory, a floppy disk, an optical disk (e.g., a CD, a DVD), a storage array, a network attached storage, a storage area network, etc. The working memory 1102 and the storage unit 1107 may all be collectively referred to herein as memory or computer-readable storage media, and may be a non-transitory medium capable of storing computer-readable, processor-executable program instructions as computer program code, which may be executed by the processor 1101 as a specific machine configured to implement the operations and functions described in the examples herein.
[0120] The input unit 1106 may be any type of device capable of inputting information to the electronic device 1100. The input unit 1106 may receive input digital or character information and generate key signal input related to user settings and / or function control of the electronic device, and may include but is not limited to a mouse, a keyboard, a touch screen, a track pad, a track ball, a joystick, a microphone and / or a remote controller. The output unit may be any type of device capable of presenting information, and may include but is not limited to a display unit 1105, a speaker 1106, and other output units 1109, which may include but are not limited to video / audio output terminals, vibrators and / or printers. The communication unit 1108 allows the electronic device 1100 to exchange information / data with other devices via a computer network such as the Internet and / or various telecommunication networks, and may include but is not limited to a modem, a network card, an infrared communication device, a wireless communication transceiver and / or a chipset, such as a Bluetooth™ device, an 802.11 device, a WiFi device, a WiMax device, a cellular communication device and / or the like.
[0121] The application 1102b in the working register 1102 can be loaded to perform the various methods and processes described above. For example, in some embodiments, the image processing method can be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 1107. In some embodiments, part or all of the computer program can be loaded and / or installed on the electronic device 1100 via the storage unit 1107 and / or the communication unit 1108. When the computer program is loaded and executed by the processor 1101, one or more steps of the image processing method described above can be performed. Alternatively, in other embodiments, the processor 1101 can be configured to perform the image processing method in any other appropriate manner (for example, by means of firmware).
[0122] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0123] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0124] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0125] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0126] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.
[0127] A computer system may include clients and servers. Clients and servers are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship to each other.
[0128] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in this disclosure can be performed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.
[0129] Although the embodiments or examples of the present disclosure have been described with reference to the accompanying drawings, it should be understood that the above-mentioned methods, systems and devices are merely exemplary embodiments or examples, and the scope of the present invention is not limited by these embodiments or examples, but only by the claims after authorization and their equivalent scope. Various elements in the embodiments or examples can be omitted or replaced by their equivalent elements. In addition, each step can be performed in an order different from that described in the present disclosure. Further, the various elements in the embodiments or examples can be combined in various ways. It is important that with the evolution of technology, many elements described herein can be replaced by equivalent elements that appear after the present disclosure.
Claims
1. A business processing method based on data storage, include: The target gateway receives a write request, the write request including target data, a target identifier for characterizing a business processing type of the target data, and a storage node identifier for storing the target data; Determining a target service node corresponding to the target identifier; The target gateway sends the target data to the target service node to perform service processing on the target data; as well as The target gateway sends the target data to a target storage node corresponding to the storage node identifier.
2. The method according to claim 1, in, The target gateway is associated with the service processing type of the target data, and the target service node is integrated with the target gateway.
3. The method according to claim 1 or 2, further comprising: include: After the target gateway receives the write request, the target data is copied to obtain copy data of the target data. The target gateway sends the copy data to the target service node.
4. The method according to claim 3, in, The target gateway sends the copy data to the target service node in one of the following ways: The target service node actively pulls the replica data; and The target gateway pushes the copy data to the target service node.
5. The method according to claim 3 or 4, further comprising: include: Determining whether a preset condition is satisfied based at least on the target identifier; as well as In response to a preset condition being met, the copy data is stored in a cache.
6. The method according to claim 5, in, The determining whether a preset condition is met based at least on the target identifier includes: Acquiring service processing capability parameters and / or network resource data of the target service node; Based on the service processing capability parameter and / or network resource data of the target service node, it is determined whether a preset condition is met.
7. The method according to claim 3, further comprising: include: The target gateway obtains a processing result of the target service node on the replica data, where the processing result includes a processing success and a processing failure; as well as The target gateway records the processing result of the replica data.
8. The method according to claim 7, further comprising: include: At least in response to determining that the target business node has failed to process the copy data and determining that all the data to be stored have been stored in the target storage node, the target gateway reads the data to be stored from the target storage node and sends the read data to be stored to the target business node, and the target data is part of the data to be stored.
9. The method according to claim 8, in, At least in response to determining that the target service node fails to process the copy data and determining that all the data to be stored have been stored in the target storage node, the target gateway reads the data to be stored from the target storage node and sends the read data to be stored to the target service node, including: In response to determining that the target service node fails to process the replica data, determining whether to retry; and In response to determining to retry and determining that all the data to be stored have been stored in the target storage node, the target gateway reads the data to be stored from the target storage node and sends the read data to be stored to the target service node.
10. The method according to claim 8 or 9, further comprising: include: At least in response to determining that the target service node fails to process the copy data and determining that all the data to be stored have been stored in the target storage node, determining whether the target service node reads the data to be stored from the cache, In response to determining that the target service node has not read the data to be stored from the cache, the target gateway reads the data to be stored from the target storage node and sends the read data to be stored to the target service node.
11. The method according to any one of claims 3 to 10, in, The target data is uploaded to the target gateway in a streaming manner.
12. The method according to any one of claims 3 to 10, in, The target data is a data slice of the data to be stored.
13. The method according to claim 1 or 2, in, The target data is a data slice of the data to be stored, and the method further includes: In response to determining that the target data has been stored in the target storage node, the target gateway writes a storage success message of the target data into the data bus, wherein the storage success message includes a data identifier of the data to be stored and a shard identifier of the target data. The target gateway sending the target data to the target service node includes: In response to receiving the read request from the target service node, the target gateway reads the target data from the target storage node and sends the read target data to the target service node.
14. The method of claim 13, further comprising: include: After the target gateway receives the write request, the target data is copied to obtain copy data of the target data; The target gateway stores the replica data in a cache.
15. The method of claim 14, in, The target gateway sending the target data to the target service node includes: In response to determining that the target service node has not read the copy data from the cache, the target gateway reads the target data from the target storage node and sends the read target data to the target service node.
16. The method according to claim 14 or 15, further comprising: include: The target gateway obtains the processing result of the target data by the target service node, wherein the processing result includes processing success and processing timeout; as well as The target gateway records the processing result of the target data.
17. The method of claim 16, further comprising: include: In response to determining that the processing of the target data by the target service node has timed out, determining whether all the data to be stored has been stored in the target storage node; In response to determining that the data to be stored has all been stored in the target storage node, the target gateway reads the data to be stored from the target storage node and sends the read data to be stored to the target service node.
18. The method of claim 17, in, When the target gateway stores the replica data in the cache, in response to determining that the target service node has not read the data to be stored from the cache, the target gateway reads the data to be stored from the target storage node and sends the read data to be stored to the target service node.
19. The method according to claim 1 or 2, in, The target gateway sending the target data to the target service node includes: Determining whether all the target data has been stored in the target storage node; In response to determining that the target data has been completely stored in the target storage node, the target gateway reads the target data from the target storage node and sends the read target data to the target service node.
20. The method of any one of claims 1 to 19, further comprising: include: In response to determining that the target data has been stored in the target storage node, the target gateway records the metadata of the target data in the metadata service node.
21. The method according to any one of claims 1 to 19, in, The target identifier is a category identifier that can characterize a service processing type or service attribute information of the target storage node.
22. The method of claim 21, further comprising: include: When the system is initialized, the service attribute information of the target storage node is configured, and the service attribute information is associated with the service processing type.
23. The method of any one of claims 1 to 19, further comprising: include: When the system is initialized, the association relationship between the gateway and the identifier used to characterize the data service processing type, and the association relationship between the service node and the identifier used to characterize the data service processing type are configured.
24. A business processing device based on data storage, include: at least one gateway, including a target gateway, the target gateway being configured to receive a write request, the write request including target data, a target identifier for characterizing a business processing type of the target data, and a storage node identifier for storing the target data; as well as a gateway manager configured to determine a target service node corresponding to the target identifier, The target gateway is further configured to send the target data to the target service node to perform service processing on the target data. And wherein, the target gateway is further configured to send the target data to a target storage node corresponding to the storage node identifier.
25. The device according to claim 24, in, The target gateway is also configured to replicate the target data to obtain replica data of the target data.
26. The device of claim 25, further comprising: include: A cache is configured to store the copy data.
27. The device according to any one of claims 24 to 26, further comprising: include: A data bus is configured to implement communication among the target gateway, the target service node and the target storage node.
28. The device according to any one of claims 24 to 26, further comprising: include: The metadata service node is configured to store metadata of the stored data.
29. The device according to any one of claims 24 to 26, in, The gateway manager is further configured to configure an association relationship between a gateway and an identifier used to characterize a data service processing type, and an association relationship between a service node and an identifier used to characterize a data service processing type.
30. A business processing system based on data storage, include: The business processing device according to any one of claims 24 to 29; as well as At least one service node includes a target service node, wherein the target service node is configured to receive target data from a target gateway and perform service processing on the target data.
31. A business processing system based on data storage, include: The business processing device according to any one of claims 24 to 29; At least one service node, including a target service node, wherein the target service node is configured to receive target data from a target gateway and perform service processing on the target data; as well as At least one storage node includes a target storage node, and the target storage node is configured to receive and store the target data from the target gateway.
32. An electronic device, include: at least one processor; as well as a memory communicatively coupled to the at least one processor; in The memory stores a computer program which, when executed by the at least one processor, implements the method according to any one of claims 1 to 23.
33. A non-transitory computer-readable storage medium storing a computer program, in, The computer program implements the method according to any one of claims 1-23 when executed by a processor.
34. A computer program product comprising a computer program, in, The computer program implements the method according to any one of claims 1-23 when executed by a processor.
