Data reading and writing processing method, device, electronic device and storage medium

By determining the data request type and identification, optimizing storage container selection solves the problems of long query time and low storage efficiency in massive data storage, and achieves more efficient data processing and storage.

CN115167764BActive Publication Date: 2024-08-27CHINA TELECOM CORP LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202210727249.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-24
Publication Date
2024-08-27
Estimated Expiration
2042-06-24

AI Technical Summary

Technical Problem

The existing technology has problems such as long query time and low data processing efficiency in massive data storage. Especially when the amount of written data is large, the storage time will also be too long.

Method used

By judging the type of data processing request, the target storage container is determined, and the storage container is positioned and filtered according to whether it carries a read or write identifier, optimizing the data read and write paths, and reducing data query time and storage time.

Benefits of technology

It improves data processing efficiency and reduces data storage time. By dynamically adjusting the storage path, the most appropriate storage container is selected for data storage and query.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115167764B
    Figure CN115167764B
Patent Text Reader

Abstract

An embodiment of the present invention provides a data read and write processing method, device, electronic device and storage medium, the method comprising: obtaining a data processing request sent by a client; if the data processing request is a read request, determining whether the read request carries a corresponding read identifier, and determining a first target storage container corresponding to the read request according to the determination result, and obtaining first target data corresponding to the read request from the first target storage container, and returning the first target data to the client; if the data processing request is a write request, determining whether the write request carries a corresponding write identifier, and matching a second target storage container corresponding to the write request according to the determination result, and writing the second target data in the write request into the second target storage container.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data storage, and in particular to a data reading and writing processing method, a data reading and writing processing device, an electronic device and a computer-readable storage medium. Background Art

[0002] With the development of network information, people's demand for the network is increasing. Both mobile phones and computers are inseparable from the network, and the data generated based on this is also growing exponentially. Faced with massive amounts of network data, how to effectively store, read and process data has become an urgent problem to be solved. In the related art, a dedicated database is set up to store data. However, although it can solve the problem of massive data storage, it is also easy to increase the data query time due to the excessive amount of data in the database, which greatly reduces the efficiency of data processing, and when the amount of data written is large, it is also easy to cause the problem of too long storage time. Summary of the invention

[0003] The embodiments of the present invention provide a data reading and writing processing method, device, electronic device and computer-readable storage medium to solve or partially solve the problems of query time, long storage time and low data processing efficiency in the data storage process.

[0004] The embodiment of the present invention discloses a data reading and writing processing method, comprising:

[0005] Get the data processing request sent by the client;

[0006] If the data processing request is a read request, determine whether the read request carries a corresponding read identifier, determine a first target storage container corresponding to the read request according to the determination result, obtain first target data corresponding to the read request from the first target storage container, and return the first target data to the client;

[0007] If the data processing request is a write request, determine whether the write request carries a corresponding write identifier, match a second target storage container corresponding to the write request according to the determination result, and write the second target data in the write request into the second target storage container.

[0008] Optionally, determining the first target storage container corresponding to the read request according to the judgment result includes:

[0009] If the read request carries a first read identifier associated with a first write identifier, determining that the read request is not the first read of data, and locating a first target storage container corresponding to the first write identifier from a plurality of preset storage containers;

[0010] If the read request carries a second read identifier that is not associated with any write identifier, the read request is determined to be the first data read, a query order corresponding to the plurality of storage containers is obtained, and data queries are performed on the storage containers in sequence according to the query order until a storage container storing the first target data read by the read request is found, and the storage container storing the first target data is used as the first target storage container.

[0011] Optionally, the storage container includes at least a local cache, a relational database, and a non-relational database, and querying the storage containers for data in sequence according to the query order until the storage container storing the first target data read by the read request is queried, including:

[0012] The relational database, the non-relational database and the local cache are queried for data in sequence according to the query order until a storage container storing the first target data read by the read request is queried.

[0013] Optionally, after returning the first target data to the client, the method further includes:

[0014] If the read request is not the first read data, the first read identifier is counted to obtain a first count amount corresponding to the first read identifier;

[0015] If the read request is for reading data for the first time, a second write identifier corresponding to the first target data is obtained, and the second write identifier is associated with the second read identifier, and the second read identifier is counted to obtain a first count amount corresponding to the second read identifier.

[0016] Optionally, matching a second target storage container corresponding to the write request according to the judgment result, and writing the second target data in the write request into the second target storage container includes:

[0017] If the write request carries a first write identifier, determining that the write request is not the first write of data, and locating a second target storage container corresponding to the first write identifier from a plurality of preset storage containers;

[0018] If the write request does not carry any write identifier, determine that the write request is the first data write, and obtain the data amount of the second target data carried in the write request and the storage threshold range of each storage container;

[0019] The storage container corresponding to the storage threshold range within which the data volume of the second target data falls is used as the second target storage container corresponding to the write request.

[0020] Optionally, after writing the second target data in the write request into the second target storage container, the method further includes:

[0021] If the write request is not the first write data, the first write identifier is counted to obtain a second count amount corresponding to the first write identifier;

[0022] If the write request is to write data for the first time, a second write identifier is associated with the second target storage container, and the second write identifier is counted to obtain a second count amount corresponding to the second write identifier.

[0023] Optionally, it also includes:

[0024] Acquire the third target data stored in the third target storage container according to a preset frequency, and acquire the third write identifier and the third read identifier corresponding to the third target data, as well as the first target counting amount and the first interval time corresponding to the third write identifier, and the second target calculation amount and the second interval time corresponding to the third read identifier, wherein the first interval time is the interval time between the current initiation of a write request for the third write identifier and the last initiation of a write request for the third write identifier, and the second interval time is the interval time between the current initiation of a read request for the third read identifier and the last initiation of a read request for the third read identifier;

