摘要 |
A data transmission method and apparatus avoids uneven loading of stored data, supports allocation of storage spaces with load balancing, and supports fast access to data. The method may include receiving, by a distributed storage system, data and a corresponding data key sent by a client. Nodes are allocated to the data according to load conditions of nodes in the distributed storage system. The data is stored in the corresponding nodes. A constructed key is generated for the data, which includes the data key and node routing information corresponding to a location where the data is stored. The constructed key is returned to the client. The client uses the constructed key to acquire the stored data. The distributed storage system receives the constructed key, retrieves the stored data based on the routing information in the constructed key and sends the data to the client. |