System design · Key technologies: the tools you will actually name

DynamoDB and Cassandra: design the table from the query

DynamoDB and Cassandra both descend from the same idea, hash a partition key to a machine and keep rows sorted inside it, so using either well means writing the queries first and deriving the keys from them, then handling the hot partitions, secondary indexes, consistency settings and deletes that this model makes awkward.

24 min read Full lesson in the app Patterns: query-first-schema, write-sharding, tunable-consistency

What you'll be able to do

Before this: picking-a-datastore, replication-and-consistency, sharding-and-partitioning, consistent-hashing

Log in to read the rest of this lesson

DynamoDB and Cassandra both descend from the same idea, hash a partition key to a machine and keep rows sorted inside it, so using either well means writing the queries first and deriving the keys from them, then handling the hot partitions, secondary indexes, consistency settings and deletes that this model makes awkward. This walkthrough runs about 24 minutes, with runnable code you can edit and re-run as you read. A new account gets 7 days of Pro free, no card required.

Log in to continue

The first module of every track is free to read on the web: see what's open in System design.