[0025] Using the first target counting amount and the first interval time, calculate the writing rate corresponding to the third writing identifier, and using the second target counting amount and the second interval time, calculate the reading rate corresponding to the third reading identifier;

[0026] The storage containers are screened according to the write rate and the read rate, a third target storage container matching the third target data is screened out, and the third target data is stored in the third target storage container.

[0027] Optionally, the storage container includes at least a local cache, a relational database, and a non-relational database, and the screening of the storage container according to the write rate and the read rate, screening out a third target storage container matching the third target data, and storing the third target data in the third target storage container includes:

[0028] If the ratio between the read rate and the write rate is less than a first read threshold of the local cache, and the third target data is not stored in the local cache, transferring and storing the third target data in the local cache;

[0029] If the ratio between the read rate and the write rate is less than a second read threshold of the non-relational database, and the third target data is not stored in the non-relational database, transferring and storing the third target data in the non-relational database;

[0030] If the ratio of the read rate to the write rate is greater than or equal to a third read threshold of the relational database, and the third target data is stored in the relational database, the third target data is transferred and stored in the relational database.

[0031] The embodiment of the present invention also discloses a data reading and writing processing device, including:

[0032] A processing request acquisition module is used to obtain a data processing request sent by a client;

[0033] a data reading module, configured to, if the data processing request is a read request, determine whether the read request carries a corresponding read identifier, determine a first target storage container corresponding to the read request according to the determination result, obtain first target data corresponding to the read request from the first target storage container, and return the first target data to the client;

[0034] a data writing module, configured to determine, if the data processing request is a write request, whether the write request carries a corresponding write identifier, match a second target storage container corresponding to the write request according to the determination result, and write the second target data in the write request into the second target storage container.

[0035] Optionally, the data reading module is specifically used for:

[0036] If the read request carries a first read identifier associated with a first write identifier, determining that the read request is not the first read of data, and locating a first target storage container corresponding to the first write identifier from a plurality of preset storage containers;

[0037] If the read request carries a second read identifier that is not associated with any write identifier, the read request is determined to be the first data read, a query order corresponding to the plurality of storage containers is obtained, and data queries are performed on the storage containers in sequence according to the query order until a storage container storing the first target data read by the read request is found, and the storage container storing the first target data is used as the first target storage container.

[0038] Optionally, the storage container includes at least a local cache, a relational database, and a non-relational database, and the data reading module is specifically used to:

[0039] The relational database, the non-relational database and the local cache are queried for data in sequence according to the query order until a storage container storing the first target data read by the read request is queried.

[0040] Optionally, the device further comprises a first counting module, configured to:

[0041] If the read request is not the first read data, the first read identifier is counted to obtain a first count amount corresponding to the first read identifier;

[0042] If the read request is for reading data for the first time, a second write identifier corresponding to the first target data is obtained, and the second write identifier is associated with the second read identifier, and the second read identifier is counted to obtain a first count amount corresponding to the second read identifier.

[0043] Optionally, the data writing module is specifically used for:

[0044] If the write request carries a first write identifier, determining that the write request is not the first write of data, and locating a second target storage container corresponding to the first write identifier from a plurality of preset storage containers;

[0045] If the write request does not carry any write identifier, determine that the write request is the first data write, and obtain the data volume of the second target data carried in the write request and the storage threshold range of each storage container;

[0046] The storage container corresponding to the storage threshold range within which the data volume of the second target data falls is used as the second target storage container corresponding to the write request.

[0047] Optionally, the device further comprises a second counting module, configured to:

[0048] If the write request is not the first write data, the first write identifier is counted to obtain a second count amount corresponding to the first write identifier;

[0049] If the write request is to write data for the first time, a second write identifier is associated with the second target storage container, and the second write identifier is counted to obtain a second count amount corresponding to the second write identifier.

[0050] Optionally, it also includes:

[0051] A parameter acquisition module, used to acquire the third target data stored in the third target storage container at a preset frequency, and acquire a third write identifier and a third read identifier corresponding to the third target data, as well as a first target counting amount and a first interval time corresponding to the third write identifier, and a second target calculation amount and a second interval time corresponding to the third read identifier, wherein the first interval time is the interval time between the current initiation of a write request for the third write identifier and the last initiation of a write request for the third write identifier, and the second interval time is the interval time between the current initiation of a read request for the third read identifier and the last initiation of a read request for the third read identifier;

[0052] a rate calculation module, configured to calculate a write rate corresponding to the third write identifier by using the first target calculation amount and the first interval time, and to calculate a read rate corresponding to the third read identifier by using the second target calculation amount and the second interval time;

[0053] The data storage module is used to screen storage containers according to the write rate and the read rate, screen out a third target storage container matching the third target data, and store the third target data in the third target storage container.

[0054] Optionally, the storage container includes at least a local cache, a relational database, and a non-relational database, and the data storage module is specifically used for:

[0055] If the ratio between the read rate and the write rate is less than a first read threshold of the local cache, and the third target data is not stored in the local cache, transferring and storing the third target data in the local cache;

[0056] If the ratio between the read rate and the write rate is less than a second read threshold of the non-relational database, and the third target data is not stored in the non-relational database, transferring and storing the third target data in the non-relational database;

[0057] If the ratio of the read rate to the write rate is greater than or equal to a third read threshold of the relational database, and the third target data is stored in the relational database, the third target data is transferred and stored in the relational database.

[0058] The embodiment of the present invention further discloses an electronic device, comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus;

[0059] The memory is used to store computer programs;

[0060] The processor is used to implement the method described in the embodiment of the present invention when executing the program stored in the memory.

