Qhov txawv ntawm partitioning thiab sharding yog dab tsi?
Qhov txawv ntawm partitioning thiab sharding yog dab tsi?

Video: Qhov txawv ntawm partitioning thiab sharding yog dab tsi?

Video: Qhov txawv ntawm partitioning thiab sharding yog dab tsi?
Video: Qhov muag qhia neeg phem 2024, Kaum ib hlis
Anonim

“ kev sib faib yog faib los yog muab faib ntawm cov ntaub ntawv nyob rau hauv ntau yam txawv tshuab nyob qhov twg muab faib yog kev faib cov ntaub ntawv ntawm tib lub tshuab."

Cov lus nug tseem yog, Sharding txhais li cas?

Sharding yog ib hom database partitioning uas sib cais loj heev databases rau hauv me me, sai dua, yooj yim tswj qhov chaw hu ua cov ntaub ntawv shards. Lo lus cov ntsiab lus ib feem me me ntawm tag nrho.

Kuj Paub, qhov txawv ntawm replication thiab sharding yog dab tsi? rov ua dua tsim cov ntawv luam ntxiv ntawm cov ntaub ntawv thiab tso cai rau tsis siv neeg poob rau lwm qhov. kev sib faib tso cai rau kab rov tav scaling ntawm datawrites los ntawm kev faib cov ntaub ntawv hla ntau lub servers siv a shard tus yuam sij.

Kuj nug, sharding thiab partitioning hauv database yog dab tsi?

Sharding (tseem hu ua Data Kev faib tawm ) yog cov txheej txheem ntawm kev faib cov ntaub ntawv loj rau hauv ntau qhov me me muab faib uas tau muab tso rau ntawm cov tshuab sib txawv. Txhua muab faib yog lub npe hu ua " shard ". Txhua shard muaj ib yam database schema raws li tus thawj database.

Vim li cas Sharding siv?

Cov txiaj ntsig ntawm Sharding Qhov tseem ceeb thov ntawm kev sib faib ib lub database yog tias nws tuaj yeem pab txhawb txoj kab rov tav scaling, tseem hu ua scalingout. Kab rov tav scaling yog qhov kev xyaum ntawm kev ntxiv cov cav tov rau cov khoom uas twb muaj lawm nyob rau hauv thiaj li yuav nthuav tawm cov load thiab tso cai rau kev khiav tsheb ntau dua thiab ua sai dua.

Pom zoo: