US 12,271,621 B2
Method, apparatus, electronic device and storage medium for storing data based on data shard information
Zhengwen Chen, Beijing (CN); Junsheng Tan, Beijing (CN); Nan Li, Beijing (CN); Xiao Chen, Beijing (CN); Yingju Gao, Beijing (CN); and Dong Wang, Beijing (CN)
Assigned to BEIJING VOLCANO ENGINE TECHNOLOGY CO., LTD., Beijing (CN)
Filed by Beijing Volcano Engine Technology Co., Ltd., Beijing (CN)
Filed on Jun. 7, 2024, as Appl. No. 18/737,702.
Claims priority of application No. 202310716317.4 (CN), filed on Jun. 15, 2023.
Prior Publication US 2024/0419355 A1, Dec. 19, 2024
Int. Cl. G06F 3/06 (2006.01)
CPC G06F 3/0655 (2013.01) [G06F 3/0604 (2013.01); G06F 3/067 (2013.01)] 20 Claims
OG exemplary drawing
 
1. A method for storing data, comprising:
reading, from a message queue, target data to be stored in a current cycle, and extracting a first data feature of the target data, the first data feature representing a data volume of the target data;
determining, by invoking an adaptive consistent hashing processing module and based on the first data feature, data shard information matching the target data, and synchronizing the data shard information matching the target data to a configuration center, wherein the data shard information indicates at least one storage engine storing the target data in shards, and the configuration center records the data shard information and refreshes the data shard information to a data write component regularly; and
writing, by invoking the data write component, the target data into a corresponding storage engine based on the data shard information, wherein the storage engine supports query processing of the target data.