[0061] The embodiment of the present invention further discloses a computer-readable storage medium having instructions stored thereon, which, when executed by one or more processors, enables the processors to execute the method described in the embodiment of the present invention.

[0062] The embodiments of the present invention include the following advantages:

[0063] In an embodiment of the present invention, it is applied to a data core processing center. When a data processing request sent by a client is obtained, it can first be determined what type of request the data processing request is. If the data processing request is a read request, it is determined whether the read request carries a corresponding read identifier, and the first target storage container corresponding to the read request is determined according to the judgment result, and the first target data corresponding to the read request is obtained from the first target storage container, and the first target data is returned to the client; if the data processing request is a write request, it is determined whether the write request carries a corresponding write identifier, and the second target storage container corresponding to the write request is matched according to the judgment result, and the second target data in the write request is written into the second target storage container, so that in the process of reading and writing data, serialization management can be performed according to the type of request. For a read request, the storage container can be located according to whether the corresponding read identifier is carried, thereby reducing the data query time and improving the data processing efficiency. For a write request, a suitable storage container can be screened out for data storage according to whether the corresponding write identifier is carried, thereby reducing the data storage time. BRIEF DESCRIPTION OF THE DRAWINGS

[0064] Figure 1 is a flowchart of a method for reading and writing data provided in an embodiment of the present invention;

[0065] Figure 2 is a schematic diagram of data request processing provided in an embodiment of the present invention;

[0066] Figure 3 is a schematic diagram of a data volume matching container provided in an embodiment of the present invention;

[0067] Figure 4 is a schematic diagram of writing data provided in an embodiment of the present invention;

[0068] Figure 5 is a schematic diagram of reading data provided in an embodiment of the present invention;

[0069] Figure 6is a schematic diagram of data processing provided in an embodiment of the present invention;

[0070] Figure 7 It is a structural block diagram of a data reading and writing processing device provided in an embodiment of the present invention;

[0071] Figure 8 It is a block diagram of an electronic device provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0072] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.

[0073] As an example, with the gradual development of network information, people's demand for the network is increasing. Whether it is a mobile phone or a computer, it is inseparable from the network, and the data generated is also growing exponentially. There are still various problems in how to effectively store and read the data. In the relevant technology, the storage method used is mainly to set up a dedicated database to store data. Although this storage method can solve the problem of storing massive data, due to the excessive amount of data in the database, the query time is too long, thereby sacrificing data processing efficiency, writing too much data, resulting in too long storage time, etc.

[0074] In this regard, one of the core invention points of the present invention is that for data storage, when a data processing request sent by a client is received, it is possible to first determine what type of request the data processing request belongs to. For a read request, the storage container can be located based on whether it carries a corresponding read identifier, thereby reducing data query time and improving data processing efficiency. For a write request, a suitable storage container can be screened out for data storage based on whether it carries a corresponding write identifier, thereby reducing the time for data storage.

[0075] Reference Figure 1 , shows a flowchart of a data reading and writing processing method provided in an embodiment of the present invention, which may specifically include the following steps:

[0076] Step 101, obtaining a data processing request sent by a client;

[0077] In the embodiment of the present invention, it can be applied to the data core processing center, which can be equipment, software, etc. deployed in the data storage system for data management, or it can be the data storage system itself, and the present invention is not limited to this.

[0078] Among them, the client can interact with the data core processing center for data. The data processing request may include a data read request and a data write request. For a read request, the client can read the corresponding data from the data storage system; for a write request, the client can write (i.e., store) the corresponding data to the data storage system.

[0079] Optionally, in the data storage system, different types of storage containers may be included, such as local cache, relational database and non-relational data, etc., wherein the local cache has the advantage that the data does not need to be transmitted across the network, has the best performance in writing and reading data, and preferentially stores the most popular data. The disadvantage is that it occupies the memory space of the application process and cannot store large amounts of data; non-relational database: the data is stored in the memory of the corresponding process in the form of kv keys, there is no coupling between the data, and the expansion is relatively simple. Compared with the local cache, the data needs to be transmitted across the network, and the data processing is affected by the network; relational database: the data needs to be transmitted across the network, and the data is stored in the local hard disk. Compared with the local cache and the non-relational database, the reading and writing operations are relatively slow, but it supports the control of the atomicity of the transaction and is easy to roll back, because it stores the data in the hard disk, it is easy to do persistence processing, and also because the expansion price of the hard disk is low, it can store a large amount of data. Based on the different storage characteristics of the storage container, in the process of storing data, the data can be flexibly stored according to the characteristics of the data itself and the storage characteristics of the storage container, so as to select the most efficient storage method for the data.

[0080] Step 102: If the data processing request is a read request, determine whether the read request carries a corresponding read identifier, determine a first target storage container corresponding to the read request according to the determination result, obtain first target data corresponding to the read request from the first target storage container, and return the first target data to the client;

[0081] In an embodiment of the present invention, when the data core processing center determines that the data processing request is a read request, it can further check the read request to determine whether it carries a corresponding read identifier. When the client performs a data read operation, the data core processing center can assign a corresponding read identifier to the same data to indicate whether the data has been read and how many times it has been read. Therefore, by determining whether it carries a corresponding read identifier, it can be identified whether the read request is the first read or not, so as to perform data queries according to different reading situations and improve the efficiency of data reading.

[0082] In a specific implementation, for the first request to read data, it does not carry the task read and write identifier (write identifier and read identifier), and during the data storage process, for the stored data, when it is written to the storage container, the data core processing center can assign the corresponding write identifier to the data to establish a correspondence between "data-write identifier-storage container", so that when the data is read subsequently, it can be accurately located to the corresponding storage container, and when the data is read, when the corresponding data is successfully read, the data core processing center can assign the corresponding read identifier to the data, and at the same time establish a mapping relationship between the read identifier and the write identifier corresponding to the data. When the data is read again, the data can be accurately located through the "read identifier-write identifier-storage container-data" method, thereby improving data query efficiency.

