LightMySky
به انگلیسی

Partitioning and Replication for Scale

Beyond one machine, data is split by key across nodes and copied for safety. The partition key decides which queries stay fast and which become scatter-and-gather, and the replication scheme decides what a read may return after a recent write.

شروع یادگیری این موضوعبه حساب کاربری نیازی نیست. پیشرفت در همین مرورگر ذخیره می‌شود.

کارهایی که یادگیرنده بعد از این درس می‌تواند انجام دهد

  • Choose a partition key for a stated query mix and say which queries it hurts
  • Explain what a hot partition is and how it arises from a skewed key
  • Compare synchronous and asynchronous replication on what a reader can see

۱ · بخوان

Past one machine, you split rows by a partition key and copy each part for safety. The key you choose decides which queries stay fast and which must knock on every door.

Try it together

An orders table keyed by customer keeps one customer's orders together, so that lookup is quick. A report over all recent orders must visit every partition, which is slow scatter and gather. If one seller owns half the rows, its partition runs hot while the rest sit idle.

Copies guard against lost machines. With synchronous replication the write waits for its copies, so later reads see it. With asynchronous replication the write returns fast, but a quick read from a copy can return the older value.

Pick the key from your most common query, check the key for skew before you commit, and choose sync or async by asking how stale a read is allowed to be.

Split by the key your queries need, watch for skew, and pick copies that match how fresh your reads must be.

۲ · ببین

به انگلیسی

دور از صفحه‌نمایش

چاپ کاربرگکاغذ A4، با یک صفحهٔ جواب‌ها برای بزرگ‌ترها. بدون صفحه‌نمایش، بدون اینترنت.

جایگاه این موضوع

اول این‌ها را یاد بگیر

پیوندهای اختیاری

این موضوع راه این‌ها را باز می‌کند

سپس تمرین

۸ سؤال پشت این درس منتظرند، هر کدام با پاسخ توضیح‌داده‌شده. هر پاسخ آسمان را پر می‌کند: ستاره‌ها هنگام یادگیری روشن می‌شوند و وقتی زمان برگشتن است کمرنگ می‌شوند.

شروع یادگیری این موضوع