CN109302449B - Data writing method, data reading device and server - Google Patents

Data writing method, data reading device and server Download PDF

Info

Publication number
CN109302449B
CN109302449B CN201811011369.7A CN201811011369A CN109302449B CN 109302449 B CN109302449 B CN 109302449B CN 201811011369 A CN201811011369 A CN 201811011369A CN 109302449 B CN109302449 B CN 109302449B
Authority
CN
China
Prior art keywords
data
server
service
identifier
service data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811011369.7A
Other languages
Chinese (zh)
Other versions
CN109302449A (en
Inventor
贾明磊
王安红
李奇
庞磊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Advanced New Technologies Co Ltd
Advantageous New Technologies Co Ltd
Original Assignee
Advanced New Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Advanced New Technologies Co Ltd filed Critical Advanced New Technologies Co Ltd
Priority to CN201811011369.7A priority Critical patent/CN109302449B/en
Publication of CN109302449A publication Critical patent/CN109302449A/en
Application granted granted Critical
Publication of CN109302449B publication Critical patent/CN109302449B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/568Storing data temporarily at an intermediate stage, e.g. caching
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/04Protocols for data compression, e.g. ROHC

Abstract

The embodiment of the specification provides a data writing method, a data reading device and a server. The data writing method comprises the following steps: receiving a data write request; the data writing request corresponds to service data and a data identifier; when the data volume of the service data is larger than a preset value, compressing the service data to obtain compressed data; sending the compressed data and the data identifier to a coordination server; such that the coordination server performs a write operation based on the compressed data and the data identification. The embodiment of the description can reduce the load of a single cache server in a distributed server cluster and improve the stability of the distributed cache server cluster.

Description

Data writing method, data reading device and server
Technical Field
The embodiment of the specification relates to the technical field of computers, in particular to a data writing method, a data reading device and a server.
Background
With the rapid development of internet communication technology, some large-scale internet systems adopt a distributed cache server cluster to perform service processing based on the consideration of hotspot data access and database server access pressure reduction. The distributed cache server cluster may include a coordinating server and a plurality of cache servers. The coordinating server may be configured to manage the plurality of cache servers. The plurality of cache servers may be respectively configured to cache the service data. In a distributed cache server cluster environment, read and write operations on the business data typically fall on a single cache server allocated by the coordinating server.
The performance of a single cache server is limited, and under the environment of a distributed cache server cluster, the data volume of the service data targeted by the read-write operation cannot be too large, otherwise, the load of the single cache server is too large, which may cause the fault of the single cache server, and further affect the stability of the distributed cache server cluster.
Disclosure of Invention
An object of an embodiment of the present specification is to provide a data writing method, a data reading device, and a server, so as to improve stability of a distributed cache server cluster.
To achieve the above object, an embodiment of the present specification provides a data writing method, including: receiving a data write request; the data writing request corresponds to service data and a data identifier; when the data volume of the service data is larger than a preset value, compressing the service data to obtain compressed data; sending the compressed data and the data identifier to a coordination server; such that the coordination server performs a write operation based on the compressed data and the data identification.
To achieve the above object, an embodiment of the present specification provides a data writing apparatus, including: a receiving unit configured to receive a data write request; the data writing request corresponds to service data and a data identifier; the compression unit is used for compressing the service data to obtain compressed data when the data volume of the service data is larger than a preset value; a sending unit, configured to send the compressed data and the data identifier to a coordination server; such that the coordination server performs a write operation based on the compressed data and the data identification.
To achieve the above object, an embodiment of the present specification provides a server, including: a memory for storing computer instructions; a processor for executing the computer instructions to perform the steps of: receiving a data write request; the data writing request corresponds to service data and a data identifier; when the data volume of the service data is larger than a preset value, compressing the service data to obtain compressed data; sending the compressed data and the data identifier to a coordination server; such that the coordination server performs a write operation based on the compressed data and the data identification.
To achieve the above object, an embodiment of the present specification provides a data writing method, including: receiving a data write request; the data writing request corresponds to service data and a data identifier; when the data volume of the service data is larger than a preset value, segmenting the service data according to the preset value to obtain a plurality of subdata; the data volume of each subdata is smaller than or equal to the preset value; determining a plurality of subdata identifications corresponding to the plurality of subdata according to the data identifications; sending the plurality of subdata and the plurality of subdata identifications to a coordination server; to facilitate the coordinating server to perform a write operation based on the plurality of child data and the plurality of child data identifications.
To achieve the above object, an embodiment of the present specification provides a data writing apparatus, including: a receiving unit configured to receive a data write request; the data writing request corresponds to service data and a data identifier; the dividing unit is used for dividing the service data according to a preset value to obtain a plurality of subdata when the data volume of the service data is larger than the preset value; the data volume of each subdata is smaller than or equal to the preset value; a determining unit, configured to determine, according to the data identifier, a plurality of sub-data identifiers corresponding to the plurality of sub-data; a sending unit, configured to send the multiple subdata and the multiple subdata identifiers to a coordination server; to facilitate the coordinating server to perform a write operation based on the plurality of child data and the plurality of child data identifications.
To achieve the above object, an embodiment of the present specification provides a server, including: a memory for storing computer instructions; a processor for executing the computer instructions to perform the steps of: receiving a data write request; the data writing request corresponds to service data and a data identifier; when the data volume of the service data is larger than a preset value, segmenting the service data according to the preset value to obtain a plurality of subdata; the data volume of each subdata is smaller than or equal to the preset value; determining a plurality of subdata identifications corresponding to the plurality of subdata according to the data identifications; sending the plurality of subdata and the plurality of subdata identifications to a coordination server; to facilitate the coordinating server to perform a write operation based on the plurality of child data and the plurality of child data identifications.
To achieve the above object, an embodiment of the present specification provides a data reading method, including: receiving a data reading request; the data reading request corresponds to a first data identifier; sending the first data identification to a coordination server; receiving first service data which are fed back by the coordination server and read according to the first data identification; the first service data comprises compression flag bits; when the value of the compression flag bit is a numerical value representing compression, decompressing the first service data to obtain decompressed service data; and feeding back the decompressed service data.
To achieve the above object, an embodiment of the present specification provides a data reading apparatus, including: a first receiving unit for receiving a data read request; the data reading request corresponds to a first data identifier; a sending unit, configured to send the first data identifier to a coordination server; a second receiving unit, configured to receive the first service data read according to the first data identifier and fed back by the coordination server; the first service data comprises compression flag bits; a decompression unit, configured to decompress the first service data when the value of the compression flag bit is a value indicating compression, to obtain decompressed service data; and the feedback unit is used for feeding back the decompressed service data.
To achieve the above object, an embodiment of the present specification provides a server, including: a memory for storing computer instructions; a processor for executing the computer instructions to perform the steps of: receiving a data reading request; the data reading request corresponds to a first data identifier; sending the first data identification to a coordination server; receiving first service data which are fed back by the coordination server and read according to the first data identification; the first service data comprises compression flag bits; when the value of the compression flag bit is a numerical value representing compression, decompressing the first service data to obtain decompressed service data; and feeding back the decompressed service data.
To achieve the above object, an embodiment of the present specification provides a data reading method, including: receiving a data reading request; the data reading request corresponds to a first data identifier; sending the first data identification to a coordination server; receiving first service data which are fed back by the coordination server and read according to the first data identification; the first service data comprises compression flag bits; and when the value of the compression mark bit is a numerical value representing the uncompressed state, feeding back the first service data.
To achieve the above object, an embodiment of the present specification provides a data reading apparatus, including: a first receiving unit for receiving a data read request; the data reading request corresponds to a first data identifier; a sending unit, configured to send the first data identifier to a coordination server; a second receiving unit, configured to receive the first service data read according to the first data identifier and fed back by the coordination server; the first service data comprises compression flag bits; and the feedback unit is used for feeding back the first service data when the value of the compression mark bit is a numerical value representing the uncompressed state.
To achieve the above object, an embodiment of the present specification provides a server, including: a memory for storing computer instructions; a processor for executing the computer instructions to perform the steps of: receiving a data reading request; the data reading request corresponds to a first data identifier; sending the first data identification to a coordination server; receiving first service data which are fed back by the coordination server and read according to the first data identification; the first service data comprises compression flag bits; and when the value of the compression mark bit is a numerical value representing the uncompressed state, feeding back the first service data.
To achieve the above object, an embodiment of the present specification provides a data reading method, including: receiving a data reading request; the data reading request corresponds to a first data identifier; sending the first data identification to a coordination server; receiving first service data which are fed back by the coordination server and read according to the first data identification; the first service data comprises a segmentation marker bit; and when the value of the segmentation marking bit is a numerical value representing that the segmentation marking bit is not segmented, feeding back the first service data.
To achieve the above object, an embodiment of the present specification provides a data reading apparatus, including: a first receiving unit for receiving a data read request; the data reading request corresponds to a first data identifier; a sending unit, configured to send the first data identifier to a coordination server; a second receiving unit, configured to receive the first service data read according to the first data identifier and fed back by the coordination server; the first service data comprises a segmentation marker bit; and the feedback unit is used for feeding back the first service data when the value of the segmentation marking bit is a numerical value which represents that the segmentation marking bit is not segmented.
To achieve the above object, an embodiment of the present specification provides a server, including: a memory for storing computer instructions; a processor for executing the computer instructions to perform the steps of: receiving a data reading request; the data reading request corresponds to a first data identifier; sending the first data identification to a coordination server; receiving first service data which are fed back by the coordination server and read according to the first data identification; the first service data comprises a segmentation marker bit; and when the value of the segmentation marking bit is a numerical value representing that the segmentation marking bit is not segmented, feeding back the first service data.
To achieve the above object, an embodiment of the present specification provides a data reading method, including: receiving a data reading request; the data reading request corresponds to a first data identifier; sending the first data identification to a coordination server; receiving first service data which are fed back by the coordination server and read according to the first data identification; the first service data comprises a segmentation marker bit; when the value of the segmentation marking bit is other than the value representing the non-segmentation, generating at least one second data identifier according to the value of the segmentation marking bit and the first data identifier; sending the at least one second data identifier to a coordination server; receiving at least one second service data which is fed back by the coordination server and read according to the at least one second data identifier; merging the first service data and the at least one second service data to obtain merged data; and feeding back the combined data.
To achieve the above object, an embodiment of the present specification provides a data reading apparatus, including: a first receiving unit for receiving a data read request; the data reading request corresponds to a first data identifier; a first sending unit, configured to send the first data identifier to a coordination server; a second receiving unit, configured to receive the first service data read according to the first data identifier and fed back by the coordination server; the first service data comprises a segmentation marker bit; a generating unit, configured to generate at least one second data identifier according to the value of the division flag bit and the first data identifier when the value of the division flag bit is a value other than a value indicating that the division is not performed; a second sending unit, configured to send the at least one second data identifier to the coordination server; a third receiving unit, configured to receive at least one second service data read according to the at least one second data identifier and fed back by the coordination server; a merging unit, configured to merge the first service data and the at least one second service data to obtain merged data; and the feedback unit is used for feeding back the combined data.
To achieve the above object, an embodiment of the present specification provides a server, including: a memory for storing computer instructions; a processor for executing the computer instructions to perform the steps of: receiving a data reading request; the data reading request corresponds to a first data identifier; sending the first data identification to a coordination server; receiving first service data which are fed back by the coordination server and read according to the first data identification; the first service data comprises a segmentation marker bit; when the value of the segmentation marking bit is other than the value representing the non-segmentation, generating at least one second data identifier according to the value of the segmentation marking bit and the first data identifier; sending the at least one second data identifier to a coordination server; receiving at least one second service data which is fed back by the coordination server and read according to the at least one second data identifier; merging the first service data and the at least one second service data to obtain merged data; and feeding back the combined data.
As can be seen from the technical solutions provided in the embodiments of the present specification, by performing compression processing or segmentation processing on data, the data amount of reading and writing data for a single cache server can be reduced; therefore, the load of a single cache server is reduced, and the stability of the distributed cache server cluster is improved.
Drawings
In order to more clearly illustrate the embodiments of the present specification or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only some embodiments described in the present specification, and for those skilled in the art, other drawings can be obtained according to the drawings without any creative effort.
FIG. 1 is a block diagram of a data processing system according to an embodiment of the present disclosure;
FIG. 2 is a flow chart of a data writing method according to an embodiment of the present disclosure;
FIG. 3 is a flow chart of a data reading method according to an embodiment of the present disclosure;
FIG. 4 is a diagram illustrating data partitioning according to an embodiment of the present disclosure;
FIG. 5 is a diagram illustrating data merging according to an embodiment of the present disclosure;
FIG. 6 is a flow chart of a data writing method according to an embodiment of the present disclosure;
FIG. 7 is a flow chart of a data writing method according to an embodiment of the present disclosure;
FIG. 8 is a flow chart of a data reading method according to an embodiment of the present disclosure;
FIG. 9 is a flow chart of a data reading method according to an embodiment of the present disclosure;
FIG. 10 is a flow chart of a data reading method according to an embodiment of the present disclosure;
FIG. 11 is a flow chart illustrating a data reading method according to an embodiment of the present disclosure;
FIG. 12 is a functional block diagram of a data writing apparatus according to an embodiment of the present disclosure;
FIG. 13 is a functional block diagram of a data writing apparatus according to an embodiment of the present disclosure;
FIG. 14 is a functional block diagram of a data reading apparatus according to an embodiment of the present disclosure;
FIG. 15 is a functional block diagram of a data reading apparatus according to an embodiment of the present disclosure;
FIG. 16 is a functional block diagram of a data reading apparatus according to an embodiment of the present disclosure;
FIG. 17 is a functional block diagram of a data reading apparatus according to an embodiment of the present disclosure;
fig. 18 is a functional structure diagram of a server according to an embodiment of the present disclosure.
Detailed Description
The technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the drawings in the embodiments of the present disclosure, and it is obvious that the described embodiments are only a part of the embodiments of the present disclosure, and not all of the embodiments. All other embodiments obtained by a person skilled in the art based on the embodiments in the present specification without any inventive step should fall within the scope of protection of the present specification.
Please refer to fig. 1, fig. 2, fig. 3, fig. 4 and fig. 5. The embodiment of the specification provides a data processing system. The data processing system may include clients, business servers, a cluster of distributed cache servers, and database servers.
In this embodiment, the client may be implemented by hardware, software, or a combination of hardware and software. The client may be a pc (personal computer), a server, an industrial personal computer (industrial control computer), a mobile smart phone, a tablet electronic device, a portable computer (e.g., a laptop computer, etc.), a Personal Digital Assistant (PDA), a desktop computer, or an electronic device such as an intelligent wearable device. Or the client can also be an application program such as a browser, a microblog client, or a jingdong client. The client may communicate with the service server.
In this embodiment, the service server may be one server, or may be a server cluster including a plurality of servers. The traffic server may communicate with the coordinating server in the cluster of distributed cache servers and the database server, respectively.
In this embodiment, the distributed cache server cluster may be a distributed server cluster for providing a cache service, and may play a role in accessing hotspot data and reducing access pressure of a database server. The distributed cache server cluster may include a coordinating server and a plurality of cache servers. The coordination server is used for managing the plurality of cache servers. The plurality of cache servers may be respectively configured to cache the service data. The distributed cache server cluster can be realized based on architecture technologies such as Memcached or JBOssCache.
In this embodiment, the database server may be one server, or may be a server cluster including a plurality of servers. The database server may be used to store business data. The database server may serve as a data source of the distributed cache server cluster, so that the distributed cache server cluster may cache the service data in the database server. Synchronization rules may be generally utilized to maintain consistency between the traffic data cached by the distributed cache server cluster and the traffic data stored by the database server.
After receiving a data write request from the client, the service server may write service data and a data identifier in the distributed cache server cluster. After receiving a data reading request from the client, the service server may preferentially read service data from the distributed cache server cluster. When the service data can be read from the distributed cache server cluster, the service server may feed back the read service data to the client. When the service data cannot be read from the distributed cache server cluster, the service server can read the service data from the database server; the read service data may be fed back to the client.
In this embodiment, the client may send a data write request to the service server. The business server can receive the data writing request; business data and data identification corresponding to the data writing request can be acquired; the data volume of the service data may be compared with a preset value.
Specifically, the service data may be, for example, account balance, configuration data of an application program, or the like. The data identification may be used to identify the service data. The data identification and the service data can be understood here as a Key-Value pair (Key-Value). The preset value can be determined according to a data volume threshold value of single reading and writing in the distributed cache server cluster. The threshold values of the data amount of different distributed cache server clusters may be the same or different, and thus the preset values may be the same or different. The preset value may be less than or equal to the data amount threshold. For example, the threshold of the data amount of the distributed cache server cluster implemented based on the Memcached architecture technology may be 1M (Megabyte). Then, the preset value may be 1M, or 0.8M, etc.
Specifically, the data write request may carry the service data and the data identifier. The service server may obtain the service data and the data identifier. Or, the data write request may also carry a plurality of field identifications and a plurality of data fields corresponding to the plurality of field identifications. The service server can construct the data identifier according to the field identifiers; the service data may be constructed from the plurality of data fields. For example, the service server may merge the plurality of field identifiers to obtain the data identifier.
In an implementation manner of this embodiment, when the data volume of the service data is less than or equal to a preset value, the service server considers that compression processing and segmentation processing are not required to be performed on the service data; compression flag bits may be added to the service data; the value of the compression flag bit may be set to represent an uncompressed value; a segmentation marker bit may be added to the traffic data; the value of the segmentation marker bit may be set to represent an undivided value; and further, the service data and the data identifier may be sent to the coordination server. The coordination server may receive the service data and the data identifier; a target cache server can be selected from the plurality of cache servers according to the data identification; the traffic data and the data identification may be sent to the target cache server. The target cache server can receive the service data and the data identifier; the service data and the data identifier can be correspondingly stored; a write success message may be sent to the coordinating server. The coordination server may receive a write success message; a message of successful writing may be sent to the service server. The service server can receive a message of successful writing; a message may be sent to the client that the write was successful.
Specifically, the value of the compression flag bit may be used to indicate whether the service data is compressed, and specifically may include a value indicating uncompressed data and a value indicating compressed data. As an example, the value representing the uncompressed may be 0; the value representing the compression may be 1. The value of the segmentation marker bit may include a specific value and a value determined according to the number of segments of the service data. The specific value may be used to indicate that the traffic data is not fragmented. As an example, the specific value may be 0; when the number of the service data to be divided is M, the value of the division flag bit may be M-1.
Specifically, the coordination server may select a target cache server from the plurality of cache servers by using a preset server selection algorithm according to the data identifier. For example, the distributed cache server cluster may include N cache servers. Each cache server may have a server identification. Here, the server identifier may be used to identify the cache server, and may be, for example, an IP address, a MAC address, or a number of the cache server. The server identities of the N cache servers can be A0, A1, A2, …, A (N-1), respectively. Then, the coordinating server may calculate a hash value of the data identification; the target cache server may be selected based on a remainder of the hash value divided by N. Specifically, for example, when the remainder is 0, the coordinating server may select a cache server with a server identifier of a0 as a target cache server; when the remainder is 1, the coordinating server may select a cache server with a server identifier of a1 as a target cache server; by analogy, when the remainder is N-1, the coordination server may select a cache server with a server identifier A (N-1) as a target cache server.
In another implementation manner of this embodiment, when the data volume of the service data is greater than a preset value, the service server considers that the compression processing needs to be performed on the service data; any compression algorithm can be adopted to compress the service data to obtain compressed data; the data amount of the compressed data may be compared with the preset value. The compression algorithm may be, for example, a Zlib compression algorithm, an LZ4 compression algorithm, a Snappy compression algorithm, or a Huffman compression algorithm, among others.
In this embodiment, when the data amount of the compressed data is less than or equal to the preset value, the service server considers that the service data does not need to be segmented; compression flag bits may be added to the compressed data; the value of the compression flag bit may be set to represent a compressed value; a split flag bit may be added to the compressed data; the value of the segmentation marker bit may be set to represent an undivided value; the compressed data and the data identification may then be sent to the coordination server. The coordination server may receive the compressed data and the data identification; a target cache server can be selected from the plurality of cache servers according to the data identification; the compressed data and the data identification may be sent to the target cache server. The target cache server may receive the compressed data and the data identification; the compressed data and the data identifier can be correspondingly stored; a write success message may be sent to the coordinating server. The coordination server may receive a write success message; a message of successful writing may be sent to the service server. The service server can receive a message of successful writing; a message may be sent to the client that the write was successful.
In this embodiment, when the data volume of the compressed data is greater than the preset value, the service server considers that the service data needs to be segmented; the compressed data may be segmented according to the preset value to obtain a plurality of subdata. Specifically, the data amount of each sub data may be less than or equal to the preset value. The data amount of each sub data may be the same or different. The service server may perform segmentation processing on the compressed data by any method. For example, the service server may be based on a formula
Figure BDA0001785122550000081
And carrying out segmentation processing on the compressed data. M represents the number of partitions (i.e., the number of the plurality of sub data); q represents the data amount of the compressed data; t represents the preset value; []Representing the ceiling operator. Of course, the above formula is only an example, and actually, the service server may also use other formulas or methods to perform the segmentation processing on the compressed data.
The plurality of sub-data may be sequential. And merging the plurality of subdata according to the sequence to obtain the compressed data. Thus, the service server can add a compression flag bit in the first subdata; the value of the compression flag bit may be set to represent a compressed value; a partition flag bit may be added to the first sub data; the value of the split flag bit may be set according to the number of the plurality of sub data. For example, the number of the plurality of sub data may be M. Then, the service server may set the value of the split flag bit to M-1.
The service server may determine, according to the data identifier, a plurality of sub-data identifiers corresponding to the plurality of sub-data using a data identifier determination rule. The sub-data identifiers corresponding to different sub-data may be different. As an example, the data identification may be a key. The number of the plurality of sub data may be M. Then, using the data identity determination rule may result in: the subdata identifier of the first subdata is key, the subdata identifier of the second subdata is key-2, and so on, the subdata identifier of the Mth subdata is key-M.
The service server may send the plurality of sub data and the plurality of sub data identifiers to the coordination server. The coordinating server may receive the plurality of child data and the plurality of child data identifications. For each subdata and the subdata identifier corresponding to the subdata, the coordination server can select a target cache server from the plurality of cache servers according to the subdata identifier; the sub data and the sub data identifier may be sent to the target cache server. The target cache server may receive the subdata and the subdata identifier; the subdata and the subdata identifier can be correspondingly stored; a message that the writing of the sub data is successful may be sent to the coordinator server. After obtaining the message that the writing of the plurality of sub data is successful, the coordination server may send the message that the writing is successful to the service server. The service server can receive a message of successful writing; a message may be sent to the client that the write was successful.
In this embodiment, the client may send a data reading request to the service server. The service server may receive the data reading request; a first data identifier corresponding to the data reading request can be acquired; the first data identification may be sent to the coordinating server. The coordinating server may receive the first data identification; a target cache server can be selected from the plurality of cache servers according to the first data identification; the first data identification may be sent to the target cache server. The target cache server may receive the first data identification; the service data identified by the first data identification can be read locally as first service data; the first traffic data may be sent to the coordination server. The coordination server may receive the first traffic data; the first traffic data may be sent to the traffic server. The service server may receive the first service data.
Specifically, the first service data may include compression flag bits and segmentation flag bits.
Specifically, the data read request may carry the first data identifier. The service server may obtain the first data identifier. Alternatively, the data read request may also carry a plurality of field identifications. The service server may construct the first data identifier according to the plurality of field identifiers. For example, the service server may merge the plurality of field identifiers to obtain the first data identifier.
In an embodiment of this embodiment, the value of the compression flag bit may be a value representing an uncompressed value. The service server considers that the first service data is not compressed and is not sub-data generated by segmentation processing; the first traffic data may be sent to the client. The client may receive the first traffic data. Specifically, the service server may directly send the first service data to the client. Or, the service server may further send the first service data with the compression flag bit and the segmentation flag bit cleared to the client.
In another implementation of this embodiment, the value of the compression flag bit may be a value representing compression. The segmentation marker bit may take on a value that represents an undivided value. The service server considers that the first service data is compressed but not sub-data generated by segmentation processing; the first service data can be decompressed to obtain decompressed service data; the decompressed traffic data may be sent to the client. The client may receive the decompressed traffic data. Specifically, the service server may perform decompression processing on the first service data by using a decompression algorithm matched with the aforementioned compression algorithm. The service server may directly decompress the first service data. Or, the service server may further decompress the first service data from which the compression flag bit and the fragmentation flag bit are cleared.
In another implementation of this embodiment, the value of the compression flag bit may be a value representing compression. The segmentation marker bit may take on values other than values representing an undivided segment. Thus, the service server considers that the first service data is compressed and is sub-data generated by segmentation processing; at least one second data identity may be generated from the first data identity using the aforementioned data identity determination rule. The number of generated second data identifications may be associated with a value of the split flag bit. As an example, the number of the generated second data identifications may be the same as the value of the segmentation flag bit. As an example, the first data identification may be a key. The value of the segmentation marker bit can be M-1. Then M-1 second data identifications may be derived using the aforementioned data identification determination rule. The M-1 second data identifications can be key-2, key-3, … and key-M respectively.
The service server may send the at least one second data identity to the coordination server. The coordinating server may receive the at least one second data identity. For each second data identifier, the coordination server may select a target cache server from the plurality of cache servers according to the second data identifier; the second data identification may be sent to the target cache server. The target cache server may receive the second data identifier; the service data identified by the second data identification can be read locally as second service data; the second traffic data may be sent to the coordination server. The coordination server may receive the second service data; the second service data may be transmitted to the service server. The service server may receive the second service data. The service server may thus obtain at least one second service data corresponding to the at least one second data identifier.
The service server may perform merging processing on the first service data and the at least one second service data to obtain merged data; decompressing the merged data to obtain decompressed service data; the decompressed traffic data may be sent to the client. The client may receive the decompressed traffic data. Specifically, the service server may directly perform merging processing on the first service data and the at least one second service data. Or, the service server may further perform a merging process on the first service data and the at least one second service data from which the compression flag bit and the segmentation flag bit are cleared.
Please refer to fig. 6. Based on the foregoing data processing system embodiment, an embodiment of this specification further provides a data writing method. The data writing method takes the service server as an execution subject and can comprise the following steps.
Step S10: a data write request is received.
The data writing request corresponds to service data and a data identifier.
Step S12: and when the data volume of the service data is larger than a preset value, compressing the service data to obtain compressed data.
Step S14: and sending the compressed data and the data identification to a coordination server.
The service server may send the compressed data and the data identifier to the coordination server. The coordination server may receive the compressed data and the data identification; a write operation may be performed based on the compressed data and the data identification.
In an implementation manner of this embodiment, the service server may add a compression flag bit in the compressed data; the value of the compression flag bit may be set to represent a compressed value; a split flag bit may be added to the compressed data; the value of the segmentation marker bit may be set to represent an undivided value; the compressed data and the data identification may then be sent to a coordination server.
In an implementation manner of this embodiment, the service server may compare the data volume of the compressed data with the preset value. In this embodiment, when the data amount of the compressed data is less than or equal to the preset value, the service server may send the compressed data and the data identifier to the coordination server. In this embodiment, when the data amount of the compressed data is greater than the preset value, the service server may perform segmentation processing on the compressed data according to the preset value to obtain a plurality of sub data; determining a plurality of subdata identifications corresponding to the plurality of subdata according to the data identifications; the plurality of child data and the plurality of child data identifications may be transmitted to the coordinating server. Wherein, the data volume of each subdata can be less than or equal to the preset value; the data amount of each sub data may be the same or different. The coordination server may receive the plurality of subdata and the plurality of subdata identifications; a write operation may be performed based on the plurality of child data and the plurality of child data identifications. Further, the plurality of sub-data may be sequential. Thus, the service server can add a compression flag bit in the first subdata; the value of the compression flag bit may be set to represent a compressed value; a partition flag bit may be added to the first sub data; the value of the segmentation flag bit can be set according to the number of the plurality of subdata; and further, the plurality of sub data and the plurality of sub data identifiers may be sent to the coordination server.
In an implementation manner of this embodiment, when the data volume of the service data is less than or equal to the preset value, the service server may send the service data and the data identifier to a coordination server. The coordination server may receive the service data and the data identifier; a write operation may be performed based on the service data and the data identification. Further, the service server may also add a compression flag bit in the service data; the value of the compression flag bit may be set to represent an uncompressed value; a segmentation marker bit may be added to the traffic data; the value of the segmentation marker bit may be set to represent an undivided value; and then the service data and the data identification can be sent to a coordination server.
In this embodiment, the service server may receive a data write request; when the data volume of the service data is larger than a preset value, compressing the service data to obtain compressed data; the compressed data and the data identification may be sent to a coordination server; such that the coordination server performs a write operation based on the compressed data and the data identification. Therefore, by compressing the service data, the data volume of data written into a single cache server can be reduced; therefore, the load of a single cache server is reduced, and the stability of the distributed cache server cluster is improved.
Please refer to fig. 7. Based on the foregoing data processing system embodiment, another data writing method is also provided in the embodiments of the present specification. The data writing method takes the service server as an execution subject and can comprise the following steps.
Step S20: a data write request is received.
The data writing request corresponds to service data and a data identifier.
Step S22: and when the data volume of the service data is larger than a preset value, segmenting the service data according to the preset value to obtain a plurality of subdata.
Step S24: and determining a plurality of subdata identifications corresponding to the plurality of subdata according to the data identifications.
Step S26: and sending the plurality of subdata and the plurality of subdata identifications to a coordination server.
The service server may send the plurality of sub data and the plurality of sub data identifiers to a coordination server. The coordination server may receive the plurality of subdata and the plurality of subdata identifications; a write operation may be performed based on the plurality of child data and the plurality of child data identifications.
In an implementation manner of this embodiment, the plurality of sub-data may have a sequential order. Thus, the service server can add a compression flag bit in the first subdata; the value of the compression flag bit may be set to represent an uncompressed value; a partition flag bit may be added to the first sub data; the value of the segmentation flag bit can be set according to the number of the plurality of subdata; and further, the plurality of sub data and the plurality of sub data identifiers may be sent to the coordination server.
In an implementation manner of this embodiment, when the data volume of the service data is less than or equal to the preset value, the service server may send the service data and the data identifier to a coordination server. The coordination server may receive the service data and the data identifier; a write operation may be performed based on the service data and the data identification. Further, the service server may also add a compression flag bit in the service data; the value of the compression flag bit may be set to represent an uncompressed value; a segmentation marker bit may be added to the traffic data; the value of the segmentation marker bit may be set to represent an undivided value; and then the service data and the data identification can be sent to a coordination server. The coordination server may receive the service data and the data identifier; a write operation may be performed based on the service data and the data identification.
In this embodiment, the service server may receive a data write request; when the data volume of the service data is larger than a preset value, the service data is segmented according to the preset value to obtain a plurality of subdata; determining a plurality of subdata identifications corresponding to the plurality of subdata according to the data identifications; the plurality of subdata and the plurality of subdata identifications may be sent to a coordination server; to facilitate the coordinating server to perform a write operation based on the plurality of child data and the plurality of child data identifications. Thus, the service data is divided; the divided subdata can be dispersedly stored in the plurality of cache servers; the data volume of data written into a single cache server can be reduced; therefore, the load of a single cache server is reduced, and the stability of the distributed cache server cluster is improved.
Please refer to fig. 8. Based on the foregoing data processing system embodiment, an embodiment of this specification further provides a data reading method. The data reading method takes the service server as an execution subject and can comprise the following steps.
Step S30: a data read request is received.
The data reading request corresponds to a first data identification.
Step S32: and sending the first data identification to a coordination server.
Step S34: and receiving the first service data which is fed back by the coordination server and read according to the first data identifier.
The first traffic data may include compression flag bits.
Step S36: and when the value of the compression flag bit is a numerical value representing compression, decompressing the first service data to obtain decompressed service data.
Step S38: and feeding back the decompressed service data.
In an implementation manner of this embodiment, when the value of the compression flag bit is a value indicating that the compression flag bit is not compressed, the service server may feed back the first service data.
In an implementation manner of this embodiment, the first service data may further include a partition flag bit. When the value of the segmentation flag bit indicates an undivided numerical value and the value of the compression flag bit indicates a compressed numerical value, the service server may decompress the first service data to obtain decompressed service data.
In an implementation manner of this embodiment, the first service data may further include a partition flag bit. When the value of the segmentation marker bit is a value other than a value representing non-segmentation and the value of the compression marker bit is a value representing compression, the service server may generate at least one second data identifier according to the value of the segmentation marker bit and the first data identifier; the at least one second data identity may be sent to a coordination server; at least one second service data read according to the at least one second data identifier and fed back by the coordination server can be received; the first service data and the at least one second service data may be merged to obtain merged data; the merged data may be decompressed to obtain decompressed service data.
In this embodiment, the service server may receive a data reading request; the first data identification may be sent to a coordinating server; first service data which is fed back by a coordination server and read according to the first data identification can be received, wherein the first service data comprises a compression mark bit; when the value of the compression flag bit is a value representing compression, decompressing the first service data to obtain decompressed service data; the decompressed traffic data may be fed back. This can reduce the amount of data read from a single cache server; therefore, the load of a single cache server is reduced, and the stability of the distributed cache server cluster is improved.
Please refer to fig. 9. Based on the foregoing data processing system embodiment, another data reading method is also provided in the embodiments of the present specification. The data reading method takes the service server as an execution subject and can comprise the following steps.
Step S40: a data read request is received.
The data reading request corresponds to a first data identification.
Step S42: and sending the first data identification to a coordination server.
Step S44: and receiving the first service data which is fed back by the coordination server and read according to the first data identifier.
The first traffic data may include compression flag bits.
Step S46: and when the value of the compression mark bit is a numerical value representing the uncompressed state, feeding back the first service data.
In an implementation manner of this embodiment, the first service data may further include a partition flag bit. When the value of the segmentation flag bit indicates an undivided numerical value and the value of the compression flag bit indicates a compressed numerical value, the service server may feed back the first service data.
In an implementation manner of this embodiment, the first service data may further include a partition flag bit. When the value of the segmentation marker bit is a value other than a value representing non-segmentation and the value of the compression marker bit is a value representing compression, the service server may generate at least one second data identifier according to the value of the segmentation marker bit and the first data identifier; the at least one second data identity may be sent to a coordination server; at least one second service data read according to the at least one second data identifier and fed back by the coordination server can be received; the first service data and the at least one second service data may be merged to obtain merged data; the merged data may be fed back.
In this embodiment, the service server may receive a data reading request; the first data identification may be sent to a coordinating server; first service data which is fed back by a coordination server and read according to the first data identification can be received, wherein the first service data comprises a compression mark bit; the first service data may be fed back when the value of the compression flag bit is a value indicating that the compression is not performed. This can reduce the amount of data read from a single cache server; therefore, the load of a single cache server is reduced, and the stability of the distributed cache server cluster is improved.
Please refer to fig. 10. Based on the foregoing data processing system embodiment, another data reading method is also provided in the embodiments of the present specification. The data reading method takes the service server as an execution subject and can comprise the following steps.
Step S50: a data read request is received.
The data reading request corresponds to a first data identification.
Step S52: sending the first data identification to a coordination server;
step S54: and receiving the first service data which is fed back by the coordination server and read according to the first data identifier.
The first traffic data includes a fragmentation flag bit.
Step S56: and when the value of the segmentation marking bit is a numerical value representing that the segmentation marking bit is not segmented, feeding back the first service data.
In this embodiment, the service server may receive a data reading request; the first data identification may be sent to a coordinating server; first service data which is fed back by a coordination server and read according to the first data identification can be received, wherein the first service data comprises a segmentation mark bit; the first service data may be fed back when the segmentation flag bit takes a value indicating that the segmentation flag bit is not segmented. This can reduce the amount of data read from a single cache server; therefore, the load of a single cache server is reduced, and the stability of the distributed cache server cluster is improved.
Please refer to fig. 11. Based on the foregoing data processing system embodiment, another data reading method is also provided in the embodiments of the present specification. The data reading method takes the service server as an execution subject and can comprise the following steps.
Step S60: a data read request is received.
The data reading request corresponds to a first data identification.
Step S62: sending the first data identification to a coordination server;
step S64: and receiving the first service data which is fed back by the coordination server and read according to the first data identifier.
The first traffic data includes a fragmentation flag bit.
Step S66: and when the value of the segmentation marking bit is other than the value representing the non-segmentation, generating at least one second data identifier according to the value of the segmentation marking bit and the first data identifier.
Step S68: and sending the at least one second data identification to a coordination server.
Step S70: and receiving at least one second service datum which is fed back by the coordination server and read according to the at least one second data identifier.
Step S72: and merging the first service data and the at least one second service data to obtain merged data.
Step S74: and feeding back the combined data.
In this embodiment, the service server may receive a data reading request; the first data identification may be sent to a coordinating server; first service data which is fed back by a coordination server and read according to the first data identification can be received, wherein the first service data comprises a segmentation mark bit; when the value of the segmentation marker bit is other than the value representing the non-segmentation, at least one second data identifier is generated according to the value of the segmentation marker bit and the first data identifier; the at least one second data identity may be sent to a coordination server; at least one second service data read according to the at least one second data identifier and fed back by the coordination server can be received; the first service data and the at least one second service data may be merged to obtain merged data; the merged data may be fed back. This can reduce the amount of data read from a single cache server; therefore, the load of a single cache server is reduced, and the stability of the distributed cache server cluster is improved.
Please refer to fig. 12. Based on the data writing method embodiment corresponding to fig. 6, an embodiment of the present specification further provides a data writing device. The data writing apparatus may include the following units.
A receiving unit 80 for receiving a data write request; the data writing request corresponds to service data and a data identifier;
a compressing unit 82, configured to compress the service data to obtain compressed data when the data volume of the service data is greater than a preset value;
a sending unit 84, configured to send the compressed data and the data identifier to a coordination server; such that the coordination server performs a write operation based on the compressed data and the data identification.
Please refer to fig. 18. Based on the data writing method embodiment corresponding to fig. 6, an embodiment of the present specification further provides a server. The server may include a memory and a processor.
In this embodiment, the memory may be implemented in any suitable manner. For example, the memory may be a read-only memory, a mechanical hard disk, a solid state disk, a U disk, or the like. The memory may be used to store computer instructions.
In this embodiment, the processor may be implemented in any suitable manner. For example, the processor may take the form of, for example, a microprocessor or processor and a computer-readable medium that stores computer-readable program code (e.g., software or firmware) executable by the (micro) processor, logic gates, switches, an Application Specific Integrated Circuit (ASIC), a programmable logic controller, an embedded microcontroller, and so forth. The processor may execute the computer instructions to perform the steps of: receiving a data write request; the data writing request corresponds to service data and a data identifier; when the data volume of the service data is larger than a preset value, compressing the service data to obtain compressed data; sending the compressed data and the data identifier to a coordination server; such that the coordination server performs a write operation based on the compressed data and the data identification.
Please refer to fig. 13. Based on the data writing method embodiment corresponding to fig. 7, the present specification embodiment further provides a data writing device. The data writing apparatus may include the following units.
A receiving unit 90 for receiving a data write request; the data writing request corresponds to service data and a data identifier;
a dividing unit 92, configured to, when the data amount of the service data is greater than a preset value, divide the service data according to the preset value to obtain a plurality of sub data; the data volume of each subdata is smaller than or equal to the preset value;
a determining unit 94, configured to determine, according to the data identifier, a plurality of sub-data identifiers corresponding to the plurality of sub-data;
a sending unit 96, configured to send the multiple pieces of sub data and the multiple pieces of sub data identifiers to a coordination server; to facilitate the coordinating server to perform a write operation based on the plurality of child data and the plurality of child data identifications.
Please refer to fig. 18. Based on the data writing method embodiment corresponding to fig. 7, an embodiment of the present specification further provides a server. The server may include a memory and a processor.
In this embodiment, the memory may be implemented in any suitable manner. For example, the memory may be a read-only memory, a mechanical hard disk, a solid state disk, a U disk, or the like. The memory may be used to store computer instructions.
In this embodiment, the processor may be implemented in any suitable manner. For example, the processor may take the form of, for example, a microprocessor or processor and a computer-readable medium that stores computer-readable program code (e.g., software or firmware) executable by the (micro) processor, logic gates, switches, an Application Specific Integrated Circuit (ASIC), a programmable logic controller, an embedded microcontroller, and so forth. The processor may execute the computer instructions to perform the steps of: receiving a data write request; the data writing request corresponds to service data and a data identifier; when the data volume of the service data is larger than a preset value, segmenting the service data according to the preset value to obtain a plurality of subdata; the data volume of each subdata is smaller than or equal to the preset value; determining a plurality of subdata identifications corresponding to the plurality of subdata according to the data identifications; sending the plurality of subdata and the plurality of subdata identifications to a coordination server; to facilitate the coordinating server to perform a write operation based on the plurality of child data and the plurality of child data identifications.
Please refer to fig. 14. Based on the data reading method embodiment corresponding to fig. 8, the embodiment of this specification further provides a data reading apparatus. The data reading apparatus may include the following units.
A first receiving unit 100 for receiving a data read request; the data reading request corresponds to a first data identifier;
a sending unit, configured to send the first data identifier to a coordination server;
a second receiving unit 102, configured to receive the first service data read according to the first data identifier and fed back by the coordination server; the first service data comprises compression flag bits;
a decompression unit 104, configured to decompress the first service data when the value of the compression flag bit is a value indicating compression, to obtain decompressed service data;
a feedback unit 106, configured to feedback the decompressed service data.
Please refer to fig. 18. Based on the data reading method embodiment corresponding to fig. 8, an embodiment of the present specification further provides a server. The server may include a memory and a processor.
In this embodiment, the memory may be implemented in any suitable manner. For example, the memory may be a read-only memory, a mechanical hard disk, a solid state disk, a U disk, or the like. The memory may be used to store computer instructions.
In this embodiment, the processor may be implemented in any suitable manner. For example, the processor may take the form of, for example, a microprocessor or processor and a computer-readable medium that stores computer-readable program code (e.g., software or firmware) executable by the (micro) processor, logic gates, switches, an Application Specific Integrated Circuit (ASIC), a programmable logic controller, an embedded microcontroller, and so forth. The processor may execute the computer instructions to perform the steps of: receiving a data reading request; the data reading request corresponds to a first data identifier; sending the first data identification to a coordination server; receiving first service data which are fed back by the coordination server and read according to the first data identification; the first service data comprises compression flag bits; when the value of the compression flag bit is a numerical value representing compression, decompressing the first service data to obtain decompressed service data; and feeding back the decompressed service data.
Please refer to fig. 15. Based on the data reading method embodiment corresponding to fig. 9, the embodiment of this specification further provides a data reading apparatus. The data reading apparatus may include the following units.
A first receiving unit 110, configured to receive a data reading request; the data reading request corresponds to a first data identifier;
a sending unit 112, configured to send the first data identifier to a coordination server;
a second receiving unit 114, configured to receive the first service data read according to the first data identifier and fed back by the coordination server; the first service data comprises compression flag bits;
a feedback unit 116, configured to feed back the first service data when the value of the compression flag bit is an uncompressed value.
Please refer to fig. 18. Based on the data reading method embodiment corresponding to fig. 9, an embodiment of the present specification further provides a server. The server may include a memory and a processor.
In this embodiment, the memory may be implemented in any suitable manner. For example, the memory may be a read-only memory, a mechanical hard disk, a solid state disk, a U disk, or the like. The memory may be used to store computer instructions.
In this embodiment, the processor may be implemented in any suitable manner. For example, the processor may take the form of, for example, a microprocessor or processor and a computer-readable medium that stores computer-readable program code (e.g., software or firmware) executable by the (micro) processor, logic gates, switches, an Application Specific Integrated Circuit (ASIC), a programmable logic controller, an embedded microcontroller, and so forth. The processor may execute the computer instructions to perform the steps of: receiving a data reading request; the data reading request corresponds to a first data identifier; sending the first data identification to a coordination server; receiving first service data which are fed back by the coordination server and read according to the first data identification; the first service data comprises compression flag bits; and when the value of the compression mark bit is a numerical value representing the uncompressed state, feeding back the first service data.
Please refer to fig. 16. Based on the data reading method embodiment corresponding to fig. 10, the embodiment of this specification further provides a data reading apparatus. The data reading apparatus may include the following units.
A first receiving unit 120, configured to receive a data reading request; the data reading request corresponds to a first data identifier;
a sending unit 122, configured to send the first data identifier to a coordination server;
a second receiving unit 124, configured to receive the first service data read according to the first data identifier and fed back by the coordination server; the first service data comprises a segmentation marker bit;
a feedback unit 126, configured to feed back the first service data when the segmentation flag bit takes a value indicating that the segmentation flag bit is not segmented.
Please refer to fig. 18. Based on the data reading method embodiment corresponding to fig. 10, an embodiment of the present specification further provides a server. The server may include a memory and a processor.
In this embodiment, the memory may be implemented in any suitable manner. For example, the memory may be a read-only memory, a mechanical hard disk, a solid state disk, a U disk, or the like. The memory may be used to store computer instructions.
In this embodiment, the processor may be implemented in any suitable manner. For example, the processor may take the form of, for example, a microprocessor or processor and a computer-readable medium that stores computer-readable program code (e.g., software or firmware) executable by the (micro) processor, logic gates, switches, an Application Specific Integrated Circuit (ASIC), a programmable logic controller, an embedded microcontroller, and so forth. The processor may execute the computer instructions to perform the steps of: receiving a data reading request; the data reading request corresponds to a first data identifier; sending the first data identification to a coordination server; receiving first service data which are fed back by the coordination server and read according to the first data identification; the first service data comprises a segmentation marker bit; and when the value of the segmentation marking bit is a numerical value representing that the segmentation marking bit is not segmented, feeding back the first service data.
Please refer to fig. 17. Based on the data reading method embodiment corresponding to fig. 11, the embodiment of this specification further provides a data reading apparatus. The data reading apparatus may include the following units.
A first receiving unit 130 for receiving a data read request; the data reading request corresponds to a first data identifier;
a first sending unit 132, configured to send the first data identifier to a coordination server;
a second receiving unit 134, configured to receive the first service data read according to the first data identifier and fed back by the coordination server; the first service data comprises a segmentation marker bit;
a generating unit 136, configured to generate at least one second data identifier according to the value of the division flag bit and the first data identifier when the value of the division flag bit is a value other than a value indicating that the division is not performed;
a second sending unit 138, configured to send the at least one second data identifier to the coordination server;
a third receiving unit 140, configured to receive at least one second service data read according to the at least one second data identifier and fed back by the coordination server;
a merging unit 142, configured to merge the first service data and the at least one second service data to obtain merged data;
a feedback unit 144, configured to feed back the merged data.
Please refer to fig. 18. Based on the data reading method embodiment corresponding to fig. 11, an embodiment of the present specification further provides a server. The server may include a memory and a processor.
In this embodiment, the memory may be implemented in any suitable manner. For example, the memory may be a read-only memory, a mechanical hard disk, a solid state disk, a U disk, or the like. The memory may be used to store computer instructions.
In this embodiment, the processor may be implemented in any suitable manner. For example, the processor may take the form of, for example, a microprocessor or processor and a computer-readable medium that stores computer-readable program code (e.g., software or firmware) executable by the (micro) processor, logic gates, switches, an Application Specific Integrated Circuit (ASIC), a programmable logic controller, an embedded microcontroller, and so forth. The processor may execute the computer instructions to perform the steps of: receiving a data reading request; the data reading request corresponds to a first data identifier; sending the first data identification to a coordination server; receiving first service data which are fed back by the coordination server and read according to the first data identification; the first service data comprises a segmentation marker bit; when the value of the segmentation marking bit is other than the value representing the non-segmentation, generating at least one second data identifier according to the value of the segmentation marking bit and the first data identifier; sending the at least one second data identifier to a coordination server; receiving at least one second service data which is fed back by the coordination server and read according to the at least one second data identifier; merging the first service data and the at least one second service data to obtain merged data; and feeding back the combined data.
It should be noted that, in the present specification, each embodiment is described in a progressive manner, and the same or similar parts in each embodiment may be referred to each other, and each embodiment focuses on differences from other embodiments. In particular, as for the data writing method, the data writing device, the data reading method, the data reading device, and the server embodiment, since they are basically similar to the data processing system embodiment, the description is simple, and the relevant points can be referred to the partial description of the data processing system embodiment.
After reading this specification, persons skilled in the art will appreciate that any combination of some or all of the embodiments set forth herein, without inventive faculty, is within the scope of the disclosure and protection of this specification.
In the 90 s of the 20 th century, improvements in a technology could clearly distinguish between improvements in hardware (e.g., improvements in circuit structures such as diodes, transistors, switches, etc.) and improvements in software (improvements in process flow). However, as technology advances, many of today's process flow improvements have been seen as direct improvements in hardware circuit architecture. Designers almost always obtain the corresponding hardware circuit structure by programming an improved method flow into the hardware circuit. Thus, it cannot be said that an improvement in the process flow cannot be realized by hardware physical modules. For example, a Programmable Logic Device (PLD), such as a Field Programmable Gate Array (FPGA), is an integrated circuit whose Logic functions are determined by programming the Device by a user. A digital system is "integrated" on a PLD by the designer's own programming without requiring the chip manufacturer to design and fabricate a dedicated integrated circuit chip 2. Furthermore, nowadays, instead of manually making an Integrated Circuit chip, such Programming is often implemented by "logic compiler" software, which is similar to a software compiler used in program development and writing, but the original code before compiling is also written by a specific Programming Language, which is called Hardware Description Language (HDL), and HDL is not only one but many, such as abel (advanced Boolean Expression Language), ahdl (alternate Language Description Language), traffic, pl (core unified Programming Language), HDCal, JHDL (Java Hardware Description Language), langue, Lola, HDL, laspam, hardbyscript Description Language (vhr Description Language), and the like, which are currently used by Hardware compiler-software (Hardware Description Language-software). It will also be apparent to those skilled in the art that hardware circuitry that implements the logical method flows can be readily obtained by merely slightly programming the method flows into an integrated circuit using the hardware description languages described above.
The systems, devices, modules or units illustrated in the above embodiments may be implemented by a computer chip or an entity, or by a product with certain functions. One typical implementation device is a computer. In particular, the computer may be, for example, a personal computer, a laptop computer, a cellular telephone, a camera phone, a smartphone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
From the above description of the embodiments, it is clear to those skilled in the art that the present specification can be implemented by software plus a necessary general hardware platform. Based on such understanding, the technical solutions of the present specification may be essentially or partially implemented in the form of software products, which may be stored in a storage medium, such as ROM/RAM, magnetic disk, optical disk, etc., and include instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments of the present specification.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The description is operational with numerous general purpose or special purpose computing system environments or configurations. For example: personal computers, server computers, hand-held or portable devices, tablet-type devices, multiprocessor systems, microprocessor-based systems, set top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, distributed computing environments that include any of the above systems or devices, and the like.
This description may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. The specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
While the specification has been described with examples, those skilled in the art will appreciate that there are numerous variations and permutations of the specification that do not depart from the spirit of the specification, and it is intended that the appended claims include such variations and modifications that do not depart from the spirit of the specification.

Claims (37)

1. A data writing method is applied to a service server, the service server is in butt joint with a distributed cache server cluster, the distributed cache server cluster comprises a coordination server and a plurality of cache servers, and the method comprises the following steps:
receiving a data write request; the data writing request corresponds to service data and a data identifier;
when the data volume of the service data is larger than a preset value, compressing the service data to obtain compressed data;
sending the compressed data and the data identifier to a coordination server; so that the coordinating server performs the following write operations: and selecting a first target cache server from the plurality of cache servers according to the data identifier, and sending the compressed data and the data identifier to the first target cache server so that the first target cache server can locally store the compressed data and the data identifier correspondingly.
2. The method of claim 1, prior to sending the compressed data and the data identification to a coordinating server, the method further comprising:
adding compression mark bits in the compressed data;
setting the value of the compression flag bit to represent the compressed value.
3. The method of claim 1, prior to sending the compressed data and the data identification to a coordinating server, the method further comprising:
adding a segmentation mark bit in the compressed data;
setting the value of the segmentation marker bit to a value representing no segmentation.
4. The method of claim 1, the sending the compressed data and the data identification to a coordinating server, comprising:
and when the data volume of the compressed data is less than or equal to a preset value, sending the compressed data and the data identification to a coordination server.
5. The method of claim 1, the sending the compressed data and the data identification to a coordinating server, comprising:
when the data volume of the compressed data is larger than a preset value, segmenting the compressed data according to the preset value to obtain a plurality of subdata; the data volume of each subdata is smaller than or equal to the preset value;
determining a plurality of subdata identifications corresponding to the plurality of subdata according to the data identifications;
sending the plurality of subdata and the plurality of subdata identifications to a coordination server; so that the coordinating server performs the following write operations: and aiming at each subdata and the subdata identifier corresponding to the subdata, selecting a second target cache server from the plurality of cache servers according to the subdata identifier, and sending the subdata and the subdata identifier to the second target cache server so that the subdata and the subdata identifier can be locally and correspondingly stored by the second target cache server.
6. The method of claim 5, the plurality of child data having a sequential order; before sending the plurality of child data and the plurality of child data identifiers to the coordinating server, the method further comprises:
adding a compression mark bit in the first subdata;
setting the value of the compression flag bit to represent the compressed value.
7. The method of claim 5, the plurality of child data having a sequential order; before sending the plurality of child data and the plurality of child data identifiers to the coordinating server, the method further comprises:
adding a division mark bit in the first subdata;
and setting the value of the segmentation mark bit according to the number of the plurality of subdata.
8. The method of claim 1, further comprising:
when the data volume of the service data is smaller than or equal to a preset value, the service data and the data identification are sent to a coordination server; so that the coordinating server performs the following write operations: and selecting a first target cache server from the plurality of cache servers according to the data identifier, and sending the service data and the data identifier to the first target cache server so that the first target cache server can locally store the service data and the data identifier correspondingly.
9. The method of claim 8, prior to sending the traffic data and the data identification to a coordination server, the method further comprising:
adding a compression mark bit in the service data;
setting the value of the compression flag bit to represent an uncompressed value.
10. The method of claim 8, prior to sending the traffic data and the data identification to a coordination server, the method further comprising:
adding a segmentation marking bit in the service data;
setting the value of the segmentation marker bit to a value representing no segmentation.
11. A data write-in device is applied to a service server, the service server is in butt joint with a distributed cache server cluster, the distributed cache server cluster comprises a coordination server and a plurality of cache servers, and the device comprises:
a receiving unit configured to receive a data write request; the data writing request corresponds to service data and a data identifier;
the compression unit is used for compressing the service data to obtain compressed data when the data volume of the service data is larger than a preset value;
a sending unit, configured to send the compressed data and the data identifier to a coordination server; so that the coordinating server performs the following write operations: and selecting a first target cache server from the plurality of cache servers according to the data identifier, and sending the compressed data and the data identifier to the first target cache server so that the first target cache server can locally store the compressed data and the data identifier correspondingly.
12. A server that interfaces with a distributed cluster of cache servers including a coordinating server and a plurality of cache servers, the server comprising:
a memory for storing computer instructions;
a processor for executing the computer instructions to perform the steps of: receiving a data write request; the data writing request corresponds to service data and a data identifier; when the data volume of the service data is larger than a preset value, compressing the service data to obtain compressed data; sending the compressed data and the data identifier to a coordination server; so that the coordinating server performs the following write operations: and selecting a first target cache server from the plurality of cache servers according to the data identifier, and sending the compressed data and the data identifier to the first target cache server so that the first target cache server can locally store the compressed data and the data identifier correspondingly.
13. A data writing method is applied to a service server, the service server is in butt joint with a distributed cache server cluster, the distributed cache server cluster comprises a coordination server and a plurality of cache servers, and the method comprises the following steps:
receiving a data write request; the data writing request corresponds to service data and a data identifier;
when the data volume of the service data is larger than a preset value, segmenting the service data according to the preset value to obtain a plurality of subdata; the data volume of each subdata is smaller than or equal to the preset value;
determining a plurality of subdata identifications corresponding to the plurality of subdata according to the data identifications;
sending the plurality of subdata and the plurality of subdata identifications to a coordination server; so that the coordinating server performs the following write operations: and aiming at each subdata and the subdata identifier corresponding to the subdata, selecting a second target cache server from the plurality of cache servers according to the subdata identifier, and sending the subdata and the subdata identifier to the second target cache server so that the subdata and the subdata identifier can be locally and correspondingly stored by the second target cache server.
14. The method of claim 13, the plurality of child data having a sequential order; accordingly, before sending the plurality of sub-data and the plurality of sub-data identifiers to the coordinating server, the method further comprises:
adding a compression mark bit in the first subdata;
setting the value of the compression flag bit to represent an uncompressed value.
15. The method of claim 13, the plurality of child data having a sequential order; accordingly, before sending the plurality of sub-data and the plurality of sub-data identifiers to the coordinating server, the method further comprises:
adding a division mark bit in the first subdata;
and setting the value of the segmentation mark bit according to the number of the subdata.
16. The method of claim 13, the method further comprising:
when the data volume of the service data is smaller than or equal to a preset value, the service data and the data identification are sent to a coordination server; so that the coordinating server performs the following write operations: and selecting a first target cache server from the plurality of cache servers according to the data identifier, and sending the service data and the data identifier to the first target cache server so that the first target cache server can locally store the service data and the data identifier correspondingly.
17. The method of claim 16, prior to sending the traffic data and the data identification to a coordination server, the method further comprising:
adding a compression mark bit in the service data;
setting the value of the compression flag bit to represent an uncompressed value.
18. The method of claim 16, prior to sending the traffic data and the data identification to a coordination server, the method further comprising:
adding a segmentation marking bit in the service data;
setting the value of the segmentation marker bit to a value representing no segmentation.
19. A data write-in device is applied to a service server, the service server is in butt joint with a distributed cache server cluster, the distributed cache server cluster comprises a coordination server and a plurality of cache servers, and the device comprises:
a receiving unit configured to receive a data write request; the data writing request corresponds to service data and a data identifier;
the dividing unit is used for dividing the service data according to a preset value to obtain a plurality of subdata when the data volume of the service data is larger than the preset value; the data volume of each subdata is smaller than or equal to the preset value;
a determining unit, configured to determine, according to the data identifier, a plurality of sub-data identifiers corresponding to the plurality of sub-data;
a sending unit, configured to send the multiple subdata and the multiple subdata identifiers to a coordination server; so that the coordinating server performs the following write operations: and aiming at each subdata and the subdata identifier corresponding to the subdata, selecting a second target cache server from the plurality of cache servers according to the subdata identifier, and sending the subdata and the subdata identifier to the second target cache server so that the subdata and the subdata identifier can be locally and correspondingly stored by the second target cache server.
20. A server that interfaces with a distributed cluster of cache servers including a coordinating server and a plurality of cache servers, the server comprising:
a memory for storing computer instructions;
a processor for executing the computer instructions to perform the steps of: receiving a data write request; the data writing request corresponds to service data and a data identifier; when the data volume of the service data is larger than a preset value, segmenting the service data according to the preset value to obtain a plurality of subdata; the data volume of each subdata is smaller than or equal to the preset value; determining a plurality of subdata identifications corresponding to the plurality of subdata according to the data identifications; sending the plurality of subdata and the plurality of subdata identifications to a coordination server; so that the coordinating server performs the following write operations: and aiming at each subdata and the subdata identifier corresponding to the subdata, selecting a second target cache server from the plurality of cache servers according to the subdata identifier, and sending the subdata and the subdata identifier to the second target cache server so that the subdata and the subdata identifier can be locally and correspondingly stored by the second target cache server.
21. A data reading method is applied to a service server, the service server is in butt joint with a distributed cache server cluster, the distributed cache server cluster comprises a coordination server and a plurality of cache servers, and the method comprises the following steps:
receiving a data reading request; the data reading request corresponds to a first data identifier;
sending the first data identification to a coordination server; so that the coordination server obtains first service data read by a first target cache server according to the first data identifier, wherein the first target cache server is a cache server corresponding to the first data identifier in the plurality of cache servers;
receiving first service data fed back by a coordination server; the first service data comprises compression flag bits;
when the value of the compression flag bit is a numerical value representing compression, decompressing the first service data to obtain decompressed service data;
and feeding back the decompressed service data.
22. The method of claim 21, the method further comprising:
and when the value of the compression mark bit is a numerical value representing the uncompressed state, feeding back the first service data.
23. The method of claim 21, the first traffic data further comprising a fragmentation flag bit; correspondingly, the decompressing the first service data includes:
and when the value of the segmentation marker bit is a numerical value which represents that the segmentation marker bit is not segmented, decompressing the first service data to obtain decompressed service data.
24. The method of claim 21, the first traffic data further comprising a fragmentation flag bit; before decompressing the first traffic data, the method further includes:
when the value of the segmentation marking bit is other than the value representing the non-segmentation, generating at least one second data identifier according to the value of the segmentation marking bit and the first data identifier;
sending the at least one second data identifier to a coordination server; the coordination server obtains second service data read by a second target cache server according to each second data identifier, wherein the second target cache server is a cache server corresponding to the second data identifier in the plurality of cache servers;
receiving at least one second service data fed back by the coordination server;
merging the first service data and the at least one second service data to obtain merged data;
correspondingly, the decompressing the first service data to obtain decompressed service data includes:
and decompressing the merged data to obtain decompressed service data.
25. A data reading device is applied to a service server, the service server is in butt joint with a distributed cache server cluster, the distributed cache server cluster comprises a coordination server and a plurality of cache servers, and the device comprises:
a first receiving unit for receiving a data read request; the data reading request corresponds to a first data identifier;
a sending unit, configured to send the first data identifier to a coordination server; so that the coordination server obtains first service data read by a first target cache server according to the first data identifier, wherein the first target cache server is a cache server corresponding to the first data identifier in the plurality of cache servers;
the second receiving unit is used for receiving the first service data fed back by the coordination server; the first service data comprises compression flag bits;
a decompression unit, configured to decompress the first service data when the value of the compression flag bit is a value indicating compression, to obtain decompressed service data;
and the feedback unit is used for feeding back the decompressed service data.
26. A server that interfaces with a distributed cluster of cache servers including a coordinating server and a plurality of cache servers, the server comprising:
a memory for storing computer instructions;
a processor for executing the computer instructions to perform the steps of: receiving a data reading request; the data reading request corresponds to a first data identifier; sending the first data identification to a coordination server; so that the coordination server obtains first service data read by a first target cache server according to the first data identifier, wherein the first target cache server is a cache server corresponding to the first data identifier in the plurality of cache servers; receiving first service data fed back by a coordination server; the first service data comprises compression flag bits; when the value of the compression flag bit is a numerical value representing compression, decompressing the first service data to obtain decompressed service data; and feeding back the decompressed service data.
27. A data reading method is applied to a service server, the service server is in butt joint with a distributed cache server cluster, the distributed cache server cluster comprises a coordination server and a plurality of cache servers, and the method comprises the following steps:
receiving a data reading request; the data reading request corresponds to a first data identifier;
sending the first data identification to a coordination server; so that the coordination server obtains first service data read by a first target cache server according to the first data identifier, wherein the first target cache server is a cache server corresponding to the first data identifier in the plurality of cache servers;
receiving first service data fed back by a coordination server; the first service data comprises compression flag bits;
and when the value of the compression mark bit is a numerical value representing the uncompressed state, feeding back the first service data.
28. The method of claim 27, the first traffic data further comprising a fragmentation flag bit; accordingly, the feeding back the first service data includes:
and when the value of the segmentation marking bit is a numerical value representing that the segmentation marking bit is not segmented, feeding back the first service data.
29. The method of claim 27, the first traffic data further comprising a fragmentation flag bit; accordingly, before feeding back the first service data, the method further includes:
when the value of the segmentation marking bit is other than the value representing the non-segmentation, generating at least one second data identifier according to the value of the segmentation marking bit and the first data identifier;
sending the at least one second data identifier to a coordination server; the coordination server obtains second service data read by a second target cache server according to each second data identifier, wherein the second target cache server is a cache server corresponding to the second data identifier in the plurality of cache servers;
receiving at least one second service data fed back by the coordination server;
merging the first service data and the at least one second service data to obtain merged data;
accordingly, the feeding back the first service data includes:
and feeding back the combined data.
30. A data reading device is applied to a service server, the service server is in butt joint with a distributed cache server cluster, the distributed cache server cluster comprises a coordination server and a plurality of cache servers, and the device comprises:
a first receiving unit for receiving a data read request; the data reading request corresponds to a first data identifier;
a sending unit, configured to send the first data identifier to a coordination server; so that the coordination server obtains first service data read by a first target cache server according to the first data identifier, wherein the first target cache server is a cache server corresponding to the first data identifier in the plurality of cache servers;
the second receiving unit is used for receiving the first service data fed back by the coordination server; the first service data comprises compression flag bits;
and the feedback unit is used for feeding back the first service data when the value of the compression mark bit is a numerical value representing the uncompressed state.
31. A server that interfaces with a distributed cluster of cache servers including a coordinating server and a plurality of cache servers, the server comprising:
a memory for storing computer instructions;
a processor for executing the computer instructions to perform the steps of: receiving a data reading request; the data reading request corresponds to a first data identifier; sending the first data identification to a coordination server; so that the coordination server obtains first service data read by a first target cache server according to the first data identifier, wherein the first target cache server is a cache server corresponding to the first data identifier in the plurality of cache servers; receiving first service data fed back by a coordination server; the first service data comprises compression flag bits; and when the value of the compression mark bit is a numerical value representing the uncompressed state, feeding back the first service data.
32. A data reading method is applied to a service server, the service server is in butt joint with a distributed cache server cluster, the distributed cache server cluster comprises a coordination server and a plurality of cache servers, and the method comprises the following steps:
receiving a data reading request; the data reading request corresponds to a first data identifier;
sending the first data identification to a coordination server; so that the coordination server obtains first service data read by a first target cache server according to the first data identifier, wherein the first target cache server is a cache server corresponding to the first data identifier in the plurality of cache servers;
receiving first service data fed back by a coordination server; the first service data comprises a segmentation marker bit;
and when the value of the segmentation marking bit is a numerical value representing that the segmentation marking bit is not segmented, feeding back the first service data.
33. A data reading device is applied to a service server, the service server is in butt joint with a distributed cache server cluster, the distributed cache server cluster comprises a coordination server and a plurality of cache servers, and the device comprises:
a first receiving unit for receiving a data read request; the data reading request corresponds to a first data identifier;
a sending unit, configured to send the first data identifier to a coordination server; so that the coordination server obtains first service data read by a first target cache server according to the first data identifier, wherein the first target cache server is a cache server corresponding to the first data identifier in the plurality of cache servers;
the second receiving unit is used for receiving the first service data fed back by the coordination server; the first service data comprises a segmentation marker bit;
and the feedback unit is used for feeding back the first service data when the value of the segmentation marking bit is a numerical value which represents that the segmentation marking bit is not segmented.
34. A server that interfaces with a distributed cluster of cache servers including a coordinating server and a plurality of cache servers, the server comprising:
a memory for storing computer instructions;
a processor for executing the computer instructions to perform the steps of: receiving a data reading request; the data reading request corresponds to a first data identifier; sending the first data identification to a coordination server; so that the coordination server obtains first service data read by a first target cache server according to the first data identifier, wherein the first target cache server is a cache server corresponding to the first data identifier in the plurality of cache servers; receiving first service data fed back by a coordination server; the first service data comprises a segmentation marker bit; and when the value of the segmentation marking bit is a numerical value representing that the segmentation marking bit is not segmented, feeding back the first service data.
35. A data reading method is applied to a service server, the service server is in butt joint with a distributed cache server cluster, the distributed cache server cluster comprises a coordination server and a plurality of cache servers, and the method comprises the following steps:
receiving a data reading request; the data reading request corresponds to a first data identifier;
sending the first data identification to a coordination server; so that the coordination server obtains first service data read by a first target cache server according to the first data identifier, wherein the first target cache server is a cache server corresponding to the first data identifier in the plurality of cache servers;
receiving first service data fed back by a coordination server; the first service data comprises a segmentation marker bit;
when the value of the segmentation marking bit is other than the value representing the non-segmentation, generating at least one second data identifier according to the value of the segmentation marking bit and the first data identifier;
sending the at least one second data identifier to a coordination server; the coordination server obtains second service data read by a second target cache server according to each second data identifier, wherein the second target cache server is a cache server corresponding to the second data identifier in the plurality of cache servers;
receiving at least one second service data fed back by the coordination server;
merging the first service data and the at least one second service data to obtain merged data;
and feeding back the combined data.
36. A data reading device is applied to a service server, the service server is in butt joint with a distributed cache server cluster, the distributed cache server cluster comprises a coordination server and a plurality of cache servers, and the device comprises:
a first receiving unit for receiving a data read request; the data reading request corresponds to a first data identifier;
a first sending unit, configured to send the first data identifier to a coordination server; so that the coordination server obtains first service data read by a first target cache server according to the first data identifier, wherein the first target cache server is a cache server corresponding to the first data identifier in the plurality of cache servers;
the second receiving unit is used for receiving the first service data fed back by the coordination server; the first service data comprises a segmentation marker bit;
a generating unit, configured to generate at least one second data identifier according to the value of the division flag bit and the first data identifier when the value of the division flag bit is a value other than a value indicating that the division is not performed;
a second sending unit, configured to send the at least one second data identifier to the coordination server; the coordination server obtains second service data read by a second target cache server according to each second data identifier, wherein the second target cache server is a cache server corresponding to the second data identifier in the plurality of cache servers;
a third receiving unit, configured to receive at least one second service data fed back by the coordination server;
a merging unit, configured to merge the first service data and the at least one second service data to obtain merged data;
and the feedback unit is used for feeding back the combined data.
37. A server that interfaces with a distributed cluster of cache servers including a coordinating server and a plurality of cache servers, the server comprising:
a memory for storing computer instructions;
a processor for executing the computer instructions to perform the steps of: receiving a data reading request; the data reading request corresponds to a first data identifier; sending the first data identification to a coordination server; so that the coordination server obtains first service data read by a first target cache server according to the first data identifier, wherein the first target cache server is a cache server corresponding to the first data identifier in the plurality of cache servers; receiving first service data fed back by a coordination server; the first service data comprises a segmentation marker bit; when the value of the segmentation marking bit is other than the value representing the non-segmentation, generating at least one second data identifier according to the value of the segmentation marking bit and the first data identifier; sending the at least one second data identifier to a coordination server; the coordination server obtains second service data read by a second target cache server according to each second data identifier, wherein the second target cache server is a cache server corresponding to the second data identifier in the plurality of cache servers; receiving at least one second service data fed back by the coordination server; merging the first service data and the at least one second service data to obtain merged data; and feeding back the combined data.
CN201811011369.7A 2018-08-31 2018-08-31 Data writing method, data reading device and server Active CN109302449B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811011369.7A CN109302449B (en) 2018-08-31 2018-08-31 Data writing method, data reading device and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811011369.7A CN109302449B (en) 2018-08-31 2018-08-31 Data writing method, data reading device and server

Publications (2)

Publication Number Publication Date
CN109302449A CN109302449A (en) 2019-02-01
CN109302449B true CN109302449B (en) 2022-03-15

Family

ID=65165853

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811011369.7A Active CN109302449B (en) 2018-08-31 2018-08-31 Data writing method, data reading device and server

Country Status (1)

Country Link
CN (1) CN109302449B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112311686B (en) * 2020-09-27 2022-09-30 长沙市到家悠享网络科技有限公司 Data processing method and device, electronic equipment and storage medium
CN112311902B (en) * 2020-12-23 2021-05-07 深圳市蓝凌软件股份有限公司 File sending method and device based on micro-service
CN112905127A (en) * 2021-03-25 2021-06-04 北京金风慧能技术有限公司 Data processing method and data processing system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103020205A (en) * 2012-12-05 2013-04-03 北京普泽天玑数据技术有限公司 Compression and decompression method based on hardware accelerator card on distributive-type file system
CN103188247A (en) * 2011-12-31 2013-07-03 深圳市金蝶友商电子商务服务有限公司 Method and system of data transmission
CN103744627A (en) * 2014-01-26 2014-04-23 武汉英泰斯特电子技术有限公司 Method and system for compressing and storing data collected in real time
CN105187491A (en) * 2015-08-06 2015-12-23 上海斐讯数据通信技术有限公司 Method, system and server thereof for uploading pictures
CN107589910A (en) * 2017-09-01 2018-01-16 厦门集微科技有限公司 The method and system of the high in the clouds data management of user's custom strategies

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016095149A1 (en) * 2014-12-18 2016-06-23 华为技术有限公司 Data compression and storage method and device, and distributed file system
CN105723320B (en) * 2016-02-01 2019-03-19 华为技术有限公司 Data preparation method, storage equipment, storage control and storage array

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103188247A (en) * 2011-12-31 2013-07-03 深圳市金蝶友商电子商务服务有限公司 Method and system of data transmission
CN103020205A (en) * 2012-12-05 2013-04-03 北京普泽天玑数据技术有限公司 Compression and decompression method based on hardware accelerator card on distributive-type file system
CN103744627A (en) * 2014-01-26 2014-04-23 武汉英泰斯特电子技术有限公司 Method and system for compressing and storing data collected in real time
CN105187491A (en) * 2015-08-06 2015-12-23 上海斐讯数据通信技术有限公司 Method, system and server thereof for uploading pictures
CN107589910A (en) * 2017-09-01 2018-01-16 厦门集微科技有限公司 The method and system of the high in the clouds data management of user's custom strategies

Also Published As

Publication number Publication date
CN109302449A (en) 2019-02-01

Similar Documents

Publication Publication Date Title
CN109254733B (en) Method, device and system for storing data
US11296940B2 (en) Centralized configuration data in a distributed file system
CN106599104B (en) Massive data association method based on redis cluster
CN109302449B (en) Data writing method, data reading device and server
CN111857550B (en) Method, apparatus and computer readable medium for data deduplication
CN112099725A (en) Data processing method and device and computer readable storage medium
CN113209633A (en) Mirror image processing method and device, electronic equipment and readable storage medium
CN112636992B (en) Dynamic routing method, device, equipment and storage medium
CN115065725B (en) Data processing method, device, electronic equipment and storage medium
US20210133217A1 (en) Method and apparatus for importing data into graph database, electronic device and medium
CN111966633A (en) Method, device, electronic equipment and medium for inquiring child nodes under directory
CN104268229A (en) Resource obtaining method and device based on multi-process browser
CN113961510B (en) File processing method, device, equipment and storage medium
CN112256772A (en) Data service method, device and readable storage medium
CN111522574B (en) Differential packet generation method and related equipment
CN111581239A (en) Cache refreshing method and electronic equipment
CN107423425B (en) Method for quickly storing and inquiring data in K/V format
CN110020272B (en) Caching method and device and computer storage medium
CN114764557A (en) Data processing method and device, electronic equipment and storage medium
CN115114232A (en) Method, device and medium for enumerating historical version objects
CN113742332A (en) Data storage method, device, equipment and storage medium
CN113127430A (en) Mirror image information processing method and device, computer readable medium and electronic equipment
CN113518088B (en) Data processing method, device, server, client and medium
CN114035822A (en) File updating method and equipment
CN112351107B (en) Method, apparatus, electronic device and readable storage medium for encoding file

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20201009

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Applicant after: Innovative advanced technology Co.,Ltd.

Address before: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Applicant before: Advanced innovation technology Co.,Ltd.

Effective date of registration: 20201009

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Applicant after: Advanced innovation technology Co.,Ltd.

Address before: Greater Cayman, British Cayman Islands

Applicant before: Alibaba Group Holding Ltd.

GR01 Patent grant
GR01 Patent grant