[0083] The same data has a corresponding unique read identifier and write identifier. Different clients can locate the same data in the data storage system through the corresponding read identifiers when reading and writing the same data. The present invention does not impose any limitation on this.

[0084] Specifically, if the read request carries a first read identifier associated with a first write identifier, it can be determined that the read request is not the first time to read data, the data to be read has been read before, the data core processing center has assigned a corresponding read identifier to the data, and the read identifier is associated with a corresponding write identifier, so that the first target storage container corresponding to the first write identifier can be located from several storage containers in the storage system, and the first target data corresponding to the read request can be obtained from the first target storage container, and then the first target data is returned to the client; if the read request carries a second read identifier that is not associated with any write identifier, it is determined that the read request is the first time to read data. At this time, the client has only initiated what data to read, but the data core processing center is not sure in which storage container the data is stored. In this regard, the query order corresponding to several storage containers can be first obtained, and then the storage containers can be queried for data in sequence according to the query order until the storage container storing the first target data read by the read request is queried, and the storage container storing the first target data is used as the first target storage container. Optionally, for the data query process, since the storage containers include local cache, non-relational database, relational database, etc., and the corresponding storage data volumes increase in sequence, the data core processing center can query from the storage container with a small storage data volume until the corresponding data is queried. Specifically, the data query can be performed on the relational database, non-relational database and local cache in sequence according to the query order until the storage container storing the first target data read by the read request is queried. In the process of reading data, the data core processing center can determine whether the data read this time is the first read or not the first read by checking whether the read request carries the corresponding read identifier, and then select an appropriate method for data query according to the verification result, which can effectively improve the efficiency of data query reading.

[0085] In addition, after the first target data is returned to the client, in order to be able to flexibly adjust the data storage method later, if the client is not reading the data for the first time, the first read identifier can be counted to obtain a first count amount corresponding to the first read identifier; if the client is reading the data for the first time, the second write identifier corresponding to the first target data is obtained, and the second write identifier is associated with the second read identifier to establish a correspondence between "read identifier-write identifier-storage container-data", and the second read identifier is counted to obtain a first count amount corresponding to the second read identifier. For example, when data A is read by the client for the first time after being written to the corresponding storage container, the data core processing center can assign a corresponding read identifier to data A and count it as 1. When data A is read again by the same client or another client, the data core processing center can count the read identifier corresponding to data A as 2, and so on. For the write identifier, the data core processing center can also count according to the number of writes. Therefore, by counting the read and write identifiers of the data, it is convenient to optimize the subsequent data storage path, so as to select the most efficient storage path for the data by dynamically adjusting the data storage path, thereby improving the efficiency of data query.

[0086] Step 103: If the data processing request is a write request, determine whether the write request carries a corresponding write identifier, match the second target storage container corresponding to the write request according to the determination result, and write the second target data in the write request into the second target storage container.

[0087] When the data core processing center determines that the data processing request is a write request, it can further check the write request to determine whether it carries a corresponding write identifier. When the client performs a data write operation, the data core processing center can assign a corresponding write identifier to the same data to indicate whether the data has been written and how many times it has been written. Therefore, by determining whether it carries a corresponding write identifier, it can be identified whether the write request is the first write or not, so as to perform data queries according to different write situations and write the data to the corresponding storage container to improve data writing efficiency.

[0088] In the specific implementation, for the first request to write data, it does not carry any write identifier, so it is necessary to query the appropriate storage container for data writing; for a request that is not the first time to write data, it carries the data to be written and the write identifier corresponding to the data. Through the write identifier, the data core processing center accurately locates the corresponding storage container and writes the data into the storage container. Specifically, if the write request carries a first write identifier, then the write request is determined to be a non-first write of data, and the data carried in the write request has been written previously, so that the second target storage container corresponding to the first write identifier can be located from several storage containers in the storage system; if the write request does not carry any write identifier, then the write request is determined to be the first write of data, and the data volume of the second target data carried in the write request and the storage threshold range of each storage container are obtained, and then the storage container corresponding to the storage threshold range within which the data volume of the second target data falls can be used as the second target storage container corresponding to the write request. Therefore, during the data writing process, the data core processing center can determine whether the data being written is the first write or not the first write by checking whether the write request carries the corresponding write identifier, and then select an appropriate method for data storage according to the verification result, which can effectively improve the efficiency of data writing.

[0089] In addition, after writing the data to the corresponding storage container, if the write request is not the first time to write data, the data core processing center can count the first write identifier to obtain a second count corresponding to the first write identifier; if the write request is the first time to write data, the second write identifier is associated with the second target storage container, and the second write identifier is counted to obtain a second count corresponding to the second write identifier. By counting the reading and writing identifiers of the data, it is convenient to optimize the subsequent storage path of the data, so as to select the most efficient storage path for the data by dynamically adjusting the data storage path, thereby improving the efficiency of data query.

[0090] In an optional embodiment, for the storage system, in addition to the above-mentioned processing of reading and writing data, the third target data stored in the third target storage container can also be obtained according to a preset frequency, and the third write identifier and the third read identifier corresponding to the third target data, as well as the first target counting amount and the first interval time corresponding to the third write identifier and the second target calculation amount and the second interval time corresponding to the third read identifier are obtained, the first interval time being the interval time between the current write request initiated by the third write identifier and the last write request initiated by the third write identifier, and the second interval time being the interval time between the current read request initiated by the third read identifier and the last read request initiated by the third read identifier, and then the first target calculation amount and the second interval time are used. The write rate corresponding to the third write identifier is calculated by using the second target count amount and the first interval time, and the read rate corresponding to the third read identifier is calculated by using the second target count amount and the second interval time, and then the storage container is screened according to the write rate and the read rate, and the third target storage container matching the third target data is screened out, and the third target data is stored in the third target storage container, so that by comparing the data reading and retrieval rate with the read threshold set for each storage container, the data storage path can be dynamically and flexibly adjusted, so that the data storage is more reasonable, and too much data is avoided from being stored in a single storage container, so that when the corresponding storage container is queried for data, the data query efficiency and data writing efficiency can be effectively improved.

[0091] Specifically, if the ratio between the read rate and the write rate is less than the first read threshold of the local cache, and the third target data is not stored in the local cache, the third target data is transferred and stored in the local cache; if the ratio between the read rate and the write rate is less than the second read threshold of the non-relational database, and the third target data is not stored in the non-relational database, the third target data is transferred and stored in the non-relational database; if the ratio between the read rate and the write rate is greater than or equal to the third read threshold of the relational database, and the third target data is stored in the relational database, the third target data is transferred and stored in the relational database.

[0092] Different types of storage containers may be set with different read thresholds. For local cache, non-relational database and relational database, the corresponding read thresholds increase in sequence, and the present invention does not impose any limitation on this.

[0093] It should be noted that the embodiments of the present invention include but are not limited to the above examples. It is understandable that those skilled in the art can also make settings according to actual needs under the guidance of the ideas of the embodiments of the present invention, and the present invention is not limited to this.

[0094] In an embodiment of the present invention, it is applied to a data core processing center. When a data processing request sent by a client is obtained, it can first be determined what type of request the data processing request is. If the data processing request is a read request, it is determined whether the read request carries a corresponding read identifier, and the first target storage container corresponding to the read request is determined according to the judgment result, and the first target data corresponding to the read request is obtained from the first target storage container, and the first target data is returned to the client; if the data processing request is a write request, it is determined whether the write request carries a corresponding write identifier, and the second target storage container corresponding to the write request is matched according to the judgment result, and the second target data in the write request is written into the second target storage container, so that in the process of reading and writing data, serialization management can be performed according to the type of request. For a read request, the storage container can be located according to whether the corresponding read identifier is carried, thereby reducing the data query time and improving the data processing efficiency. For a write request, a suitable storage container can be screened out for data storage according to whether the corresponding write identifier is carried, thereby reducing the data storage time.

[0095] In order to help those skilled in the art better understand the technical solution of the embodiment of the present invention, an example is given below for illustrative explanation:

[0096] Reference Figure 2 , showing a schematic diagram of data request processing provided in an embodiment of the present invention. When the data core processing center receives a data processing request sent by a client, it can judge the data processing request. If it is a write request, it can select a suitable storage path and write data according to the corresponding write rule, and then return the corresponding write result to the client; if it is a read request, it can select a suitable read path according to the corresponding read rule and return the data to the client.

[0097] Reference Figure 3 , showing a schematic diagram of a data volume matching container provided in an embodiment of the present invention, for data written for the first time, the data core processing center can obtain the data volume of the data to be written, and match the data volume with the storage container to determine the most appropriate storage path. For storage containers, different types of storage containers can correspond to different storage volumes, and the same type of storage containers can also correspond to different storage volumes. For example, for a local cache, it can store a data volume of 0-50M, divided into 5 storage paths with gradually increasing storage data sizes; similarly, for a non-relational kv cache, it can store a data volume of 50-200M, divided into 5 storage paths with gradually increasing storage data sizes; for a relational database, it can store data volumes greater than 200M, so that a suitable storage path can be selected for data writing according to the data to be written and the capacity characteristics of the storage container.

[0098] Reference Figure 4 , showing a schematic diagram of writing data provided in an embodiment of the present invention. When the request is an operation of writing data, it is first checked whether the request carries a write identifier assigned by the processing center. If not, it is determined to be the first time to write data, and the amount of data carried by the request is obtained. The storage threshold of each container is matched according to the amount of data, and then a suitable storage container is selected for storage, and the processing result is returned to the data core processing center. The processing center assigns a write identifier to the request. There is a corresponding relationship between the write identifier and the storage container, which can accurately determine in which container the corresponding data is stored, and finally returns the processing result to the client; if the request carries a write identifier assigned by the processing center, the specific container where the data needs to be stored is directly located through the write identifier, and the corresponding storage is directly performed, and the processing result is returned to the processing center. The processing center counts the write identifier, and the result is L1, which paves the way for subsequent data processing and returns the processing result to the client.

[0099] Reference Figure 5 , showing a schematic diagram of reading data provided in an embodiment of the present invention, when the request is an operation of reading data, the processing center will first check whether there is a read identifier associated with the write identifier for the request, if not, it is determined to be the first time to read the data, and query from each storage container in turn, the query order is: relational database, non-relational kv cache, local cache, until the data is queried, and then the required data is returned to the data core processing center, the data core processing center queries the write identifier of the data, and then assigns the request a read identifier corresponding to the write identifier, and returns the query result. If the request has a read identifier associated with the write identifier, query through the identifier, obtain the data storage path corresponding to the write identifier, directly query the corresponding data, and return it to the data core processing center, the data core processing center counts the read identifier, the result is L2, paving the way for subsequent data processing, and returns the query result to the client.

