Scrivio Interview library
ConceptFoundations6 min read · updated 12 November 2026

What is a hot partition in DynamoDB or Cassandra, and what symptoms would you see? Give two key designs that cause one.

A hot partition is a partition that receives a disproportionate share of reads or writes, so it hits its own limits while the rest of the cluster sits idle. In DynamoDB we see throttling, such as ProvisionedThroughputExceededException, for some keys while table-level usage looks low; in Cassandra we see high CPU, latency and dropped mutations on the few replicas that own those tokens. Two classic causes are a low-cardinality partition key such as status or country, and a key based on the current date so every write lands in today's partition.

Why this question is asked

Distributed databases like DynamoDB and Cassandra scale by spreading data over many partitions, so their capacity is the sum of many small pieces. That only works when the load is spread evenly. Hot partitions are the most common way these systems fail in production, and they are confusing because the dashboards for the whole table look healthy. Interviewers ask this to check that we understand how keys map to partitions and can recognise the symptoms. In this answer, we will recap how keys are distributed, define a hot partition, look at the symptoms in each database, and walk through the key designs that cause one.

1A Quick Recap of How Keys Spread Load

Both databases hash the partition key. In DynamoDB the hash picks one of the table's internal partitions. In Cassandra the hash, called a token, picks the nodes in the ring that own that token range, and with a replication factor of 3 every write goes to three replicas.

The hash spreads different keys evenly, but it cannot split one key. All items with the same partition key go to the same partition or the same set of replicas. So the throughput available to a single key is the throughput of one partition, not of the whole table. If 1,000 different keys each get one percent of the traffic, the load spreads well. If one key gets half of it, half of the traffic lands on one place.

Write load per partition, one hot key
PartitionKeys on itWrites per secondState
P1country = US4,200throttled
P2country = DE310fine
P3country = IN280fine
P4country = FR150fine
The table handles 4,940 writes per second in total, well within its capacity, but P1 alone is over its limit.

2What a Hot Partition Looks Like in DynamoDB

Each DynamoDB partition has a per-second limit. At the time of writing it is about 3,000 read units and 1,000 write units per second per partition, but check the current documentation. When one key exceeds it, DynamoDB rejects some of those requests. With the AWS SDK we see ProvisionedThroughputExceededException in provisioned mode, or a ThrottlingException, and the SDK retries with backoff, so the first symptom is often higher latency rather than errors.

Java
// Monitoring for the same five minutes
// ConsumedWriteCapacityUnits (table) : 4,900 of 20,000 provisioned -> looks fine
// WriteThrottleEvents (table) : 18,400 -> not fine
// Contributor Insights, top keys : country=US 85% of writes

Notice the contradiction: the table uses a quarter of its capacity and still throttles. That pattern is the signature of a hot key. DynamoDB has adaptive capacity, which shifts unused throughput to busy partitions and can split a partition by key ranges when it stays hot, but it cannot give one partition key more than one partition's limit. CloudWatch Contributor Insights shows which keys take the most traffic, which usually names the culprit in minutes.

3What a Hot Partition Looks Like in Cassandra

Cassandra has no throttling exception. Instead, the three replicas that own the hot token range work much harder than the other nodes. Their CPU is high, read and write latency on those nodes rises, and when they cannot keep up they drop mutations, which nodetool tpstats reports as dropped MUTATION messages. Coordinators then see timeouts, and other requests that happen to touch those nodes slow down too.

nodetool toppartitions samples a table for a while and shows the partitions with the most reads and writes, and nodetool tablestats shows the largest partitions. A hot partition is often also a large partition, because the same key that gets many writes keeps accumulating rows, which makes reads and compactions on it slow as well.

4Two Key Designs That Cause One

The first cause is a low-cardinality partition key, meaning a key with only a few distinct values. Partitioning orders by status gives perhaps five partitions: PENDING, PAID, SHIPPED and so on, however large the cluster is. Most orders sit in one or two statuses, so those partitions are hot. Country is similar: a few countries hold most of the users.

The second cause is a key based on the current time. If we partition events by day, for example PK = 2026-11-06, then every write today goes to one partition, and tomorrow the hot spot simply moves. Time-series data needs another component in the key, such as the device or user id, or a bucket number.

A third case is a single celebrity or tenant key: one user with millions of followers, or one tenant much larger than the others, receives most of the traffic even though the key design is otherwise fine.

SQL
-- Hot: one partition per day takes every write
CREATE TABLE events_by_day (day date, ts timeuuid, payload text, PRIMARY KEY (day, ts));
-- Spread: day plus a bucket from 0 to 15, chosen by hashing the device id
CREATE TABLE events_by_day_bucket (day date, bucket int, ts timeuuid, payload text,
PRIMARY KEY ((day, bucket), ts));
-- a read for one day now queries 16 partitions, in parallel

So the fix is the same in both databases: add a high-cardinality component to the partition key, accepting that some reads now have to visit several partitions.

5Follow-up questions

Does on-demand capacity fix a hot partition in DynamoDB?

No. On-demand removes the need to provision table capacity, but the per-partition limits still apply. A single key that needs more than one partition's throughput is throttled in both modes.

Can reads cause hot partitions, not only writes?

Yes. A popular product or configuration item read thousands of times per second is a read hot spot. Caching, for example DAX for DynamoDB or an application cache, usually solves read hot spots, while write hot spots need key changes or write sharding.

How do we find hot keys before production?

Load test with a realistic key distribution, not uniformly random keys. Real traffic is skewed: a few customers, products or days take most of it, and a test with random ids hides exactly the problem we want to find.

6Conclusion

In this answer, we saw that hashing spreads different keys but never splits one, so a key that takes a large share of the traffic becomes a hot partition. DynamoDB shows it as throttling for some keys while table usage looks low, and Cassandra as high CPU, latency and dropped mutations on a few replicas. Low-cardinality keys like status or country, keys based on the current date, and celebrity or giant-tenant keys are the usual causes, and adding a high-cardinality component to the key is the usual cure.

What to say in the interviewAbout 80 seconds aloud

Open with

A hot partition is one partition that gets a disproportionate share of the reads or writes, so it hits its own limits while the other partitions are mostly idle.

Then, if they want more

The root cause is that both DynamoDB and Cassandra hash the partition key, which spreads different keys well but can never split a single key, so one key can only use one partition's capacity.

In DynamoDB the symptom is throttling, ProvisionedThroughputExceededException or throttling exceptions and rising latency from SDK retries, for certain keys while the table's total consumed capacity looks low. Each partition has per-second limits, around 3,000 read units and 1,000 write units, though I would check the current numbers. Contributor Insights shows which keys are hot.

In Cassandra there is no throttling; instead the replicas that own the hot tokens show high CPU and latency and start dropping mutations, which you see in tpstats, and nodetool toppartitions finds the keys.

Two designs that cause it: a low-cardinality partition key such as status or country, where a handful of values take all the traffic, and a time-based key like the current date, which sends every write to today's partition. A third is a single celebrity user or huge tenant. The fix is adding a high-cardinality part to the key.

About this answer

Last updated
12 November 2026
Checked
Its structure and format are checked automatically. Use it as a carefully prepared study note: where a detail matters, confirm it against the documentation below. What the checks cover
Where the question comes from
Written by Scrivio for practice. It is not taken from an interview.
Report an issue with this answer

Copy the line below and send it to the author with what you found. It carries the address of this page.

Issue with "What is a hot partition in DynamoDB or Cassandra, and what symptoms would you see? Give...": https://scrivio-interview-library.netlify.app/databases/cassandra-and-dynamodb/4bc6666e81/