Data processing method, device and storage service system
By determining and sending data operation requests of matching storage service types on the client, combined with the database control of the object-relational mapping component, the problem of insufficient flexibility in local deployment methods is solved, and flexible data processing and multi-processing of various business applications are realized. kind of database support.
Patent Information
- Application Number
- CN202111068401.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-09-13
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2041-09-13
AI Technical Summary
The existing local deployment method is not flexible enough to meet the needs of various business applications, and it is difficult to adapt to the data storage needs of different business applications.
The client responds to data operation instructions, determines the storage service type that matches the target business application, and sends data operation requests to the corresponding storage server. It supports local deployment and cloud deployment, and uses the object relational mapping component to control database execution operation processing. Support Multiple database types.
It realizes flexible data processing for various business applications, enriches the deployment methods of storage services, meets the needs of different types of business applications, and improves the flexibility of deployment.
Smart Images

Figure CN113760868B
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and in particular to a data processing method, device and storage service system. Background Art
[0002] With the rapid development of computer technology, the types of business applications are increasing, and the amount of business data is also increasing. Therefore, people usually deploy database storage services to store the business data of various business applications through the database. Among them, local deployment is one of the commonly used deployment methods. Through the local deployment method, when the terminal device needs to store the business data of a business application, the terminal device writes the business data into the locally deployed database.
[0003] However, the above data deployment method is relatively simple, difficult to meet the needs of various business applications, and has poor deployment flexibility. Summary of the invention
[0004] Based on this, it is necessary to provide a data processing method, device and storage service system that can meet the needs of various business applications and improve the flexibility of deployment in response to the above technical problems.
[0005] In a first aspect, the present application provides a data processing method, which is applied to a client and includes:
[0006] In response to a data operation instruction of a target business application, determining a target storage service type that matches the target business application;
[0007] A data operation request is sent to a storage service end of the target storage service type, wherein the data operation request is used to instruct the storage service end to control a database to execute an operation process corresponding to the data operation request.
[0008] In one embodiment, the determining, in response to a data operation instruction of a target business application, a target storage service type matching the target business application includes:
[0009] In response to a data operation instruction of a target business application, determining a business characteristic of the target business application;
[0010] According to the pre-stored correspondence between the business characteristics and the storage service types, the target storage service type corresponding to the business characteristics of the target business application is determined.
[0011] In one of the embodiments, sending a data operation request to a storage service client of the target storage service type includes:
[0012] Determining a transmission protocol that matches the target business application;
[0013] A data operation request is sent to a storage service end of the target storage service type through the transmission protocol.
[0014] In a second aspect, the present application provides a data processing method, which is applied to a storage service end, and the method includes:
[0015] Receiving a data operation request of a target business application sent by a client, wherein the target business application matches a target storage service type of the storage service client;
[0016] Parse the data operation request and control the database to execute the operation processing corresponding to the data operation request.
[0017] In one embodiment, the control database executes the operation processing corresponding to the data operation request, including:
[0018] The object relation mapping (ORM) component is used to control the database to execute the operation processing corresponding to the data operation request.
[0019] In one embodiment, the storage service client supports multiple types of databases; the control database executes the operation processing corresponding to the data operation request, including:
[0020] Determine the data type of the data to be processed according to the data operation request;
[0021] Among the multiple types of databases, a target database matching the data type is determined, and the target database is controlled to execute an operation process corresponding to the data operation request.
[0022] In a third aspect, the present application provides a storage service system, the storage service system comprising a client, a storage service end and a database; wherein:
[0023] The client is used to respond to the data operation instruction of the target business application, determine the target storage service type that matches the target business application; and send a data operation request to the storage service end of the target storage service type;
[0024] The storage service end is used to receive a data operation request of a target business application sent by a client, parse the data operation request, and control the database to execute an operation process corresponding to the data operation request.
[0025] In one of the embodiments, when the target storage service type is a cloud deployment type, the storage service client runs in a container of a server; the storage service system further includes an orchestration management tool;
[0026] The orchestration management tool is used to determine, among the multiple containers, a target container whose current load status satisfies a preset light load condition;
[0027] The storage service client running on the target container is used to parse the data operation request and control the database to execute the operation processing corresponding to the data operation request.
[0028] In a fourth aspect, the present application provides a data processing device, which is applied to a client, and includes:
[0029] A determination module, configured to determine a target storage service type matching the target business application in response to a data operation instruction of the target business application;
[0030] The sending module is used to send a data operation request to the storage service end of the target storage service type, wherein the data operation request is used to instruct the storage service end to control the database to execute the operation processing corresponding to the data operation request.
[0031] In one embodiment, the determining module is specifically used to:
[0032] In response to a data operation instruction of a target business application, determining a business characteristic of the target business application;
[0033] According to the pre-stored correspondence between the business characteristics and the storage service types, the target storage service type corresponding to the business characteristics of the target business application is determined.
[0034] In one embodiment, the sending module is specifically used for:
[0035] Determining a transmission protocol that matches the target business application;
[0036] A data operation request is sent to a storage service end of the target storage service type through the transmission protocol.
[0037] In a fifth aspect, the present application provides a data processing device, which is applied to a storage service end, and the device includes:
[0038] A receiving module, configured to receive a data operation request of a target business application sent by a client, wherein the target business application matches a target storage service type of the storage service client;
[0039] The control module is used to parse the data operation request and control the database to execute the operation processing corresponding to the data operation request.
[0040] In one embodiment, the control module is specifically used to:
[0041] The object relation mapping (ORM) component is used to control the database to execute the operation processing corresponding to the data operation request.
[0042] In one embodiment, the storage service client supports multiple types of databases; the control module is specifically used to:
[0043] Determine the data type of the data to be processed according to the data operation request;
[0044] Among the multiple types of databases, a target database matching the data type is determined, and the target database is controlled to execute an operation process corresponding to the data operation request.
[0045] In a sixth aspect, the present application provides a computer device, comprising a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:
[0046] In response to a data operation instruction of a target business application, determining a target storage service type that matches the target business application;
[0047] A data operation request is sent to a storage service end of the target storage service type, wherein the data operation request is used to instruct the storage service end to control a database to execute an operation process corresponding to the data operation request.
[0048] In a seventh aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program implements the method steps of the first aspect or the second aspect when executed by a processor.
[0049] In an eighth aspect, the present application provides a computer device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the method steps of the first aspect or the second aspect when executing the computer program.
[0050] In a ninth aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program implements the method steps of the first aspect or the second aspect when executed by a processor.
[0051] In the above-mentioned data processing method, device and storage service system, the client responds to the data operation instruction of the target business application and determines the target storage service type that matches the target business application. Then, the client sends a data operation request to the storage service end of the target storage service type, and the data operation request is used to instruct the storage service end to control the database to perform the operation processing corresponding to the data operation request. Based on this technical solution, local deployment and cloud deployment can be supported at the same time, enriching the deployment methods of storage services, thereby meeting the needs of various types of business applications. BRIEF DESCRIPTION OF THE DRAWINGS
[0052] Figure 1 A schematic diagram of a storage service system in one embodiment of the present application;
[0053] Figure 2 This is a schematic diagram of a storage service system in another embodiment of the present application;
[0054] Figure 3 A flowchart of a data processing method in one embodiment of the present application;
[0055] Figure 4 A schematic diagram of a process for determining a target storage service type in one embodiment of the present application;
[0056] Figure 5 A schematic diagram of a flow chart of sending a data operation request in one embodiment of the present application;
[0057] Figure 6 This is a flowchart of a data processing method in another embodiment of the present application;
[0058] Figure 7 This is a structural block diagram of a data processing device in one embodiment of the present application;
[0059] Figure 8 This is a structural block diagram of a data processing device in another embodiment of the present application;
[0060] Fig. 9 This is an internal structure diagram of a computer device in one embodiment of the present application;
[0061] Fig.10 This is a diagram of the internal structure of a computer device in another embodiment of the present application. DETAILED DESCRIPTION
[0062] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0063] The data processing method provided in this application can be applied to Figure 1In the storage service system shown. The storage service system may include a client 102, a storage service end 104 and a database 106, wherein the client 102 communicates with the storage service end 104 via a network, and the storage service end 104 communicates with the database 106 via a network. Among them, the client 102 may be, but is not limited to, various terminals (such as personal computers, laptops, smart phones, tablet computers) and portable wearable devices, etc. The storage service end 104 may be implemented with an independent server or a server cluster composed of multiple servers, and the database 106 may be a centralized database, a distributed database, etc.
[0064] In the embodiments of the present application, the deployment methods of the storage service include local deployment and cloud deployment. Local deployment can be applicable to business application scenarios with low concurrency and low data volume, or business application scenarios that do not require communication with the external network; cloud deployment is applicable to business application scenarios with high concurrency of massive data, or business application scenarios that require communication with the external network. Based on this, the storage service end can be divided into a storage service end of the local deployment type and a storage service end of the cloud deployment type.
[0065] Reference Figure 2 , an example of a storage service system provided by an embodiment of the present application. The storage service system includes multiple clients 110 and two servers with storage services, namely, server 1210 and server 1220, wherein server 1210 is a server under a cloud deployment mode, and multiple containers 1211 can be run in the server 1210, and a storage service client can be run in a container. Specifically, each container 1211 can store a program code corresponding to a storage service client 1213 of a cloud deployment type to realize the storage service function in the cloud. In this way, multiple storage service clients 1213 can be deployed in the server 1210. In addition, the server 1210 can also include an orchestration management tool 1212 of a container, so as to control and manage the container 1211. The storage service client 1213 deployed in the cloud can communicate with a distributed database 1310, so as to perform data operations on the data in the distributed database 1310. Multiple databases 1311 are included in the distributed database 1310, and data synchronization can be performed between multiple databases. The server 1220 is a server in a local deployment mode, and the server 1220 may store program codes corresponding to the storage service client 1221 of the local deployment type to implement the local storage service function. The locally deployed storage service client 1221 may communicate with the centralized database 1320, thereby performing data operations on the database file 1321 in the centralized database 1320. Based on this technical solution, local deployment and cloud deployment can be supported at the same time, enriching the deployment mode of the storage service, thereby meeting the needs of various types of business applications.
[0066] In one embodiment, Figure 3 As shown, a data processing method is provided, which can be applied to Figure 1 The client in includes the following steps:
[0067] Step 301 : In response to a data operation instruction of a target business application, determine a target storage service type that matches the target business application.
[0068] The target storage service type is a local deployment type or a cloud deployment type.
[0069] In implementation, the client can run a variety of business applications. For example, in a medical scenario, it can run a prosthesis library application, an ECG data application, a patient information application, a medical equipment application, etc. These business applications will generate data operation instructions during use. The client can communicate with storage service clients that run storage services with different deployment methods. Therefore, after the client obtains the data operation instructions of a certain business application (which may be called the target business application), it can determine the storage service type (which may be called the target storage service type) that matches the target business application in each storage service type. In one example, the correspondence between business applications and storage service types may be stored in the client, and the client can determine the target storage service type corresponding to the target business application based on the correspondence.
[0070] Among them, data operation instructions can be generated by users operating in business applications, or can be automatically generated by clients calling interfaces according to preset processing strategies. Data operation instructions can include but are not limited to read instructions, write instructions, delete instructions, modify instructions, etc. Storage service types can include local deployment types and cloud deployment types.
[0071] Step 302: Send a data operation request to a storage service end of a target storage service type. The data operation request is used to instruct the storage service end to control the database to execute an operation process corresponding to the data operation request.
[0072] In implementation, after the client determines the target storage service type corresponding to the target business application, it can send a data operation request to the storage service end of the target storage service type through a preset transmission protocol, so that the storage service end performs corresponding operation processing according to the data operation instruction.
[0073] In an embodiment of the present application, the client responds to the data operation instruction of the target business application and determines the target storage service type that matches the target business application; wherein the target storage service type is a local deployment type or a cloud deployment type. The client can send a data operation request to the storage service end of the target storage service type, and the data operation request is used to instruct the storage service end to control the database to perform the operation processing corresponding to the data operation request. Based on this technical solution, local deployment and cloud deployment can be supported at the same time, enriching the deployment methods of storage services, thereby meeting the needs of various types of business applications.
[0074] In addition, in the embodiments of the present application, the codes of the storage service system can be cross-compiled using a cross-platform compilation method, and the cross-platform compilation tools may include makefile, CMake compilation tools, etc. In this way, the storage service system can support Window and Linux cross-platform services.
[0075] like Figure 4 As shown, the specific process of determining the target storage service type in step 301 includes:
[0076] Step 401 : determining a service feature of a target service application in response to a data operation instruction of the target service application.
[0077] In implementation, after receiving the data operation instruction for the target business application, the client can determine the business characteristics of the target business application. Business characteristics can include network characteristics and data flow characteristics, wherein the network characteristics indicate whether the clusters of the business application are deployed in the same local area network; the data flow characteristics can indicate the size of the data flow and concurrency of the business application. Specifically, the client can pre-store the correspondence between the business application and the business characteristics, and the client can query the business characteristics corresponding to the target business application in the correspondence.
[0078] Step 402: Determine the target storage service type corresponding to the service characteristics of the target service application according to the pre-stored correspondence between the service characteristics and the storage service type.
[0079] In implementation, the client may also store a correspondence between business features and storage service types, which may be set by technical personnel according to actual business needs. In this way, the client may query the storage service type (i.e., target storage service type) corresponding to the business features of the target business application in the correspondence.
[0080] In one example, if the data collection devices of the business application are deployed in different local area networks, the corresponding storage service type is the cloud deployment type; if the data collection devices of the business application are deployed in a local area network, the corresponding storage service type is the local deployment type. For example, the data of the prosthesis library is usually collected by a designated device, and the local deployment type can be used; the data of the patient information application is usually collected by hospital devices in different geographical locations, and the cloud deployment type can be used.
[0081] In another example, if the data flow and concurrency of the business application are large, the corresponding storage service type is the cloud deployment type; if the data flow and concurrency of the business application are small, the corresponding storage service type is the local deployment type. For example, the data volume and concurrency of medical equipment applications are small, so the local deployment type can be used; the data volume and concurrency of patient information applications are large, so the cloud deployment type can be used.
[0082] Optionally, data can be transmitted between a database under a cloud deployment type (such as a distributed database) and a database under a local deployment type (such as a centralized database) through database middleware. When the business characteristics of a business application change, the data between the two databases can be transferred through the database middleware to change the storage service type corresponding to the business application. For example, the storage service type corresponding to the patient information application is a local deployment type. After the amount of patient information increases to a certain amount of data, the data of the patient information application in the centralized database is transferred to the distributed database through the database middleware, and the storage service type corresponding to the patient information application is changed to a cloud deployment type.
[0083] Optionally, the client can also implement different cross-process communication methods, such as Figure 5 As shown, the specific process is:
[0084] Step 501: Determine a transmission protocol that matches the target business application.
[0085] In implementation, the client can determine the transmission protocol that matches the target business application. Specifically, the transmission protocol used by each business application can be pre-set by the technical personnel in the business application, and the client can establish the corresponding relationship between each business application and the transmission protocol according to the transmission protocol set in each business application. The client can determine the transmission protocol corresponding to the target business application (i.e., the transmission protocol that matches the target business application) based on the corresponding relationship.
[0086] In one example, for local deployment types, TCP (Transmission Control Protocol) or UDP (User Datagram Protocol) can be used for transmission. Among them, some business data transmission (such as file-type data) has relatively low efficiency requirements but relatively high accuracy requirements, such as medical files, medical emails and other data, and TCP protocol can be used for data transmission. Some business data (such as video-type data) has relatively high efficiency requirements and relatively low accuracy requirements, such as medical videos, and UDP protocol can be used for data transmission. Among them, TCP protocol can be used for transmission under normal circumstances.
[0087] For cloud deployment types, the Restful API (Application Programming Interface) protocol or the websocket protocol can be used for data transmission. The websocket protocol is a TCP-based protocol, consisting of a transmission protocol and a programming API. It can establish a two-way connection between the browser in the client (such as a patient information application) and the storage service end, and give the browser real-time communication capabilities in an event-based manner. That is, the websocket protocol can be applied to scenarios that require high real-time. The storage service end can actively push information to the client, and the client can also actively send information to the storage service end. The websocket protocol is suitable for relatively lightweight, low-performance overhead, and efficient communication types of data (such as communication message type data). The Restful API can be applied to browser-type data, which can simplify software requirements, and compared with other mechanisms superimposed on the HTTP (Hyper Text Transfer Protocol) protocol, the Restful API has less software dependence and better long-term compatibility in the evolution of software technology, and can be applied to various types of data.
[0088] Optionally, the client may also store business data types corresponding to each business application (such as video type, file type, communication message type, etc.). The client may store the correspondence between business data types, storage service types and transmission protocols. The client queries the transmission protocol that matches the target business application from the above three correspondences based on the business data type corresponding to the target business application and the target storage service type.
[0089] In this solution, the client can support multiple transmission protocols, which improves the adaptability and compatibility of the client and business applications.
[0090] Step 502: Send a data operation request to a storage service client of a target storage service type through a transmission protocol.
[0091] In implementation, after the client determines the transmission protocol, it can send a data operation request to the storage service end of the target storage service type through the transmission protocol.
[0092] In this solution, the client can communicate with the storage service through different protocols such as Restful API, WebSocket, TCP, UDP, etc., realizing cross-process communication and facilitating communication between the client and the storage service.
[0093] like Figure 6 As shown, a data processing method is provided, which can be applied to Figure 1 The storage service client in the example includes the following steps:
[0094] Step 601: Receive a data operation request of a target business application sent by a client.
[0095] The target business application matches the target storage service type of the storage service end, and the target storage service type is a local deployment type or a cloud deployment type.
[0096] In implementation, the storage service end may receive a data operation request of a target business application sent by a client. After receiving a data operation instruction of a target business application, the client first determines a target storage service type that matches the target business application, and then sends a data operation request to the storage service end of the target storage service type. Therefore, the data operation requests received by the storage service end are all data operation requests of the target business application that matches its own storage service type.
[0097] Step 602: parse the data operation request and control the database to execute the operation processing corresponding to the data operation request.
[0098] In implementation, the storage service client can communicate with its corresponding database. Among them, the database corresponding to the storage service client of the local deployment type is usually a centralized database; the database corresponding to the storage service client of the cloud deployment type is usually a distributed database. After receiving the data operation request, the storage service client can parse the data operation request and obtain the operation information carried by the data operation request. The operation information may include the operation type (such as a read operation or a write operation), the data to be written, the identification of the data to be read, etc., which is not limited in the embodiments of the present application. The storage service client can control the database to execute the operation processing corresponding to the data operation request based on the operation information.
[0099] In an embodiment of the present application, the storage service end receives a data operation request of a target business application sent by a client, wherein the target business application matches the target storage service type of the storage service end, and the target storage service type is a local deployment type or a cloud deployment type. Then, the data operation request is parsed, and the database is controlled to perform the operation processing corresponding to the data operation request. Based on the storage service end in this technical solution, local deployment and cloud deployment can be supported, enriching the deployment methods of the storage service, thereby meeting the needs of various types of business applications.
[0100] Optionally, the specific processing process of step 602 is: controlling the database to execute the operation processing corresponding to the data operation request through an ORM (Object Relation Mapping) component.
[0101] In implementation, an ORM component can also be integrated into the storage service client, and the storage service client can control and manage the database through the ORM component. The ORM component is used to realize the conversion between data of different types of systems in object-oriented programming languages, that is, to operate the operations of adding, deleting, modifying and querying database tables in an object-oriented way. The ORM component can make the storage service client interact with the database easily and conveniently, without considering SQL (Structured Query Language) statements, and can avoid some performance and efficiency problems caused by querying through SQL statements. In addition, the ORM component can support the storage service client to communicate with various types of databases, such as SQLite, MySQL, PostgreSQL, Oracle, Ms SQL Server, MongoDB, etc., so as to meet the data storage needs of different business applications.
[0102] Optionally, the specific process of controlling the database to perform the operation processing corresponding to the data operation request includes: determining the data type of the data to be processed according to the data operation request; determining a target database that matches the data type among multiple types of databases, and controlling the target database to perform the operation processing corresponding to the data operation request.
[0103] As described above, the storage service client can support multiple types of databases. Thus, for different types of business applications, the business data of the business application can be stored in a matching database according to the data storage requirements of the business application, thereby meeting the data storage requirements of various business applications.
[0104] The storage service client may pre-store a database selection strategy. When the storage service client receives a data operation request from a target business application, it first determines the data type of the data to be processed based on the data operation request, and then determines the database (i.e., the target database) that matches the data type among multiple types of databases based on the database selection strategy, and then controls the target database through the ORM component to perform the operation processing corresponding to the data operation request. For example, data types include structured types and unstructured types, and structured data (i.e., structured data) can be stored in a structured database, and unstructured data (i.e., unstructured data) can be stored in an unstructured database. It is understandable that one business application usually corresponds to one type of database.
[0105] Optional, see Figure 2 , when the target storage service type is a cloud deployment type, the server in the cloud deployment can be a Linux server, and the storage service client can run in the server's container. Specifically, the data that the storage service client depends on (including the installation package of the database storage service and other dependent library files on the storage service program) can be deployed in different containers. Each container will be published to the Linux server, which can be regarded as a container cluster. In this way, multiple containers deployed on the same server run independently of each other without interfering with each other.
[0106] Orchestration management tools can be used as container cluster management platforms to orchestrate, manage and schedule containers, and can also implement functions such as automated deployment and automatic expansion and contraction of container clusters. Orchestration management tools can use Kubernetes (K8S for short), container platforms, Microsoft AKS services, Microsoft ASF, Google GKE and Amazon EKS. Taking K8S as an example, K8S's orchestration software monitors the deployment status of containers and the running status of applications. If a container fails, K8S will automatically start a new container to implement storage services.
[0107] Based on the storage service system, the method further includes: determining, through an orchestration management tool, a target container whose current load state satisfies a preset light load condition among multiple containers. Accordingly, the processing process of step 602 is: parsing the data operation request through the storage service end running on the target container, and controlling the database to execute the operation processing corresponding to the data operation request.
[0108] In implementation, the orchestration management tool can obtain the load status of each container in the storage service end in real time, and the load status can be resource utilization, the number of pending tasks, etc. After receiving the data operation request, the orchestration management tool can determine the target container whose current load status meets the preset light load condition among multiple containers, and then parse the data operation request through the storage service end running on the target container, and control the database to perform the operation processing corresponding to the data operation request. Among them, the preset light load condition can be that the resource utilization rate of the container is less than the preset threshold.
[0109] Optionally, if there are multiple container data that meet the preset light load condition, a container may be randomly selected from these containers as the target container, or a container with the lowest resource usage rate may be selected as the target container.
[0110] In this way, data operation requests can be processed through containers with lighter loads, which can improve the processing efficiency of data operation requests while achieving load balancing.
[0111] It should be understood that although Figure 3-6 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 3-6 At least part of the steps may include multiple steps or multiple stages. These steps or stages are not necessarily performed at the same time, but can be performed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed in turn or alternately with other steps or at least part of the steps or stages in other steps.
[0112] In one embodiment, Figure 7 As shown, a data processing device is provided, which is applied to a client, and includes: a determination module 710 and a sending module 720, wherein:
[0113] The determination module 710 is used to determine a target storage service type that matches the target business application in response to a data operation instruction of the target business application; wherein the target storage service type is a local deployment type or a cloud deployment type;
[0114] The sending module 720 is used to send a data operation request to the storage service end of the target storage service type. The data operation request is used to instruct the storage service end to control the database to execute the operation processing corresponding to the data operation request.
[0115] In one embodiment, the determination module 710 is specifically configured to:
[0116] In response to a data operation instruction of a target business application, determining a business characteristic of the target business application;
[0117] According to the pre-stored correspondence between the business characteristics and the storage service types, the target storage service type corresponding to the business characteristics of the target business application is determined.
[0118] In one embodiment, the sending module 720 is specifically configured to:
[0119] Determine the transmission protocol that matches the target business application;
[0120] Send a data operation request to the storage service client of the target storage service type through the transmission protocol.
[0121] In one embodiment, Figure 8 As shown, a data processing device is provided, which is applied to a storage service end, and the device includes: a receiving module 810 and a control module 820, wherein:
[0122] A receiving module 810 is used to receive a data operation request of a target business application sent by a client, wherein the target business application matches a target storage service type of the storage service client, and the target storage service type is a local deployment type or a cloud deployment type;
[0123] The control module 820 is used to parse the data operation request and control the database to execute the operation processing corresponding to the data operation request.
[0124] In one embodiment, the control module 820 is specifically configured to:
[0125] The object-relational mapping (ORM) component is used to control the database to execute the operation processing corresponding to the data operation request.
[0126] In one embodiment, the storage service client supports multiple types of databases; the control module 820 is specifically used to:
[0127] Determine the data type of the data to be processed according to the data operation request;
[0128] Among multiple types of databases, a target database matching the data type is determined, and the target database is controlled to execute operation processing corresponding to the data operation request.
[0129] For the specific definition of the data processing device, please refer to the definition of the data processing method above, which will not be repeated here. Each module in the above data processing device can be implemented in whole or in part by software, hardware and a combination thereof. The above modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
[0130] In one embodiment, a storage service system is provided. The storage service system includes a client, a storage service end, and a database. The storage service end includes a storage service end of a local deployment type and a storage service end of a cloud deployment type.
[0131] The client is used to respond to the data operation instruction of the target business application, determine the target storage service type that matches the target business application; wherein the target storage service type is a local deployment type or a cloud deployment type; and send a data operation request to the storage service end of the target storage service type;
[0132] The storage service end is used to receive data operation requests from target business applications sent by the client, parse the data operation requests, and control the database to perform operation processing corresponding to the data operation requests.
[0133] In one of the embodiments, when the target storage service type is a cloud deployment type, the storage service client runs in a container of a server; the storage service system further includes an orchestration management tool;
[0134] The orchestration management tool is used to determine, among the multiple containers, a target container whose current load status satisfies a preset light load condition;
[0135] The storage service client running on the target container is used to parse the data operation request and control the database to execute the operation processing corresponding to the data operation request.
[0136] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Fig. 9 As shown. The computer device includes a processor, a memory and a network interface connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a data processing method is implemented.
[0137] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Fig.10 As shown. The computer device includes a processor, a memory, a communication interface, a display screen and an input device connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be achieved through WIFI, an operator network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a data processing method is implemented. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covered on the display screen, or a button, trackball or touchpad set on the computer device housing, or an external keyboard, touchpad or mouse, etc.
[0138] Those skilled in the art will understand that Fig.10 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0139] In one embodiment, a computer device is further provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above method embodiments when executing the computer program.
[0140] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.
[0141] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory or optical memory, etc. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM).
[0142] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0143] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.
Claims
1. A data processing method, characterized in that: The method is applied to a client, and the method comprises: In response to the data operation instruction of the target business application, determine the target storage service type that matches the target business application; the determination of the target storage service type that matches the target business application in response to the data operation instruction of the target business application includes: in response to the data operation instruction of the target business application, determine the business characteristics of the target business application, the business characteristics include network characteristics or data flow characteristics, the network characteristics indicate whether the various machine clusters of the target business application are deployed in the same local area network, and the data flow characteristics indicate the size of the data flow and concurrency of the target business application; according to the correspondence between the pre-stored business characteristics and storage service types, determine the target storage service type corresponding to the business characteristics of the target business application; wherein, if the data acquisition equipment of the target business application is deployed in different local area networks or the data flow and concurrency are large, the target storage service type is a cloud deployment type; if the data acquisition equipment of the target business application is deployed in the same local area network or the data flow and concurrency are small, the target storage service type is a local deployment type; A data operation request is sent to the storage service end of the target storage service type, wherein the data operation request is used to instruct the storage service end to control the database corresponding to the target storage service type to perform operation processing corresponding to the data operation request.
2. The method according to claim 1, characterized in that The sending of the data operation request to the storage service client of the target storage service type includes: Determining a transmission protocol that matches the target business application; A data operation request is sent to a storage service end of the target storage service type through the transmission protocol.
3. A data processing method, characterized in that: The method is applied to a storage service end, and the method comprises: Receive a data operation request of a target business application sent by a client, wherein the target business application matches a target storage service type of the storage service end; the target storage service type is a storage service type corresponding to the business characteristics of the target business application determined by the client according to a pre-stored correspondence between business characteristics and storage service types after responding to a data operation instruction of the target business application and determining the business characteristics of the target business application, wherein the business characteristics include network characteristics or data flow characteristics, wherein the network characteristics indicate whether each machine cluster of the target business application is deployed in the same local area network, and the data flow characteristics indicate the size of the data flow and concurrency of the target business application. If the data acquisition devices of the target business application are deployed in different local area networks or the data flow and concurrency are large, then the target storage service type is a cloud deployment type; if the data acquisition devices of the target business application are deployed in the same local area network or the data flow and concurrency are small, then the target storage service type is a local deployment type; Parse the data operation request, and control the database corresponding to the target storage service type to execute the operation processing corresponding to the data operation request.
4. The method according to claim 3, characterized in that The controlling the database corresponding to the target storage service type to execute the operation processing corresponding to the data operation request includes: The object relationship mapping component controls the database corresponding to the target storage service type to execute the operation processing corresponding to the data operation request.
5. The method according to claim 3, characterized in that: The storage service client is connected to multiple types of databases; the controlling the database corresponding to the target storage service type to execute the operation processing corresponding to the data operation request includes: Determine the data type of the data to be processed according to the data operation request; Among the multiple types of databases, a target database matching the data type is determined, and the target database is controlled to execute an operation process corresponding to the data operation request.
6. A data processing device, characterized in that: The device is applied to a client, and comprises: A determination module, for determining a target storage service type that matches the target business application in response to a data operation instruction of a target business application; the determination of a target storage service type that matches the target business application in response to a data operation instruction of a target business application comprises: determining a business characteristic of the target business application in response to a data operation instruction of the target business application, the business characteristic comprising a network characteristic or a data flow characteristic, the network characteristic indicating whether each machine cluster of the target business application is deployed in the same local area network, the data flow characteristic indicating the size of the data flow and concurrency of the target business application; determining a target storage service type corresponding to the business characteristic of the target business application according to a correspondence between pre-stored business characteristics and storage service types; wherein, if the data acquisition device of the target business application is deployed in a different local area network or the data flow and concurrency are large, the target storage service type is a cloud deployment type; if the data acquisition device of the target business application is deployed in the same local area network or the data flow and concurrency are small, the target storage service type is a local deployment type; The sending module is used to send a data operation request to the storage service end of the target storage service type, and the data operation request is used to instruct the storage service end to control the database corresponding to the target storage service type to perform the operation processing corresponding to the data operation request.
7. A data processing device, characterized in that: The device is applied to a storage service end, and the device includes: A receiving module, used for receiving a data operation request of a target business application sent by a client, wherein the target business application matches a target storage service type of the storage service client; the target storage service type is a storage service type corresponding to the business characteristics of the target business application determined by the client according to a correspondence between pre-stored business characteristics and storage service types after responding to a data operation instruction of the target business application and determining the business characteristics of the target business application, wherein the business characteristics include network characteristics or data flow characteristics, wherein the network characteristics indicate whether each machine cluster of the target business application is deployed in the same local area network, and the data flow characteristics indicate the size of the data flow and concurrency of the target business application, and if the data acquisition devices of the target business application are deployed in different local area networks or the data flow and concurrency are large, then the target storage service type is a cloud deployment type; if the data acquisition devices of the target business application are deployed in the same local area network or the data flow and concurrency are small, then the target storage service type is a local deployment type; The control module is used to parse the data operation request and control the database corresponding to the target storage service type to execute the operation processing corresponding to the data operation request.
8. A storage service system, characterized in that: The storage service system includes a client, a storage service end and a database; wherein, The client is used to respond to the data operation instructions of the target business application, determine the business characteristics of the target business application, and determine the target storage service type corresponding to the business characteristics of the target business application based on the pre-stored correspondence between the business characteristics and the storage service type; send a data operation request to the storage service end of the target storage service type; the business characteristics include network characteristics or data flow characteristics, the network characteristics indicate whether the various machine clusters of the target business application are deployed in the same local area network, and the data flow characteristics indicate the size of the data flow and concurrency of the target business application. If the data acquisition equipment of the target business application is deployed in different local area networks or the data flow and concurrency are large, then the target storage service type is a cloud deployment type; if the data acquisition equipment of the business application is deployed in the same local area network or the data flow and concurrency are small, then the target storage service type is a local deployment type; The storage service end is used to receive data operation requests of target business applications sent by the client, parse the data operation requests, and control the database corresponding to the target storage service type to execute the operation processing corresponding to the data operation request; different storage service types correspond to different types of databases.
9. The storage service system according to claim 8, characterized in that: In the case where the target storage service type is a cloud deployment type, the storage service client runs in a container of a server; the storage service system also includes an orchestration management tool; The orchestration management tool is used to determine, among the multiple containers, a target container whose current load status satisfies a preset light load condition; The storage service client running on the target container is used to parse the data operation request and control the database to execute the operation processing corresponding to the data operation request.