[0100] Reference Figure 6, showing a schematic diagram of data processing provided in an embodiment of the present invention, the data core processing center will analyze the data in real time according to the request, and efficiently store and process the data according to the different characteristics of each container. The specific measures are: obtain the current count quantity L1, L2 of the read and write identification of the data, the interval time t1, t2 of the read and write request, respectively calculate the write rate v1=L1 / t1 and the read rate v2=L2 / t2 of the request, and use the value of v2 / v1 to determine whether it is hot data or cold data. If v2 / v1 is less than the first read threshold of the local cache and the target data is not stored in the local cache, the target data is transferred and stored in the local cache; if v2 / v1 is less than the second read threshold of the non-relational kv cache and the target data is not stored in the non-relational kv cache, the target data is transferred and stored in the non-relational kv cache; if v2 / v1 is greater than or equal to the third read threshold of the relational database and the target data is stored in the relational database, the target data is transferred and stored in the relational database, so that all data are reasonably and efficiently stored by comparing with the thresholds set for each container.

[0101] It should be noted that, for the sake of simplicity, the method embodiments are described as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.

[0102] Reference Figure 7 , shows a structural block diagram of a data reading and writing processing device provided in an embodiment of the present invention, which may specifically include the following modules:

[0103] The processing request acquisition module 701 is used to acquire the data processing request sent by the client;

[0104] The data reading module 702 is configured to, if the data processing request is a read request, determine whether the read request carries a corresponding read identifier, determine a first target storage container corresponding to the read request according to the determination result, obtain first target data corresponding to the read request from the first target storage container, and return the first target data to the client;

[0105] The data writing module 703 is used to determine whether the write request carries a corresponding write identifier if the data processing request is a write request, match the second target storage container corresponding to the write request according to the determination result, and write the second target data in the write request into the second target storage container.

[0106] In an optional embodiment, the data reading module 702 is specifically used for:

[0107] If the read request carries a first read identifier associated with a first write identifier, determining that the read request is not the first read of data, and locating a first target storage container corresponding to the first write identifier from a plurality of preset storage containers;

[0108] If the read request carries a second read identifier that is not associated with any write identifier, the read request is determined to be the first data read, a query order corresponding to the plurality of storage containers is obtained, and data queries are performed on the storage containers in sequence according to the query order until a storage container storing the first target data read by the read request is found, and the storage container storing the first target data is used as the first target storage container.

[0109] In an optional embodiment, the storage container includes at least a local cache, a relational database, and a non-relational database, and the data reading module 702 is specifically used for:

[0110] The relational database, the non-relational database and the local cache are queried for data in sequence according to the query order until a storage container storing the first target data read by the read request is queried.

[0111] In an optional embodiment, the device further includes a first counting module, configured to:

[0112] If the read request is not the first read data, the first read identifier is counted to obtain a first count amount corresponding to the first read identifier;

[0113] If the read request is for reading data for the first time, a second write identifier corresponding to the first target data is obtained, and the second write identifier is associated with the second read identifier, and the second read identifier is counted to obtain a first count amount corresponding to the second read identifier.

[0114] In an optional embodiment, the data writing module 703 is specifically used for:

[0115] If the write request carries a first write identifier, determining that the write request is not the first write of data, and locating a second target storage container corresponding to the first write identifier from a plurality of preset storage containers;

[0116] If the write request does not carry any write identifier, determine that the write request is the first data write, and obtain the data amount of the second target data carried in the write request and the storage threshold range of each storage container;

[0117] The storage container corresponding to the storage threshold range within which the data volume of the second target data falls is used as the second target storage container corresponding to the write request.

[0118] In an optional embodiment, the device further includes a second counting module, configured to:

[0119] If the write request is not the first write data, the first write identifier is counted to obtain a second count amount corresponding to the first write identifier;

[0120] If the write request is to write data for the first time, a second write identifier is associated with the second target storage container, and the second write identifier is counted to obtain a second count amount corresponding to the second write identifier.

[0121] In an optional embodiment, it also includes:

[0122] A parameter acquisition module, used to acquire the third target data stored in the third target storage container at a preset frequency, and acquire a third write identifier and a third read identifier corresponding to the third target data, as well as a first target counting amount and a first interval time corresponding to the third write identifier, and a second target calculation amount and a second interval time corresponding to the third read identifier, wherein the first interval time is the interval time between the current initiation of a write request for the third write identifier and the last initiation of a write request for the third write identifier, and the second interval time is the interval time between the current initiation of a read request for the third read identifier and the last initiation of a read request for the third read identifier;

[0123] a rate calculation module, configured to calculate a write rate corresponding to the third write identifier by using the first target calculation amount and the first interval time, and to calculate a read rate corresponding to the third read identifier by using the second target calculation amount and the second interval time;

[0124] The data storage module is used to screen storage containers according to the write rate and the read rate, screen out a third target storage container matching the third target data, and store the third target data in the third target storage container.

[0125] In an optional embodiment, the storage container includes at least a local cache, a relational database, and a non-relational database, and the data storage module is specifically used for:

[0126] If the ratio between the read rate and the write rate is less than a first read threshold of the local cache, and the third target data is not stored in the local cache, transferring and storing the third target data in the local cache;

[0127] If the ratio between the read rate and the write rate is less than a second read threshold of the non-relational database, and the third target data is not stored in the non-relational database, transferring and storing the third target data in the non-relational database;

[0128] If the ratio of the read rate to the write rate is greater than or equal to a third read threshold of the relational database, and the third target data is stored in the relational database, the third target data is transferred and stored in the relational database.

[0129] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0130] In addition, an embodiment of the present invention further provides an electronic device, including: a processor, a memory, and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, the various processes of the above-mentioned data reading and writing processing method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be described here.

[0131] The embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, each process of the above-mentioned data read and write processing method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it is not repeated here. The computer-readable storage medium is, for example, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0132] Figure 8 A schematic diagram of the hardware structure of an electronic device for implementing various embodiments of the present invention.

