Skip to content
Ameen Abozaid
Planned lessonSRC-007-L05

Hot partitions

  • Lesson 5 of 9
  • Senior C
On This Lesson 4 topics

This lesson is planned. The outline below lists the topics it will cover. The full lesson has not been published yet.

In this lesson

predict and measure skew.

Planned topics

  • Skew arises from big customers, time-based keys (all writes to the newest range), and promotions.
  • Measure distribution from real data before choosing; estimate the top key's share.
  • Mitigations: composite keys, salting, hashing, splitting large tenants, caching.
  • Include hot-partition headroom in the capacity plan.
Draft outline details

Demonstration

a histogram description: top 1% of customers produce 30% of orders; the hot shard needs 3× the average capacity.

Check your understanding

Why is a timestamp a poor shard key for writes?

Show answer

All new writes hit the latest partition.

Practice

Apply this lesson with the module's lab, exercises and quiz.

Lab and exercises Quiz

Marking a lesson complete is optional and you can undo it any time. Your progress stays in this browser.

Continue to next lesson

Type to search levels, phases, modules and lessons.