AITeky Learn

AiTeky Original Interactive Learning & Practice Intermediate

Cassandra: partition keys, hot partitions and the sensor table that slowed down

See how the partition key spreads rows over nodes, why a key with a few popular values makes one partition do all the work, and how a time bucket keeps partitions a safe size.

In a wide-column store such as Cassandra, the partition key decides which node holds a row. A good key spreads data and traffic evenly. A bad one piles them onto a few nodes, and the whole cluster is only as fast as its busiest partition.

This course models partitions with small Python programs you can run in your browser. Python stands in for the database: the lists are not a cluster, but the counting is exactly what decides how evenly work spreads. Check the Cassandra documentation for data modelling rules and recommended partition sizes. All data and sizes are made up.

  • Learn lessons explain one idea at a time and let you run it.
  • Industry ready lessons decide and justify, and end with interview questions.

No Cassandra experience is assumed. Basic Python helps.

Locked. Sign up free

Learn

Understand each idea with everyday examples. No coding background needed.

  1. 01 25 min Free sample 🔒 AiTeky Pass The partition key spreads the load Count how many rows land in each partition under two different keys, measure how uneven each is, and see why a key with few values cannot spread work.
  2. 02 25 min 🔒 AiTeky Pass Keeping partitions a safe size See how a partition that grows forever becomes too large, and how adding a time bucket to the key caps its size while keeping recent queries to one partition.

Industry ready

Real problems from real jobs, and the questions interviewers ask about them.

  1. 03 30 min 🔒 AiTeky Pass On the job: the sensor table that slowed down A sensor table was fast for a month and then slowed. Work out when partitions outgrow the limit, compare four key designs by effort and risk, choose, and write the note.

We use essential cookies to run the site. With your permission we also set one anonymous ID to count unique visitors, and analytics cookies to see which pages help learners. Cookie notice

Join AiTeky Learn. It's free.

Create a free account to track your progress, save items for later and get study suggestions.

Sign up free Log in