[0133] The electronic device 800 includes but is not limited to: a radio frequency unit 801, a network module 802, an audio output unit 803, an input unit 804, a sensor 805, a display unit 806, a user input unit 807, an interface unit 808, a memory 809, a processor 810, and a power supply 811. Those skilled in the art will appreciate that Figure 8 The electronic device structure shown in the figure does not constitute a limitation on the electronic device, and the electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently. In the embodiments of the present invention, the electronic device includes but is not limited to a mobile phone, a tablet computer, a laptop computer, a PDA, a vehicle-mounted terminal, a wearable device, and a pedometer.

[0134] It should be understood that in the embodiment of the present invention, the radio frequency unit 801 can be used for receiving and sending signals during information transmission or communication. Specifically, after receiving downlink data from the base station, it is sent to the processor 810 for processing; in addition, uplink data is sent to the base station. Generally, the radio frequency unit 801 includes but is not limited to an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, etc. In addition, the radio frequency unit 801 can also communicate with the network and other devices through a wireless communication system.

[0135] The electronic device provides users with wireless broadband Internet access through the network module 802, such as helping users to send and receive emails, browse web pages, and access streaming media.

[0136] The audio output unit 803 can convert the audio data received by the RF unit 801 or the network module 802 or stored in the memory 809 into an audio signal and output it as sound. Moreover, the audio output unit 803 can also provide audio output related to a specific function performed by the electronic device 800 (for example, a call signal reception sound, a message reception sound, etc.). The audio output unit 803 includes a speaker, a buzzer, a receiver, etc.

[0137] The input unit 804 is used to receive audio or video signals. The input unit 804 may include a graphics processor (GPU) 8041 and a microphone 8042, and the graphics processor 8041 processes the image data of a static picture or video obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The processed image frame can be displayed on the display unit 806. The image frame processed by the graphics processor 8041 can be stored in the memory 809 (or other storage medium) or sent via the radio frequency unit 801 or the network module 802. The microphone 8042 can receive sound and can process such sound into audio data. The processed audio data can be converted into a format output that can be sent to a mobile communication base station via the radio frequency unit 801 in the case of a telephone call mode.

[0138] The electronic device 800 also includes at least one sensor 805, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor, wherein the ambient light sensor can adjust the brightness of the display panel 8061 according to the brightness of the ambient light, and the proximity sensor can turn off the display panel 8061 and / or the backlight when the electronic device 800 is moved to the ear. As a type of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), and can detect the magnitude and direction of gravity when stationary, which can be used to identify the posture of the electronic device (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc.; the sensor 805 can also include a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, etc., which will not be repeated here.

[0139] The display unit 806 is used to display information input by the user or information provided to the user. The display unit 806 may include a display panel 8061, which may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.

[0140] The user input unit 807 can be used to receive input digital or character information, and to generate key signal input related to user settings and function control of the electronic device. Specifically, the user input unit 807 includes a touch panel 8071 and other input devices 8072. The touch panel 8071, also known as a touch screen, can collect the user's touch operation on or near it (such as the user's operation on the touch panel 8071 or near the touch panel 8071 using any suitable object or accessory such as a finger, stylus, etc.). The touch panel 8071 may include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into the contact point coordinates, and then sends it to the processor 810, receives the command sent by the processor 810 and executes it. In addition, the touch panel 8071 can be implemented using multiple types such as resistive, capacitive, infrared and surface acoustic waves. In addition to the touch panel 8071, the user input unit 807 may also include other input devices 8072. Specifically, other input devices 8072 may include but are not limited to a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which will not be described in detail here.

[0141] Furthermore, the touch panel 8071 may be overlaid on the display panel 8061. When the touch panel 8071 detects a touch operation on or near it, it transmits the information to the processor 810 to determine the type of the touch event. Then, the processor 810 provides a corresponding visual output on the display panel 8061 according to the type of the touch event. Figure 8 In the figure, the touch panel 8071 and the display panel 8061 are used as two independent components to realize the input and output functions of the electronic device. However, in some embodiments, the touch panel 8071 and the display panel 8061 can be integrated to realize the input and output functions of the electronic device, which is not limited here.

[0142] The interface unit 808 is an interface for connecting an external device to the electronic device 800. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, an audio input / output (I / O) port, a video I / O port, a headphone port, etc. The interface unit 808 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the electronic device 800 or may be used to transmit data between the electronic device 800 and an external device.

[0143] The memory 809 can be used to store software programs and various data. The memory 809 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one application required for a function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data created according to the use of the mobile phone (such as audio data, a phone book, etc.), etc. In addition, the memory 809 can include a high-speed random access memory, and can also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.

[0144] The processor 810 is the control center of the electronic device. It uses various interfaces and lines to connect various parts of the entire electronic device. By running or executing software programs and / or modules stored in the memory 809 and calling data stored in the memory 809, it performs various functions of the electronic device and processes data, thereby monitoring the electronic device as a whole. The processor 810 may include one or more processing units; preferably, the processor 810 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 810.

[0145] The electronic device 800 may also include a power supply 811 (such as a battery) for supplying power to each component. Preferably, the power supply 811 may be logically connected to the processor 810 through a power management system, thereby implementing functions such as charging, discharging, and power consumption management through the power management system.

[0146] In addition, the electronic device 800 includes some functional modules not shown, which will not be described in detail here.

[0147] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0148] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for enabling a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present invention.

[0149] The embodiments of the present invention are described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific implementation modes, which are merely illustrative rather than restrictive. Under the guidance of the present invention, ordinary technicians in this field can also make many forms without departing from the scope of protection of the present invention and the claims, all of which are within the protection of the present invention.

