The application provides a long-chain error
correction code encoding and decoding method, a
system and a readable storage medium, and the method comprises the following steps: S1, minimizing single error cross-cabinet
recovery cost through quantization, selecting a suitable data grouping strategy and
data placement strategy, and determining encoding parameters; S2, sequentially encoding each dimension of three-dimensional encoding; S3, recovering data by using a decoding
algorithm, preferentially using low-dimensional encoding for check
recovery, and calling high-dimensional encoding for check
recovery of each dimension when recovery fails. The application makes a quantitative analysis on the single error cross-cabinet recovery cost, places the cabinet level strip based on the analysis result, so that the strip crosses fewer cabinets; meanwhile, in the decoding stage of the long-chain error
correction code, low-dimensional encoding is preferentially used for check recovery, high-dimensional encoding is called when recovery fails, the
network topology is fully considered, the cross-cabinet recovery cost is reduced as much as possible, and then the
recovery performance is improved.