[0150] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed in the embodiments of the present invention can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0151] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

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

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

[0154] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0155] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as USB flash drives, mobile hard disks, ROM, RAM, magnetic disks, or optical disks.

[0156] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

Claims

1. A data reading and writing processing method, characterized in that: include: Get the data processing request sent by the client; If the data processing request is a read request, determine whether the read request carries a corresponding read identifier, determine a first target storage container corresponding to the read request according to the determination result, obtain first target data corresponding to the read request from the first target storage container, and return the first target data to the client; If the data processing request is a write request, determine whether the write request carries a corresponding write identifier, match a second target storage container corresponding to the write request according to the determination result, and write the second target data in the write request into the second target storage container; Acquire the third target data stored in the third target storage container according to a preset frequency, and acquire the third write identifier and the third read identifier corresponding to the third target data, as well as the first target counting amount and the first interval time corresponding to the third write identifier, and the second target calculation amount and the second interval time corresponding to the third read identifier, wherein the first interval time is the interval time between the current initiation of a write request for the third write identifier and the last initiation of a write request for the third write identifier, and the second interval time is the interval time between the current initiation of a read request for the third read identifier and the last initiation of a read request for the third read identifier; Using the first target counting amount and the first interval time, calculate the writing rate corresponding to the third writing identifier, and using the second target counting amount and the second interval time, calculate the reading rate corresponding to the third reading identifier; The storage containers are screened according to the write rate and the read rate, a third target storage container matching the third target data is screened out, and the third target data is stored in the third target storage container.

2. The method according to claim 1, characterized in that The determining, according to the judgment result, a first target storage container corresponding to the read request comprises: If the read request carries a first read identifier associated with a first write identifier, determining that the read request is not the first read of data, and locating a first target storage container corresponding to the first write identifier from a plurality of preset storage containers; If the read request carries a second read identifier that is not associated with any write identifier, the read request is determined to be the first data read, a query order corresponding to the plurality of storage containers is obtained, and data queries are performed on the storage containers in sequence according to the query order until a storage container storing the first target data read by the read request is found, and the storage container storing the first target data is used as the first target storage container.

3. The method according to claim 2, characterized in that The storage container includes at least a local cache, a relational database, and a non-relational database, and the data querying of the storage containers in sequence according to the query order until the storage container storing the first target data read by the read request is queried includes: The relational database, the non-relational database and the local cache are queried for data in sequence according to the query order until a storage container storing the first target data read by the read request is queried.

4. The method according to claim 2, characterized in that: After returning the first target data to the client, the method further includes: If the read request is not the first read data, the first read identifier is counted to obtain a first count amount corresponding to the first read identifier; If the read request is for reading data for the first time, a second write identifier corresponding to the first target data is obtained, and the second write identifier is associated with the second read identifier, and the second read identifier is counted to obtain a first count amount corresponding to the second read identifier.

5. The method according to claim 1, characterized in that: The matching the second target storage container corresponding to the write request according to the judgment result, and writing the second target data in the write request into the second target storage container includes: If the write request carries a first write identifier, determining that the write request is not the first write of data, and locating a second target storage container corresponding to the first write identifier from a plurality of preset storage containers; If the write request does not carry any write identifier, determine that the write request is the first data write, and obtain the data amount of the second target data carried in the write request and the storage threshold range of each storage container; The storage container corresponding to the storage threshold range within which the data volume of the second target data falls is used as the second target storage container corresponding to the write request.

6. The method according to claim 5, characterized in that After writing the second target data in the write request into the second target storage container, the method further includes: If the write request is not the first write data, the first write identifier is counted to obtain a second count amount corresponding to the first write identifier; If the write request is to write data for the first time, a second write identifier is associated with the second target storage container, and the second write identifier is counted to obtain a second count amount corresponding to the second write identifier.

7. The method according to claim 1, characterized in that The storage container includes at least a local cache, a relational database, and a non-relational database. The screening of the storage container according to the write rate and the read rate, screening out a third target storage container matching the third target data, and storing the third target data in the third target storage container includes: If the ratio between the read rate and the write rate is less than a first read threshold of the local cache, and the third target data is not stored in the local cache, transferring and storing the third target data in the local cache; If the ratio between the read rate and the write rate is less than a second read threshold of the non-relational database, and the third target data is not stored in the non-relational database, transferring and storing the third target data in the non-relational database; If the ratio of the read rate to the write rate is greater than or equal to a third read threshold of the relational database, and the third target data is stored in the relational database, the third target data is transferred and stored in the relational database.

8. A data reading and writing processing device, characterized in that: include: A processing request acquisition module is used to obtain a data processing request sent by a client; a data reading module, configured to, if the data processing request is a read request, determine whether the read request carries a corresponding read identifier, determine a first target storage container corresponding to the read request according to the determination result, obtain first target data corresponding to the read request from the first target storage container, and return the first target data to the client; a data writing module, configured to determine, if the data processing request is a write request, whether the write request carries a corresponding write identifier, match a second target storage container corresponding to the write request according to the determination result, and write the second target data in the write request into the second target storage container.

9. An electronic device, characterized in that: It includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; The memory is used to store computer programs; The processor is used to implement the method according to any one of claims 1 to 7 when executing the program stored in the memory.

10. A computer-readable storage medium having instructions stored thereon, which, when executed by one or more processors, cause the processors to perform the method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Storage device configuration management system and application method of storage device configuration management system

    CN103399715A

  • Method and device for processing operation request in storage system

    CN104823428A

  • Data reading method and device and electronic equipment

    CN112783843A

  • Memory control method, memory control apparatus, and image forming method that uses memory control method

    US10579318B1

  • Method and device for processing operation request in storage system

    WO2015027506A1